From dda3b2a51f6dbc61d08be82dd47e18b784cb2158 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 10 Sep 2019 11:16:20 +0000 Subject: [PATCH] Rename bios tester to biostest and make it debug only to avoid people trying to load real bioses. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4258 --- src/dos/dos_programs.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index feba30e3..7e17f11e 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -1005,7 +1005,8 @@ static void LOADROM_ProgramStart(Program * * make) { *make=new LOADROM; } -class BIOS : public Program { +#if C_DEBUG +class BIOSTEST : public Program { public: void Run(void) { if (!(cmd->FindCommand(1, temp_line))) { @@ -1057,10 +1058,12 @@ public: } }; -static void BIOS_ProgramStart(Program * * make) { - *make = new BIOS; +static void BIOSTEST_ProgramStart(Program * * make) { + *make = new BIOSTEST; } +#endif + // LOADFIX class LOADFIX : public Program { @@ -1822,7 +1825,9 @@ void DOS_SetupPrograms(void) { PROGRAMS_MakeFile("RESCAN.COM",RESCAN_ProgramStart); PROGRAMS_MakeFile("INTRO.COM",INTRO_ProgramStart); PROGRAMS_MakeFile("BOOT.COM",BOOT_ProgramStart); - PROGRAMS_MakeFile("BIOS.COM", BIOS_ProgramStart); +#if C_DEBUG + PROGRAMS_MakeFile("BIOSTEST.COM", BIOSTEST_ProgramStart); +#endif PROGRAMS_MakeFile("LOADROM.COM", LOADROM_ProgramStart); PROGRAMS_MakeFile("IMGMOUNT.COM", IMGMOUNT_ProgramStart); PROGRAMS_MakeFile("KEYB.COM", KEYB_ProgramStart);