summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-18 05:07:32 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:01 -0500
commitccab9eae8df3cf5367ce5cf164c98d1534ac13cb (patch)
tree603bddc6dc14d256d4b416514e089326be83c42e /src/shared
parent75cc2ffead148ab2409cd1ef469613d2e9b80e17 (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/shared')
-rw-r--r--src/shared/util.cpp6
-rw-r--r--src/shared/util.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/util.cpp b/src/shared/util.cpp
index ba500da9..f316549e 100644
--- a/src/shared/util.cpp
+++ b/src/shared/util.cpp
@@ -435,3 +435,9 @@ void ResetExitFlag()
{
g_exiting = false;
}
+
+
+bool isNxmLink(const QString& link)
+{
+ return link.startsWith("nxm://", Qt::CaseInsensitive);
+}
diff --git a/src/shared/util.h b/src/shared/util.h
index 2761b64f..1688a931 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -83,4 +83,6 @@ bool ModOrganizerExiting();
bool ModOrganizerCanCloseNow();
void ResetExitFlag();
+bool isNxmLink(const QString& link);
+
#endif // UTIL_H