diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-18 05:30:57 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:02 -0500 |
| commit | f4ca82f798fa7e456bb904ed301ddc17db5410c8 (patch) | |
| tree | 4f27efe8f211ba5eb81a5e728b8d5d4ae7de4ed5 /src/main.cpp | |
| parent | ccab9eae8df3cf5367ce5cf164c98d1534ac13cb (diff) | |
fixed handling of profile names with different casing than on the filesystem
added --instance
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3c5bc92d..5ae8999c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -874,8 +874,10 @@ int main(int argc, char *argv[]) try { InstanceManager& instanceManager = InstanceManager::instance(); - if (cl.shortcut().isValid() && cl.shortcut().hasInstance()) - instanceManager.overrideInstance(cl.shortcut().instance()); + + if (cl.instance()) + instanceManager.overrideInstance(*cl.instance()); + dataPath = instanceManager.determineDataPath(); } catch (const std::exception &e) { if (strcmp(e.what(),"Canceled")) |
