Allow crossing the 2MB line on OS 3.60

This commit is contained in:
Lephenixnoir 2021-09-18 12:04:05 +02:00
parent aa6cca601f
commit a7afb12294
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 4 additions and 2 deletions

4
README
View File

@ -7,7 +7,7 @@ Credit goes to:
* MPoupe for the original fx-CG 10/20 port of DOOM.
* ComputerNerd for the first attempts at an fx-CG 50 port.
* Lephenixnoir for this fx-CG 50 version, with extensive feedback and testing
by Computer_Freak_2004 that made everyhing 10 times better.
by Computer_Freak_2004 that made everything 10 times better.
CGDoom is licensed under GPLv2 as a derivative work of both the original DOOM
sources (GPL) and nDoom (GPLv2). See LICENSE.
@ -29,6 +29,8 @@ Technical support TODO:
-> Load/Save game would be very cool
-> Reenable LTO if possible
-> Built-in overclocking?
-> SDL2 debug version support?
-> Darken background in menu (some code does that somewhere?)
CGDoom used to be compiled with the mini-SDK. However, it's become quite
difficult to get a copy of that. Instead, this port is built with a modified

View File

@ -663,7 +663,7 @@ int main(void)
/* Allow the user to use memory past the 2 MB line on known OS versions */
int *enable_2MBline=NULL;
char const *osv = (void *)0x80020020;
if(!strncmp(osv, "03.", 3) && osv[3] <= '5') // 3.50 or earlier
if(!strncmp(osv, "03.", 3) && osv[3] <= '6') // 3.60 or earlier
enable_2MBline = &CGD_2MBLineMemory;
int choice = UI_Main(wads, wad_count, &dev_info, &gWADmethod,