diff options
author | Marcus Comstedt | 2004-08-29 19:08:08 +0000 |
---|---|---|
committer | Marcus Comstedt | 2004-08-29 19:08:08 +0000 |
commit | f6af7cdcc7530149bf976cb69a2aa7aab21abb84 (patch) | |
tree | de63fc7423f2932307fab545a7fbad08af5a0e11 /base/main.cpp | |
parent | ca6ad7a76fe48737b6daf6ce3259227850fc5d27 (diff) | |
download | scummvm-rg350-f6af7cdcc7530149bf976cb69a2aa7aab21abb84.tar.gz scummvm-rg350-f6af7cdcc7530149bf976cb69a2aa7aab21abb84.tar.bz2 scummvm-rg350-f6af7cdcc7530149bf976cb69a2aa7aab21abb84.zip |
Provide unloading of unneeded plugins.
svn-id: r14829
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 749d62a5fa..68ca73a4be 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -381,8 +381,14 @@ extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]) { //while(1) { // Verify the given game name is a valid supported game if (detector.detectMain()) { + // Unload all plugins not needed for this game, + // to save memory + PluginManager::instance().unloadPluginsExcept(detector._plugin); + runGame(detector, system); + // PluginManager::instance().unloadPlugins(); + // PluginManager::instance().loadPlugins(); // launcherDialog(detector, system); } //} |