aboutsummaryrefslogtreecommitdiffstats
path: root/demos/3rdparty/doom/i_system.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
committerinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
commit0345dadebf55980d765826e32854049e498d5759 (patch)
treeaa500fb65cda08d165dc2a66062beedcbdcb30fc /demos/3rdparty/doom/i_system.h
parentc24512f6edaee109ac10c378e7e89218c48255b7 (diff)
downloaduGFX-0345dadebf55980d765826e32854049e498d5759.tar.gz
uGFX-0345dadebf55980d765826e32854049e498d5759.tar.bz2
uGFX-0345dadebf55980d765826e32854049e498d5759.zip
Fixes to DOOM demo to remove some operating system dependancies.
Also now has working input (although not perfect) - Needs mouse or touch. Also now supports screen size doubling when the screen is significantly larger than doom's screen.
Diffstat (limited to 'demos/3rdparty/doom/i_system.h')
-rw-r--r--demos/3rdparty/doom/i_system.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/3rdparty/doom/i_system.h b/demos/3rdparty/doom/i_system.h
index d9a1fb04..3f7bd4bb 100644
--- a/demos/3rdparty/doom/i_system.h
+++ b/demos/3rdparty/doom/i_system.h
@@ -80,8 +80,8 @@ void I_Quit (void);
// Allocates from low memory under dos,
-// just mallocs under unix
-byte* I_AllocLow (int length);
+byte* I_Malloc(int length);
+#define I_AllocLow(l) I_Malloc(l)
void I_Tactile (int on, int off, int total);
@@ -91,11 +91,16 @@ void I_Error (char *error, ...);
int I_HaveFile(char *fname);
int I_FileSize(int handle);
int I_FileRead (int handle, char *buf, int len);
+int I_FileWrite(int handle, char *source, int length);
void I_FilePos(int handle, int pos);
int I_FileOpenRead(char *fname);
+int I_FileCreate(char *fname);
void I_FileClose(int handle);
void *I_Realloc(void *p, int nsize);
-
+void I_Exit(int code);
+void I_printf(const char *fmt, ...);
+void I_DBGprintf(const char *fmt, ...);
+void I_sprintf(char *buf, const char *fmt, ...);
#endif
//-----------------------------------------------------------------------------
//