summaryrefslogtreecommitdiff
path: root/src/m_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_argv.c')
-rw-r--r--src/m_argv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/m_argv.c b/src/m_argv.c
index bcfaa3da..63c86e26 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -60,6 +60,18 @@ int M_CheckParm (char *check)
return 0;
}
+//
+// M_ParmExists
+//
+// Returns true if the given parameter exists in the program's command
+// line arguments, false if not.
+//
+
+boolean M_ParmExists(char *check)
+{
+ return M_CheckParm(check) != 0;
+}
+
#define MAXARGVS 100
static void LoadResponseFile(int argv_index)