forked from len0rd/rockbox
sdl: Remove platform-specific code
Also nuke the Makefiles of Duke Nukem 3D (pun intended). Change-Id: If2707cf079bfb9299347f9c5f980780134b6ecda
This commit is contained in:
parent
e19857e712
commit
183e45e8d0
49 changed files with 53 additions and 2191 deletions
|
@ -19,10 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
*/
|
||||
#include "quakedef.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "winquake.h"
|
||||
#endif
|
||||
|
||||
void (*vid_menudrawfn)(void);
|
||||
void (*vid_menukeyfn)(int key);
|
||||
|
||||
|
@ -913,11 +909,7 @@ void M_Net_Draw (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
p = NULL;
|
||||
#else
|
||||
p = Draw_CachePic ("gfx/dim_modm.lmp");
|
||||
#endif
|
||||
}
|
||||
|
||||
if (p)
|
||||
|
@ -931,11 +923,7 @@ void M_Net_Draw (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
p = NULL;
|
||||
#else
|
||||
p = Draw_CachePic ("gfx/dim_drct.lmp");
|
||||
#endif
|
||||
}
|
||||
|
||||
if (p)
|
||||
|
@ -1036,12 +1024,7 @@ again:
|
|||
//=============================================================================
|
||||
/* OPTIONS MENU */
|
||||
|
||||
#ifdef _WIN32
|
||||
#define OPTIONS_ITEMS 14
|
||||
#else
|
||||
#define OPTIONS_ITEMS 13
|
||||
#endif
|
||||
|
||||
#define SLIDER_RANGE 10
|
||||
|
||||
int options_cursor;
|
||||
|
@ -1051,13 +1034,6 @@ void M_Menu_Options_f (void)
|
|||
key_dest = key_menu;
|
||||
m_state = m_options;
|
||||
m_entersound = true;
|
||||
|
||||
#ifdef _WIN32
|
||||
if ((options_cursor == 13) && (modestate != MS_WINDOWED))
|
||||
{
|
||||
options_cursor = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1092,11 +1068,7 @@ void M_AdjustSliders (int dir)
|
|||
Cvar_SetValue ("sensitivity", sensitivity.value);
|
||||
break;
|
||||
case 6: // music volume
|
||||
#ifdef _WIN32
|
||||
bgmvolume.value += dir * 1.0;
|
||||
#else
|
||||
bgmvolume.value += dir * 0.1;
|
||||
#endif
|
||||
if (bgmvolume.value < 0)
|
||||
bgmvolume.value = 0;
|
||||
if (bgmvolume.value > 1)
|
||||
|
@ -1136,12 +1108,6 @@ void M_AdjustSliders (int dir)
|
|||
case 11: // lookstrafe
|
||||
Cvar_SetValue ("lookstrafe", !lookstrafe.value);
|
||||
break;
|
||||
|
||||
#ifdef _WIN32
|
||||
case 13: // _windowed_mouse
|
||||
Cvar_SetValue ("_windowed_mouse", !_windowed_mouse.value);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1223,14 +1189,6 @@ void M_Options_Draw (void)
|
|||
if (vid_menudrawfn)
|
||||
M_Print (16, 128, " Video Options");
|
||||
|
||||
#ifdef _WIN32
|
||||
if (modestate == MS_WINDOWED)
|
||||
{
|
||||
M_Print (16, 136, " Use Mouse");
|
||||
M_DrawCheckbox (220, 136, _windowed_mouse.value);
|
||||
}
|
||||
#endif
|
||||
|
||||
// cursor
|
||||
M_DrawCharacter (200, 32 + options_cursor*8, 12+((int)(realtime*4)&1));
|
||||
}
|
||||
|
@ -1297,16 +1255,6 @@ void M_Options_Key (int k)
|
|||
else
|
||||
options_cursor = 0;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
if ((options_cursor == 13) && (modestate != MS_WINDOWED))
|
||||
{
|
||||
if (k == K_UPARROW)
|
||||
options_cursor = 12;
|
||||
else
|
||||
options_cursor = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
@ -1582,7 +1530,6 @@ int msgNumber;
|
|||
int m_quit_prevstate;
|
||||
qboolean wasInMenus;
|
||||
|
||||
#ifndef _WIN32
|
||||
char *quitMessage [] =
|
||||
{
|
||||
/* .........1.........2.... */
|
||||
|
@ -1626,7 +1573,6 @@ char *quitMessage [] =
|
|||
" for you next time! ",
|
||||
" "
|
||||
};
|
||||
#endif
|
||||
|
||||
void M_Menu_Quit_f (void)
|
||||
{
|
||||
|
@ -1684,36 +1630,11 @@ void M_Quit_Draw (void)
|
|||
m_state = m_quit;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
M_DrawTextBox (0, 0, 38, 23);
|
||||
M_PrintWhite (16, 12, " Quake version 1.09 by id Software\n\n");
|
||||
M_PrintWhite (16, 28, "Programming Art \n");
|
||||
M_Print (16, 36, " John Carmack Adrian Carmack\n");
|
||||
M_Print (16, 44, " Michael Abrash Kevin Cloud\n");
|
||||
M_Print (16, 52, " John Cash Paul Steed\n");
|
||||
M_Print (16, 60, " Dave 'Zoid' Kirsch\n");
|
||||
M_PrintWhite (16, 68, "Design Biz\n");
|
||||
M_Print (16, 76, " John Romero Jay Wilbur\n");
|
||||
M_Print (16, 84, " Sandy Petersen Mike Wilson\n");
|
||||
M_Print (16, 92, " American McGee Donna Jackson\n");
|
||||
M_Print (16, 100, " Tim Willits Todd Hollenshead\n");
|
||||
M_PrintWhite (16, 108, "Support Projects\n");
|
||||
M_Print (16, 116, " Barrett Alexander Shawn Green\n");
|
||||
M_PrintWhite (16, 124, "Sound Effects\n");
|
||||
M_Print (16, 132, " Trent Reznor and Nine Inch Nails\n\n");
|
||||
M_PrintWhite (16, 140, "Quake is a trademark of Id Software,\n");
|
||||
M_PrintWhite (16, 148, "inc., (c)1996 Id Software, inc. All\n");
|
||||
M_PrintWhite (16, 156, "rights reserved. NIN logo is a\n");
|
||||
M_PrintWhite (16, 164, "registered trademark licensed to\n");
|
||||
M_PrintWhite (16, 172, "Nothing Interactive, Inc. All rights\n");
|
||||
M_PrintWhite (16, 180, "reserved. Press y to exit\n");
|
||||
#else
|
||||
M_DrawTextBox (56, 76, 24, 4);
|
||||
M_Print (64, 84, quitMessage[msgNumber*4+0]);
|
||||
M_Print (64, 92, quitMessage[msgNumber*4+1]);
|
||||
M_Print (64, 100, quitMessage[msgNumber*4+2]);
|
||||
M_Print (64, 108, quitMessage[msgNumber*4+3]);
|
||||
#endif
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue