diff options
author | Simon Howard | 2008-11-21 18:03:06 +0000 |
---|---|---|
committer | Simon Howard | 2008-11-21 18:03:06 +0000 |
commit | ae18d8c4b6f7f918aa5ec496ca32899793cbe41e (patch) | |
tree | ed15c8dab41695f3b899590c4efbfec91a4426ee /src/i_system.c | |
parent | 9646b03b13d875289ce0270cacab67657684bd58 (diff) | |
download | chocolate-doom-ae18d8c4b6f7f918aa5ec496ca32899793cbe41e.tar.gz chocolate-doom-ae18d8c4b6f7f918aa5ec496ca32899793cbe41e.tar.bz2 chocolate-doom-ae18d8c4b6f7f918aa5ec496ca32899793cbe41e.zip |
Move setup/ into src/ and merge with main codebase. Remove duplicated
code. Split out I_Endoom to separate i_endoom.c file.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1384
Diffstat (limited to 'src/i_system.c')
-rw-r--r-- | src/i_system.c | 59 |
1 files changed, 7 insertions, 52 deletions
diff --git a/src/i_system.c b/src/i_system.c index 77c06436..1003075f 100644 --- a/src/i_system.c +++ b/src/i_system.c @@ -51,7 +51,6 @@ #include "i_video.h" #include "i_system.h" -#include "txt_main.h" #include "w_wad.h" #include "z_zone.h" @@ -178,53 +177,21 @@ boolean I_ConsoleStdout(void) // // I_Init // +/* void I_Init (void) { I_CheckIsScreensaver(); I_InitTimer(); I_InitJoystick(); } - -// -// Displays the text mode ending screen after the game quits -// - -void I_Endoom(byte *endoom_data) +void I_BindVariables(void) { - unsigned char *screendata; - - // Set up text mode screen - - TXT_Init(); - - // Make sure the new window has the right title and icon - - I_SetWindowTitle("Exit screen"); - I_SetWindowIcon(); - - // Write the data to the screen memory - - screendata = TXT_GetScreenData(); - memcpy(screendata, endoom_data, 4000); - - // Wait for a keypress - - while (true) - { - TXT_UpdateScreen(); - - if (TXT_GetChar() >= 0) - { - break; - } - - TXT_Sleep(0); - } - - // Shut down text mode screen - - TXT_Shutdown(); + I_BindVideoVariables(); + I_BindJoystickVariables(); + I_BindSoundVariables(); } +*/ + // // I_Quit @@ -247,11 +214,6 @@ void I_Quit (void) exit(0); } -void I_WaitVBL(int count) -{ - I_Sleep((count * 1000) / 70); -} - // // I_Error // @@ -314,10 +276,3 @@ void I_Error (char *error, ...) exit(-1); } -void I_BindVariables(void) -{ - I_BindVideoVariables(); - I_BindJoystickVariables(); - I_BindSoundVariables(); -} - |