From ae18d8c4b6f7f918aa5ec496ca32899793cbe41e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 21 Nov 2008 18:03:06 +0000 Subject: 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 --- src/i_system.c | 59 +++++++--------------------------------------------------- 1 file changed, 7 insertions(+), 52 deletions(-) (limited to 'src/i_system.c') 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(); -} - -- cgit v1.2.3