Browse files

Disable menu code.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@101 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
1 parent 7e5357d commit 6f3263bab508b8e489cca7a08cdce95062eed758 paul committed Aug 12, 2007
Showing with 17 additions and 3 deletions.
  1. +2 −2 misc.c
  2. +1 −1 wl_main.c
  3. +6 −0 wl_menu.c
  4. +8 −0 wl_menu.h
View
4 misc.c
@@ -220,6 +220,7 @@ char *ultoa(unsigned long value, char *string, myint radix)
return string;
}
+#ifndef EMBEDDED
/* from Dan Olson */
static void put_dos2ansi(byte attrib)
{
@@ -296,7 +297,6 @@ static void put_dos2ansi(byte attrib)
void DisplayTextSplash(const byte *text, myint l)
{
-#ifndef EMBEDDED
myint i, x;
//printf("%02X %02X %02X %02X\n", text[0], text[1], text[2], text[3]);
@@ -315,8 +315,8 @@ void DisplayTextSplash(const byte *text, myint l)
printf("%c[m", 27);
printf("\n");
}
-#endif
}
+#endif
/* ** */
View
2 wl_main.c
@@ -1301,9 +1301,9 @@ myint WolfMain(myint argc, char *argv[])
}
printf("Now Loading %s\n", GAMENAME);
-#endif
CheckForEpisodes();
+#endif
InitGame();
View
6 wl_menu.c
@@ -5,6 +5,7 @@
//
////////////////////////////////////////////////////////////////////
#include "wl_def.h"
+#ifndef EMBEDDED
//
// PRIVATE PROTOTYPES
@@ -20,6 +21,7 @@ void CP_ReadThis();
#define STARTITEM newgame
#endif
+#ifndef EMBEDDED
static const char endStrings[9][80]=
{
ENDSTR1,
@@ -32,6 +34,7 @@ static const char endStrings[9][80]=
ENDSTR8,
ENDSTR9
};
+#endif
static signed char
MainPos = STARTITEM,
@@ -204,6 +207,7 @@ static char SaveGameNames[10][32];
static char SaveName[13]="savegam?.";
+#ifdef ENABLE_CONTROLS
////////////////////////////////////////////////////////////////////
//
// INPUT MANAGER SCANCODE TABLES and
@@ -253,6 +257,7 @@ const char *IN_GetScanName(ScanCode scan)
return ScanNames[scan];
}
+#endif
////////////////////////////////////////////////////////////////////
//
@@ -3390,3 +3395,4 @@ void CheckForEpisodes()
strcat(configname, extension);
strcat(SaveName, extension);
}
+#endif
View
8 wl_menu.h
@@ -125,11 +125,19 @@ void DrawOutline(myint x,myint y,myint w,myint h,myint color1,myint color2);
void WaitKeyUp(void);
void ReadAnyControl(ControlInfo *ci);
void TicDelay(myint count);
+#ifdef EMBEDDED
+#define CacheLump(s, e) do {} while(0)
+#define UnCacheLump(s, e) do {} while(0)
+#define StartCPMusic(s) do {} while(0)
+#define Confirm(s) 1
+#define Message(s) do {} while(0)
+#else
void CacheLump(myint lumpstart,myint lumpend);
void UnCacheLump(myint lumpstart,myint lumpend);
void StartCPMusic(myint song);
myint Confirm(const char *string);
void Message(const char *string);
+#endif
void CheckPause(void);
void ShootSnd(void);
void FreeMusic(void);

0 comments on commit 6f3263b

Please sign in to comment.