User Tools

Site Tools


script:module:savedsession

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script:module:savedsession [2017-03-13 12:41] (current)
skyjake ↷ Page name changed from script:module:saved_session to script:module:savedsession
Line 1: Line 1:
 +Module that provides access to the savegame manipulation features of the resource subsystem.
 +
 +
 +====== Functions ======
 +
 +
 +{{Identifier|convert}} ( {{TypeArgument|Text|[[game_identity_key|gameId]]}},​ {{TypeArgument|Text|savegamePath}} )
 +
 +Performs conversion of a single legacy savegame into the native **.save** package format. When this function is called the {{Argument|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"​)
 +
 +
 +{{Identifier|convertAll}} ( {{TypeArgument|Text|[[game_identity_key|gameId]]}} )
 +
 +Performs conversion of //all// the legacy savegames located for the given {{Argument|gameId}}. Otherwise functions identically to {{Identifier|convert}}.
 +
 +
  
script/module/savedsession.txt · Last modified: 2017-03-13 12:41 by skyjake