- redirect Exhumed's shareware exit to the main menu.

This commit is contained in:
Christoph Oelckers 2021-03-15 08:36:16 +01:00
parent ac82838859
commit 7c68261fbf
3 changed files with 1 additions and 25 deletions

View file

@ -1006,7 +1006,7 @@ public:
// quit the game if we've finished level 4 and displayed the advert text // quit the game if we've finished level 4 and displayed the advert text
if (isShareware() && currentCinemaPalette == 3 && ret != 1) if (isShareware() && currentCinemaPalette == 3 && ret != 1)
{ {
ExitGame(); gameaction = ga_mainmenu;
} }
return ret; return ret;
} }

View file

@ -85,14 +85,6 @@ void InstallEngine()
LoadPaletteLookups(); LoadPaletteLookups();
} }
void RemoveEngine()
{
engineUnInit();
}
void CopyTileToBitmap(short nSrcTile, short nDestTile, int xPos, int yPos); void CopyTileToBitmap(short nSrcTile, short nDestTile, int xPos, int yPos);
// void TestSaveLoad(); // void TestSaveLoad();
@ -183,14 +175,6 @@ void DebugOut(const char *fmt, ...)
#endif #endif
} }
void ShutDown(void)
{
StopCD();
RemoveEngine();
//UnInitFX();
}
void DoClockBeep() void DoClockBeep()
{ {
int i; int i;
@ -482,12 +466,6 @@ void LevelFinished()
EndLevel = 13; EndLevel = 13;
} }
void ExitGame()
{
ShutDown();
throw CExitEvent(0);
}
#define x(a, b) registerName(#a, b); #define x(a, b) registerName(#a, b);
static void SetTileNames() static void SetTileNames()
{ {

View file

@ -44,8 +44,6 @@ enum basepal_t {
BASEPALCOUNT BASEPALCOUNT
}; };
void ExitGame();
void ShutDown(void);
void DebugOut(const char *fmt, ...); void DebugOut(const char *fmt, ...);
int ExhumedMain(int argc, char *argv[]); int ExhumedMain(int argc, char *argv[]);