removed all commandline checks for the option "-safe" except for the
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 Apr 2007 01:11:00 +0000 (01:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 Apr 2007 01:11:00 +0000 (01:11 +0000)
OpenGL extension checks, this makes -safe actually playable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7093 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c
snd_main.c
vid_agl.c
vid_glx.c
vid_wgl.c

index 319e6fa..afca524 100644 (file)
@@ -407,7 +407,7 @@ int CDAudio_Init (void)
                return -1;
 
 // COMMANDLINEOPTION: Sound: -nocdaudio disables CD audio support
-       if (COM_CheckParm("-nocdaudio") || COM_CheckParm("-safe"))
+       if (COM_CheckParm("-nocdaudio"))
                return -1;
 
        CDAudio_SysInit();
index 14e2a6a..d3f16b1 100644 (file)
@@ -708,7 +708,7 @@ void S_Init(void)
        Cvar_RegisterVariable(&snd_channels);
 
 // COMMANDLINEOPTION: Sound: -nosound disables sound (including CD audio)
-       if (COM_CheckParm("-nosound") || COM_CheckParm("-safe"))
+       if (COM_CheckParm("-nosound"))
                return;
 
        snd_mempool = Mem_AllocPool("sound", 0, NULL);
index cd62ab0..482c40f 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -261,7 +261,7 @@ void VID_Init(void)
        InitSig(); // trap evil signals
        Cvar_RegisterVariable(&apple_multithreadedgl);
 // COMMANDLINEOPTION: Input: -nomouse disables mouse support (see also vid_mouse cvar)
-       if (COM_CheckParm ("-nomouse") || COM_CheckParm("-safe"))
+       if (COM_CheckParm ("-nomouse"))
                mouse_avail = false;
 }
 
index 32edd05..4c3d710 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -609,7 +609,7 @@ void VID_Init(void)
 #endif
        InitSig(); // trap evil signals
 // COMMANDLINEOPTION: Input: -nomouse disables mouse support (see also vid_mouse cvar)
-       if (COM_CheckParm ("-nomouse") || COM_CheckParm("-safe"))
+       if (COM_CheckParm ("-nomouse"))
                mouse_avail = false;
 }
 
index d0954d0..104f283 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1174,7 +1174,7 @@ IN_StartupMouse
 */
 static void IN_StartupMouse (void)
 {
-       if (COM_CheckParm ("-nomouse") || COM_CheckParm("-safe"))
+       if (COM_CheckParm ("-nomouse"))
                return;
 
        mouseinitialized = true;
@@ -1351,7 +1351,7 @@ static void IN_StartupJoystick (void)
 
        // abort startup if user requests no joystick
 // COMMANDLINEOPTION: Windows Input: -nojoy disables joystick support, may be a small speed increase
-       if (COM_CheckParm ("-nojoy") || COM_CheckParm("-safe"))
+       if (COM_CheckParm ("-nojoy"))
                return;
 
        // verify joystick driver is present