aboutsummaryrefslogtreecommitdiffstats
path: root/demos/3rdparty/doom/i_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/3rdparty/doom/i_main.c')
-rw-r--r--demos/3rdparty/doom/i_main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/3rdparty/doom/i_main.c b/demos/3rdparty/doom/i_main.c
new file mode 100644
index 00000000..0c618a5b
--- /dev/null
+++ b/demos/3rdparty/doom/i_main.c
@@ -0,0 +1,18 @@
+#include "gfx.h"
+
+#include "doomdef.h"
+
+#include "m_argv.h"
+#include "d_main.h"
+
+// Emulate a command line
+static int argc = 1;
+static const char * const *argv = { "doom", };
+
+int main(void) {
+ gfxInit();
+
+ myargc = argc;
+ myargv = argv;
+ D_DoomMain();
+}