Skip to content

Commit

Permalink
- redirect Exhumed's shareware exit to the main menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Mar 15, 2021
1 parent ac82838 commit 7c68261
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion source/games/exhumed/src/2d.cpp
Expand Up @@ -1006,7 +1006,7 @@ class DCinema : public DScreenJob
// quit the game if we've finished level 4 and displayed the advert text
if (isShareware() && currentCinemaPalette == 3 && ret != 1)
{
ExitGame();
gameaction = ga_mainmenu;
}
return ret;
}
Expand Down
22 changes: 0 additions & 22 deletions source/games/exhumed/src/exhumed.cpp
Expand Up @@ -85,14 +85,6 @@ void InstallEngine()
LoadPaletteLookups();
}

void RemoveEngine()
{
engineUnInit();
}




void CopyTileToBitmap(short nSrcTile, short nDestTile, int xPos, int yPos);

// void TestSaveLoad();
Expand Down Expand Up @@ -183,14 +175,6 @@ void DebugOut(const char *fmt, ...)
#endif
}

void ShutDown(void)
{
StopCD();

RemoveEngine();
//UnInitFX();
}

void DoClockBeep()
{
int i;
Expand Down Expand Up @@ -482,12 +466,6 @@ void LevelFinished()
EndLevel = 13;
}

void ExitGame()
{
ShutDown();
throw CExitEvent(0);
}

#define x(a, b) registerName(#a, b);
static void SetTileNames()
{
Expand Down
2 changes: 0 additions & 2 deletions source/games/exhumed/src/exhumed.h
Expand Up @@ -44,8 +44,6 @@ enum basepal_t {
BASEPALCOUNT
};

void ExitGame();
void ShutDown(void);
void DebugOut(const char *fmt, ...);
int ExhumedMain(int argc, char *argv[]);

Expand Down

0 comments on commit 7c68261

Please sign in to comment.