Open main menu

Difference between revisions of "Advanced Engine Features"

Line 112: Line 112:
===Loading savestates via command line or Launcher===
===Loading savestates via command line or Launcher===
'''What is this about?'''<br>
'''What is this about?'''<br>
TODO
With this feature, the use can load specific savestates directly from the command line, via the "-x SLOT" option . It is also the foundation for the "Load" button in the Launcher.


'''How to implement it'''<br>
'''How to implement it'''<br>
TODO
They way this works is quite simple: Each savestate has a unique slot number (as explained in the previous section on listing savestates). This number is passed to the engine during instantiation time in the "save_slot" ConfigMan setting. So, all you have to do is to check during startup of your engine whether that config variable is present, and if it is, use its value to decide which savestate to load. In addition, you should specify the kSupportsLoadingDuringStartup MetaEngine feature flag.


'''Relevant MetaEngine API'''
'''Relevant MetaEngine API'''
Line 124: Line 124:
'''Already implemented by:'''
'''Already implemented by:'''
[[AGI]], [[Cine]], [[Kyra]], [[Lure]], [[Parallaction]], [[Queen]], [[SAGA]], [[SCUMM]], [[Sky]], [[Sword1]], [[Sword2]], [[Touche]]
[[AGI]], [[Cine]], [[Kyra]], [[Lure]], [[Parallaction]], [[Queen]], [[SAGA]], [[SCUMM]], [[Sky]], [[Sword1]], [[Sword2]], [[Touche]]


===Deleting savestates via the Launcher and GMM===
===Deleting savestates via the Launcher and GMM===
1,079

edits