diff options
Diffstat (limited to 'src/i_system.h')
-rw-r--r-- | src/i_system.h | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/i_system.h b/src/i_system.h index a5e06a50..0697f7db 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,6 +60,7 @@ ticcmd_t* I_BaseTiccmd (void); // Clean exit, displays sell blurb. void I_Quit (void); +void I_Error (char *error, ...); // Allocates from low memory under dos, // just mallocs under unix @@ -86,6 +71,27 @@ void I_Tactile (int on, int off, int total); 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) + +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 |