| 600 | } |
| 601 | |
| 602 | bool InstanceManager::allowedToChangeInstance() const |
| 603 | { |
| 604 | const auto lockFile = qApp->applicationDirPath() + "/" + |
| 605 | QString::fromStdWString(AppConfig::portableLockFileName()); |
| 606 | |
| 607 | return !QFile::exists(lockFile); |
| 608 | } |
| 609 | |
| 610 | MOBase::IPluginGame* |
| 611 | InstanceManager::gamePluginForDirectory(const QString& instanceDir, |