summaryrefslogtreecommitdiff
path: root/src/moshortcut.h
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-04-06 21:35:15 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-04-07 14:10:16 +0200
commit5c39a762e68c3559438a622dbf747eb8bddec7ed (patch)
tree7d74dc78c8b8f6cb0dcb24556fe9dd0dc6f076fc /src/moshortcut.h
parenta905ce130d0f1f4894f135660d9cf515788bb2ad (diff)
Allow MO2 shortcuts that open the indicated MO2 instance in the argument if the executable name is omitted.
This should be added after the MO2 exe path: ' "moshortcut://myInstanceName:" '. If there are caracters after the ":" then MO2 will assume that is an execuatble and will try to run it.
Diffstat (limited to 'src/moshortcut.h')
-rw-r--r--src/moshortcut.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/moshortcut.h b/src/moshortcut.h
index 7b7574b9..2ce54910 100644
--- a/src/moshortcut.h
+++ b/src/moshortcut.h
@@ -33,6 +33,8 @@ public:
operator bool() const { return m_valid; }
bool hasInstance() const { return m_hasInstance; }
+
+ bool hasExecutable() const { return m_hasExecutable; }
const QString& instance() const { return m_instance; }
@@ -43,4 +45,5 @@ private:
QString m_executable;
bool m_valid;
bool m_hasInstance;
+ bool m_hasExecutable;
};