Function: valid_saved_game()
ts
function valid_saved_game(this: void, filename: string): boolean;Check whether a save exists and has a compatible header.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | void | - |
filename | string | Save name without extension. |
Returns
boolean
Whether the save can be loaded by this engine.
Remarks
Accepts save names without extension and checks both current and legacy save extensions.