diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-06 21:35:15 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-07 14:10:16 +0200 |
| commit | 5c39a762e68c3559438a622dbf747eb8bddec7ed (patch) | |
| tree | 7d74dc78c8b8f6cb0dcb24556fe9dd0dc6f076fc /src/moshortcut.cpp | |
| parent | a905ce130d0f1f4894f135660d9cf515788bb2ad (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.cpp')
| -rw-r--r-- | src/moshortcut.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/moshortcut.cpp b/src/moshortcut.cpp index c8c2ef6f..aad7380e 100644 --- a/src/moshortcut.cpp +++ b/src/moshortcut.cpp @@ -24,6 +24,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. MOShortcut::MOShortcut(const QString& link) : m_valid(link.startsWith("moshortcut://")) , m_hasInstance(false) + , m_hasExecutable(false) { if (m_valid) { int start = (int)strlen("moshortcut://"); @@ -35,5 +36,7 @@ MOShortcut::MOShortcut(const QString& link) } else m_executable = link.mid(start); + if(!(m_executable=="")) + m_hasExecutable=true; } } |
