diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-18 05:07:32 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:01 -0500 |
| commit | ccab9eae8df3cf5367ce5cf164c98d1534ac13cb (patch) | |
| tree | 603bddc6dc14d256d4b416514e089326be83c42e /src/moshortcut.h | |
| parent | 75cc2ffead148ab2409cd1ef469613d2e9b80e17 (diff) | |
add warning when profile given with -p doesn't exist
implemented moshortcut, nxm links and executable names as command line options
Diffstat (limited to 'src/moshortcut.h')
| -rw-r--r-- | src/moshortcut.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/moshortcut.h b/src/moshortcut.h index 2ce54910..0067b3bc 100644 --- a/src/moshortcut.h +++ b/src/moshortcut.h @@ -27,19 +27,21 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. class MOShortcut { public: - MOShortcut(const QString& link); + MOShortcut(const QString& link={}); /// true iff intialized using a valid moshortcut link - operator bool() const { return m_valid; } + bool isValid() const { return m_valid; } bool hasInstance() const { return m_hasInstance; } - + bool hasExecutable() const { return m_hasExecutable; } const QString& instance() const { return m_instance; } const QString& executable() const { return m_executable; } + QString toString() const; + private: QString m_instance; QString m_executable; |
