diff options
author | Tony Puccinelli | 2010-07-30 09:32:45 +0000 |
---|---|---|
committer | Tony Puccinelli | 2010-07-30 09:32:45 +0000 |
commit | 869e49d18597737e5955a083c02d47637db28393 (patch) | |
tree | a5c762869cc44a86a113f7b7d14248fef02a3e70 /base/main.cpp | |
parent | 145d8899dfb3bd0b7af88c812a2696c9da094cbf (diff) | |
download | scummvm-rg350-869e49d18597737e5955a083c02d47637db28393.tar.gz scummvm-rg350-869e49d18597737e5955a083c02d47637db28393.tar.bz2 scummvm-rg350-869e49d18597737e5955a083c02d47637db28393.zip |
initial work on plugin design changes (already added games can be launched with only one plugin loaded at a time if you compile with a 'NEW_PLUGIN_DESIGN_FIRST_REFINEMENT' flag)
svn-id: r51502
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/base/main.cpp b/base/main.cpp index 2658d1dc67..e3eb18b79d 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -103,8 +103,9 @@ static const EnginePlugin *detectPlugin() { // Query the plugins and find one that will handle the specified gameid printf("User picked target '%s' (gameid '%s')...\n", ConfMan.getActiveDomainName().c_str(), gameid.c_str()); printf(" Looking for a plugin supporting this gameid... "); + GameDescriptor game = EngineMan.findGame(gameid, &plugin); - + if (plugin == 0) { printf("failed\n"); warning("%s is an invalid gameid. Use the --list-games option to list supported gameid", gameid.c_str()); @@ -335,8 +336,12 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { settings.erase("debugflags"); } +#ifdef NEW_PLUGIN_DESIGN_FIRST_REFINEMENT //note: I'm going to refactor this name later :P + // Don't load the plugins initially in this case. +#else // Load the plugins. PluginManager::instance().loadPlugins(); +#endif // Process the remaining command line settings. Must be done after the // config file and the plugins have been loaded. @@ -367,7 +372,7 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { // Unless a game was specified, show the launcher dialog if (0 == ConfMan.getActiveDomain()) launcherDialog(); - + // FIXME: We're now looping the launcher. This, of course, doesn't // work as well as it should. In theory everything should be destroyed // cleanly, so this is now enabled to encourage people to fix bits :) |