Yotam Barnoy
ee2b1092ab
PLUGINS: switched plugin manager to inheritance rather than #defines
...
The reason for this was that I found issues where the wrong functions were called in EngineManager for single plugin operation. Rather than inserting more messy #defines, I preferred to change the PluginManager to use virtual functions, which also makes EngineManager simpler.
svn-id: r55024
2010-12-23 13:38:37 +00:00
Yotam Barnoy
a6bee87990
PLUGINS: improved one-at-a-time plugin code
...
I reduced memory fragmentation using 2 principles: Plugins should be loaded for as little time as possible, and long lasting memory allocations should be allocated before plugins are loaded. There might still be a little fragmentation left.
Note that command line settings that require plugins to be loaded don't work yet, but they didn't work (properly) before either.
svn-id: r54097
2010-11-05 13:24:57 +00:00
Tony Puccinelli
66b42d486b
added intermediary function 'findGameOnePlugAtATime' and switched load game and run game code to use it. Added checks for DYNAMIC_MODULES defines to the checks for NEW_PLUGIN_DESIGN_FIRST_REFINEMENT
...
svn-id: r51746
2010-08-05 00:26:46 +00:00
Max Horn
92c896d883
Patch #2973290 : Semicolon cleanup
...
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
8db54382bb
ENGINES: Move SaveStateDescriptor etc. to engine/savestate.*
...
svn-id: r48283
2010-03-18 15:09:48 +00:00
Jordi Vilalta Prat
047f116515
Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
...
svn-id: r39132
2009-03-05 12:04:58 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Johannes Schickel
fac44f1e57
Update documentation.
...
svn-id: r34971
2008-11-09 20:08:54 +00:00
Johannes Schickel
ed1b12571b
Updated documentation.
...
svn-id: r34964
2008-11-09 17:43:39 +00:00
Filippos Karapetis
f5729a4a8b
- The GMM save dialog is now working for all engines which support the appropriate features
...
- Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots
- Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started)
svn-id: r34963
2008-11-09 16:13:34 +00:00
Max Horn
f32be87633
Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
...
svn-id: r34906
2008-11-05 17:24:56 +00:00
Max Horn
61aadb378d
Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
...
svn-id: r34896
2008-11-04 16:11:40 +00:00
Johannes Schickel
112feada4e
- Extended some comments
...
- Added @todos to engines/engine.h
- Added a FIXME to engines/dialogs.cpp
svn-id: r34887
2008-11-03 20:00:36 +00:00
Max Horn
55c10e0ec6
Patch #2122869 : ALL: Common load dialog
...
svn-id: r34883
2008-11-03 18:32:16 +00:00
Filippos Karapetis
b7a219ebc6
Renamed engine feature kSupportsDirectLoad to kSupportsLoadingDuringStartup, as discussed in patch #2122869
...
svn-id: r34854
2008-10-26 16:42:08 +00:00
Max Horn
6a2f3dc0b9
Added new type Engine::Feature; pushed down some #include dependencies
...
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
b41cd58cee
Renamed some MetaEngine feature flags; removed explicit numbers from this feature flag list (nothing should rely on their specific values, anyway); added a note that Engine::hasFeature should become independant of MetaEngine::hasFeature
...
svn-id: r34738
2008-10-04 13:09:01 +00:00
Max Horn
a7005b84ff
cleanup
...
svn-id: r34697
2008-09-30 11:33:43 +00:00
Max Horn
a6dd4b7d4d
Moved base/game.* to engines/game.*
...
svn-id: r34589
2008-09-17 17:31:29 +00:00
Johannes Schickel
3739662b75
Added support for SCUMM savestates date/time and playtime info in the launcher load dialog.
...
svn-id: r34583
2008-09-16 14:56:02 +00:00
Johannes Schickel
259d87a8a6
Added "querySaveMetaInfos" to MetaEngine.
...
-> Allows easy addition of save state specific infos like playtime, save date atc.
-> Removed MetaEngine::loadThumbnailFromSlot, superseded by meta infos
-> Changed SCUMM / KYRA to implement the newly added functionallity
-> Removed hack in KYRAs listSavefiles, which is now handled via meta infos
svn-id: r34581
2008-09-16 14:10:55 +00:00
Johannes Schickel
92fc264461
- Added thumbnail support to launcher load dialog.
...
- Adopted KYRA to support displaying thumbnails in load dialog (SCUMM engine has yet to follow)
svn-id: r34539
2008-09-14 21:00:24 +00:00
Johannes Schickel
0a35842954
Committed my patch #2105593 "Launcher/MetaEngine: Finnished removeSaveState".
...
svn-id: r34495
2008-09-11 19:47:45 +00:00
Max Horn
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Max Horn
4567cfc61c
Document each MetaEngineFeature (instead of listing just 'examples'). Wording could be better, feel free to improve it
...
svn-id: r34262
2008-09-01 21:06:32 +00:00
Max Horn
f455b15bde
Clarified clarification ;)
...
svn-id: r34261
2008-09-01 20:41:43 +00:00
Max Horn
898a7f4b2d
Clarified some comments
...
svn-id: r34260
2008-09-01 20:31:44 +00:00
Christopher Page
ec8dac5540
Added a MetaEngineFeature for RTL support, the RTL button is disabled in the GMM if the engine doesn't support it
...
svn-id: r33921
2008-08-16 02:53:16 +00:00
Christopher Page
9d3cdcb2da
Defined some MetaEngineFeatures for the engines, the launcher uses these features to allow/disallow loading and deleting saves
...
svn-id: r33909
2008-08-15 18:15:14 +00:00
Christopher Page
5bc5855ae9
Added some MetaEngineFeatures, defined MEFs for the Scumm engine
...
svn-id: r33893
2008-08-15 07:10:23 +00:00
Jordi Vilalta Prat
2862a30dac
Fixed some code formatting thanks to LordHoto
...
svn-id: r32275
2008-05-26 00:28:48 +00:00
Max Horn
2bb39e591f
Moved the engine plugin code to engines/metaengine.h; added/clarified/corrected various Doxygen comments for the plugin system
...
svn-id: r32083
2008-05-13 10:41:32 +00:00
Jordi Vilalta Prat
e3852c92a7
Remove undesired spaces and an old TODO
...
svn-id: r30827
2008-02-08 01:45:46 +00:00
Jordi Vilalta Prat
e4ab5dd339
Change MetaEngine references to PluginObject where possible to make its semantics more generic.
...
svn-id: r30789
2008-02-04 18:38:22 +00:00
Max Horn
5fb7f7a4d6
Commited updated version of my own patch #1868402 : Basic savestate plugin API
...
svn-id: r30786
2008-02-04 10:15:21 +00:00
Max Horn
8a73356a2d
Revised Engine plugin API to only provide a single func which returns a MetaEngine instance. Used this to simplify the rest of the plugin system
...
svn-id: r30780
2008-02-03 18:56:47 +00:00
Torbjörn Andersson
e51bf80218
Changed "COMPATIBLITY" to "COMPATIBILITY".
...
svn-id: r30754
2008-02-03 10:15:36 +00:00
Jordi Vilalta Prat
5165ff448d
Converted the remaining engines to use MetaEngine
...
svn-id: r30728
2008-02-02 02:35:13 +00:00
Max Horn
dc979b03cf
New MetaEngine class (work in progress to replace the current Engine plugin API with a more object oriented approach)
...
svn-id: r30726
2008-02-02 00:54:52 +00:00