Difference between revisions of "User:Toneman"

Jump to navigation Jump to search
473 bytes removed ,  23:49, 24 June 2010
Modified Plugin Design Change Plans
(Added Plugin Design Change Stuff)
(Modified Plugin Design Change Plans)
Line 64: Line 64:
-------------------------------
-------------------------------


For a next step, every game target in the config file can be given an "engine=MYENGINE" key-value pair. This way, the right engine plugin can be decided upon right away. If the "engine=" field is missing for a given game, we can just revert to the behavior of the "First Refinement".
For a next step, every game target in the config file can be given an "engine=MYENGINE" key-value pair. This way, the right engine plugin can be decided upon right away. If the "engine=" field is missing for a given game, we can just revert to the behavior of the "First Refinement" and automatically update the target in the config file with an "engine" key based on which engine the old behavior detects as correct for the game.
 
Also, the upgradeTargets() function in base/commandLine.cpp could be modified such that during startup, any config targets missing the "engine" key could have an "engine" key added automatically (by re-running the detector, matching the output with the gameid that is already there, and setting up the engine field).
 
In order to avoid having to do this re-scanning every time, we could put the "version" field in the config file to use. We could change it so that if we are loading a config file made with a newer ScummVM version, a warning is issued, and if the version is older than XYZ, we run the target upgrader.
27

edits

Navigation menu