Skip to content

Commit

Permalink
- enabled the ENDOOM-like text screens when quitting Duke and SW.
Browse files Browse the repository at this point in the history
Turned out that all they needed was the font.
  • Loading branch information
coelckers committed May 31, 2021
1 parent e9dad5b commit 8b507ed
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 252 deletions.
2 changes: 1 addition & 1 deletion source/games/blood/src/blood.h
Expand Up @@ -107,7 +107,7 @@ inline bool VanillaMode()
}
void sndPlaySpecialMusicOrNothing(int nMusic);

struct GameInterface : ::GameInterface
struct GameInterface : public ::GameInterface
{
const char* Name() override { return "Blood"; }
void app_init() override;
Expand Down
2 changes: 1 addition & 1 deletion source/games/exhumed/src/exhumed.h
Expand Up @@ -214,7 +214,7 @@ const uint32_t kSpiritY = 97;
const uint32_t WorktileSize = kSpiritX * 2 * kSpiritY * 2;


struct GameInterface : ::GameInterface
struct GameInterface : public ::GameInterface
{
const char* Name() override { return "Exhumed"; }
void app_init() override;
Expand Down
9 changes: 9 additions & 0 deletions source/games/sw/src/game.cpp
Expand Up @@ -44,6 +44,8 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
#include "automap.h"
#include "statusbar.h"
#include "texturemanager.h"
#include "st_start.h"
#include "i_interface.h"


#include "mytypes.h"
Expand Down Expand Up @@ -638,6 +640,13 @@ void GameInterface::ErrorCleanup()
TerminateLevel();
FinishAnim = false;
}

void GameInterface::ExitFromMenu()
{
endoomName = !isShareware() ? "swreg.bin" : "shadsw.bin";
ST_Endoom();
}

//---------------------------------------------------------------------------
//
//
Expand Down
3 changes: 2 additions & 1 deletion source/games/sw/src/game.h
Expand Up @@ -2229,7 +2229,7 @@ extern short Bunny_Count;
#define ANIM_SUMO 2
#define ANIM_ZILLA 3

struct GameInterface : ::GameInterface
struct GameInterface : public ::GameInterface
{
const char* Name() override { return "ShadowWarrior"; }
void app_init() override;
Expand Down Expand Up @@ -2270,6 +2270,7 @@ struct GameInterface : ::GameInterface
void EnterPortal(spritetype* viewer, int type) override;
void LeavePortal(spritetype* viewer, int type) override;
int Voxelize(int sprnum);
void ExitFromMenu() override;


GameStats getStats() override;
Expand Down
501 changes: 252 additions & 249 deletions wadsrc/static/language.0

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions wadsrc/static/menudef.txt
Expand Up @@ -1635,6 +1635,14 @@ OptionValue Autosave
2, "$OPTVAL_NEVER"
}

OptionValue Endoom
{
0.0, "$OPTVAL_OFF"
1.0, "$OPTVAL_ON"
2.0, "$OPTVAL_ONLYMODIFIED"
}


/*=======================================
*
* Language menu
Expand Down Expand Up @@ -1694,6 +1702,11 @@ OptionMenu "MiscOptions" protected
}
//StaticText " "
Option "$OPTMNU_LANGUAGE", "language", "LanguageOptions"
IfOption(Windows)
{
StaticText " "
Option "$DSPLYMNU_SHOWENDOOM", "showendoom", "Endoom"
}

}

Expand Down
Binary file added wadsrc/static/vga-rom-font.16
Binary file not shown.

0 comments on commit 8b507ed

Please sign in to comment.