diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-27 16:03:42 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-27 16:03:42 -0500 |
| commit | 05759c4abcae0e54c7c6fb3aac43b55ed490b6f4 (patch) | |
| tree | 8f80288e634e459b1b5ef80f5510f6b79b6b4be5 /src/main.cpp | |
| parent | 23bfe4e9ffe1637ff9e4912f913567ee921c801e (diff) | |
added checks on startup for directories in program files
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3cccf365..1f6c57d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -94,6 +94,7 @@ using namespace MOShared; void sanityChecks(const env::Environment& env); int checkIncompatibleModule(const env::Module& m); +int checkPathsForSanity(MOBase::IPluginGame& game, const Settings& s); bool createAndMakeWritable(const std::wstring &subPath) { QString const dataPath = qApp->property("dataPath").toString(); @@ -593,6 +594,8 @@ int runApplication(MOApplication &application, SingleInstance &instance, return 1; } + checkPathsForSanity(*game, settings); + if (splashPath.startsWith(':')) { // currently using MO splash, see if the plugin contains one QString pluginSplash |
