aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 68ca73a4be..c6700d89cd 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -375,10 +375,10 @@ extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]) {
if (detector._targetName.isEmpty())
launcherDialog(detector, system);
- // Uncomment the while loop, and the launcherDialog call, to allow
- // returning to the Launcher after an engine quit. Disabled currently
- // as it probably leaks memory like a sieve.
- //while(1) {
+ // 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 :)
+ while(1) {
// Verify the given game name is a valid supported game
if (detector.detectMain()) {
// Unload all plugins not needed for this game,
@@ -389,9 +389,9 @@ extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]) {
// PluginManager::instance().unloadPlugins();
// PluginManager::instance().loadPlugins();
- // launcherDialog(detector, system);
+ launcherDialog(detector, system);
}
- //}
+ }
// ...and quit (the return 0 should never be reached)
delete g_timer;