From a7afb122947f89498cab6eab6bfb08dd8ef4202c Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 18 Sep 2021 12:04:05 +0200 Subject: [PATCH] Allow crossing the 2MB line on OS 3.60 --- README | 4 +++- cgdoom/cgdoom.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index c5b273a..9bb8da4 100644 --- a/README +++ b/README @@ -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 diff --git a/cgdoom/cgdoom.c b/cgdoom/cgdoom.c index b667eb6..0974b0f 100644 --- a/cgdoom/cgdoom.c +++ b/cgdoom/cgdoom.c @@ -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,