summaryrefslogtreecommitdiff
path: root/src/i_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_system.h')
-rw-r--r--src/i_system.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/i_system.h b/src/i_system.h
index 06e7f662..195895bb 100644
--- a/src/i_system.h
+++ b/src/i_system.h
@@ -32,6 +32,7 @@
#include "d_event.h"
+typedef void (*atexit_func_t)(void);
// Called by DoomMain.
void I_Init (void);
@@ -44,23 +45,6 @@ byte* I_ZoneBase (int *size);
boolean I_ConsoleStdout(void);
-// Called by D_DoomLoop,
-// called before processing any tics in a frame
-// (just after displaying a frame).
-// Time consuming syncronous operations
-// are performed here (joystick reading).
-// Can call D_PostEvent.
-//
-void I_StartFrame (void);
-
-
-//
-// Called by D_DoomLoop,
-// called before processing each tic in a frame.
-// Quick syncronous operations are performed here.
-// Can call D_PostEvent.
-void I_StartTic (void);
-
// Asynchronous interrupt functions should maintain private queues
// that are read by the synchronous functions
// to be converted into events.
@@ -76,17 +60,33 @@ ticcmd_t* I_BaseTiccmd (void);
// Clean exit, displays sell blurb.
void I_Quit (void);
-
-// Allocates from low memory under dos,
-// just mallocs under unix
-byte* I_AllocLow (int length);
+void I_Error (char *error, ...);
void I_Tactile (int on, int off, int total);
+boolean I_GetMemoryValue(unsigned int offset, void *value, int size);
-void I_Error (char *error, ...);
+// Schedule a function to be called when the program exits.
+// If run_if_error is true, the function is called if the exit
+// is due to an error (I_Error)
-boolean I_GetMemoryValue(unsigned int offset, void *value, int size);
+void I_AtExit(atexit_func_t func, boolean run_if_error);
+
+// Add all system-specific config file variable bindings.
+
+void I_BindVariables(void);
+
+// Print startup banner copyright message.
+
+void I_PrintStartupBanner(char *gamedescription);
+
+// Print a centered text banner displaying the given string.
+
+void I_PrintBanner(char *text);
+
+// Print a dividing line for startup banners.
+
+void I_PrintDivider(void);
#endif