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.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/m_argv.c b/src/m_argv.c
index 78404d35..acc15dfd 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <string.h>
-#include "doomdef.h"
+#include "doomtype.h"
#include "i_system.h"
#include "m_misc.h"
@@ -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)
@@ -94,7 +106,7 @@ static void LoadResponseFile(int argv_index)
// needed.
file = malloc(size + 1);
- fread(file, size, 1, handle);
+ (void) fread(file, size, 1, handle);
fclose(handle);
// Create new arguments list array