diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index f5bba142..6d717db5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -503,6 +503,12 @@ int runApplication(MOApplication &application, SingleInstance &instance, MOBase::IPluginGame *game = determineCurrentGame( application.applicationDirPath(), settings, pluginContainer); if (game == nullptr) { + InstanceManager &instance = InstanceManager::instance(); + QString instanceName = instance.currentInstance(); + if (instanceName.compare("Portable", Qt::CaseInsensitive) != 0) { + instance.clearCurrentInstance(); + return INT_MAX; + } return 1; } if (splashPath.startsWith(':')) { |
