summaryrefslogtreecommitdiff
path: root/src/i_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_main.c')
-rw-r--r--src/i_main.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/i_main.c b/src/i_main.c
index cdfb531a..fdfa3cbc 100644
--- a/src/i_main.c
+++ b/src/i_main.c
@@ -24,15 +24,23 @@
//
//-----------------------------------------------------------------------------
-
#include "config.h"
+#include <stdio.h>
+
#include "SDL.h"
-#include "doomdef.h"
+#include "doomtype.h"
#include "i_system.h"
#include "m_argv.h"
-#include "d_main.h"
+
+//
+// D_DoomMain()
+// Not a globally visible function, just included for source reference,
+// calls all startup code, parses command line options.
+//
+
+void D_DoomMain (void);
#if defined(_WIN32_WCE)
@@ -71,7 +79,6 @@ static void LockCPUAffinity(void)
fprintf(stderr, "Failed to load kernel32.dll\n");
return;
}
-
// Find the SetProcessAffinityMask function.
SetAffinity = (SetAffinityFunc)GetProcAddress(kernel32_dll, "SetProcessAffinityMask");
@@ -147,6 +154,8 @@ int main(int argc, char **argv)
LockCPUAffinity();
+ M_FindResponseFile();
+
// start doom
D_DoomMain ();