diff options
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);  		}  	//} | 
