summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-03 13:35:02 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 13:35:02 -0500
commit38d2f87b31ba4af8f6ecb73e0432460778e26f82 (patch)
tree4de2421cf431da5b66cc6a0baeaac2bc79ddf165 /src/main.cpp
parenta4747a1ecc9f4fe56700c64933cc3c6cebd04734 (diff)
replaced #pragma once by ifdefs
changed pointer to ref to NexusInterface on_actionChange_Game_triggered() now creates the dialog itself instead of calling test code fixed broken command line options, they'd be reset before they were used removed useless explicit
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bd7f8303..8f7af77d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -650,13 +650,6 @@ int doOneRun(
// resets things when MO is "restarted"
resetForRestart(cl);
- if (cl.instance())
- InstanceManager::instance().overrideInstance(*cl.instance());
-
- if (cl.profile()) {
- InstanceManager::instance().overrideProfile(*cl.profile());
- }
-
auto currentInstance = InstanceManager::instance().currentInstance();
if (!currentInstance)
@@ -707,6 +700,13 @@ int main(int argc, char *argv[])
tt.stop();
+ if (cl.instance())
+ InstanceManager::instance().overrideInstance(*cl.instance());
+
+ if (cl.profile()) {
+ InstanceManager::instance().overrideProfile(*cl.profile());
+ }
+
for (;;)
{
const auto r = doOneRun(cl, application, instance);