Skip to content

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

ParameterTypeDescription
thisvoid-
filenamestringSave 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.