From 2f03c96d9a5053789226cb9957bd40bd303ac9eb Mon Sep 17 00:00:00 2001 From: Neil Rackett Date: Fri, 28 Nov 2025 15:36:39 +0000 Subject: [PATCH] Prevents Mega STE failing to load after defaulting to "French version" --- .gitignore | 2 ++ linuxdoom-1.10/d_main.c | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..1b8727810 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +/linuxdoom-1.10/atari/*.o \ No newline at end of file diff --git a/linuxdoom-1.10/d_main.c b/linuxdoom-1.10/d_main.c index a1cd676cd..a98783808 100644 --- a/linuxdoom-1.10/d_main.c +++ b/linuxdoom-1.10/d_main.c @@ -670,6 +670,13 @@ void IdentifyVersion (void) return; } + if ( !access (doom1wad,R_OK) ) + { + gamemode = shareware; + D_AddFile (doom1wad); + return; + } + if ( !access (doom2fwad,R_OK) ) { gamemode = commercial; @@ -716,13 +723,6 @@ void IdentifyVersion (void) return; } - if ( !access (doom1wad,R_OK) ) - { - gamemode = shareware; - D_AddFile (doom1wad); - return; - } - printf("Game mode indeterminate.\n"); gamemode = indetermined;