SavedSession (Module)

Module that provides access to the savegame manipulation features of the resource subsystem.

Functions

convert ( gameId : Text, savegamePath : Text )

Performs conversion of a single legacy savegame into the native .save package format. When this function is called the savegamePath (which is assumed to be a path to a legacy savegame, in the internal file system) is offered to each converter plugin in turn. If a plugin supports conversion of the given file type a conversion attempt is made. Returns True or False to indicate the source file was located and a at least one plugin signalled that conversion was attempted.

SavedSession.convert("doom1-ultimate", "/legacysavegames/doom1-ultimate/DoomSav0.dsg")

convertAll ( gameId : Text )

Performs conversion of all legacy savegames located for the given gameId. Otherwise functions identically to convert.