From 0f3b3300fbdc6725eff0f0e1c5b546ad56d06196 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 23 Jan 2020 05:50:12 -0500 Subject: [PATCH] - not yet finished: this enables some console cheats in Blood and Shadow Warrior --- source/blood/src/blood.cpp | 3 +++ source/sw/CMakeLists.txt | 1 + source/sw/src/game.cpp | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/source/blood/src/blood.cpp b/source/blood/src/blood.cpp index c35da5788..f867b9cd2 100644 --- a/source/blood/src/blood.cpp +++ b/source/blood/src/blood.cpp @@ -1204,6 +1204,9 @@ int GameInterface::app_main() if (!bQuickStart) credLogosDos(); scrSetDac(); + + registerosdcommands(); + RESTART: sub_79760(); gViewIndex = myconnectindex; diff --git a/source/sw/CMakeLists.txt b/source/sw/CMakeLists.txt index c09d088c1..5484f2334 100644 --- a/source/sw/CMakeLists.txt +++ b/source/sw/CMakeLists.txt @@ -85,6 +85,7 @@ set( PCH_SOURCES src/morph.cpp src/network.cpp src/ninja.cpp + src/osdcmds.cpp src/panel.cpp src/player.cpp src/predict.cpp diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index f4f0cbf4c..06660f162 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -99,6 +99,8 @@ Things required to make savegames work: #include "rendering/v_video.h" #include "sound/s_soundinternal.h" +#include "osdcmds.h" + //#include "crc32.h" BEGIN_SW_NS @@ -2779,6 +2781,8 @@ int32_t GameInterface::app_main() UserMapName[0] = '\0'; + registerosdcommands(); + Control(); return 0;