[Scummvm-git-logs] scummvm master -> 2b2ab22990aca62dc17842c855a09eeb4c82108a

bluegr noreply at scummvm.org
Wed Jul 2 06:34:11 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
2b2ab22990 AWE: Enable EGA renderer for DOS version


Commit: 2b2ab22990aca62dc17842c855a09eeb4c82108a
    https://github.com/scummvm/scummvm/commit/2b2ab22990aca62dc17842c855a09eeb4c82108a
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2025-07-02T09:34:08+03:00

Commit Message:
AWE: Enable EGA renderer for DOS version

This way the DOS version can also be played in EGA mode,
if selected in ScummVM's Render options.

Changed paths:
    engines/awe/awe.cpp
    engines/awe/detection_tables.h


diff --git a/engines/awe/awe.cpp b/engines/awe/awe.cpp
index dcfb7929891..49a6702c956 100644
--- a/engines/awe/awe.cpp
+++ b/engines/awe/awe.cpp
@@ -21,6 +21,7 @@
 
 #include "audio/mixer.h"
 #include "common/config-manager.h"
+#include "common/rendermode.h"
 #include "common/stream.h"
 #include "awe/awe.h"
 #include "awe/engine.h"
@@ -105,7 +106,12 @@ AweEngine::AweEngine(OSystem *syst, const Awe::AweGameDescription *gameDesc)
 
 	Gfx::_is1991 = false;
 	Gfx::_format = Graphics::PixelFormat::createFormatCLUT8();
-	Video::_useEGA = false;
+
+	if (ConfMan.hasKey("render_mode") && !ConfMan.get("render_mode").empty())
+		Video::_useEGA = (Common::parseRenderMode(ConfMan.get("render_mode")) == Common::kRenderEGA) ? true : false;
+	else
+		Video::_useEGA = false;
+
 	Script::_difficulty = DIFFICULTY_NORMAL;
 	Script::_useRemasteredAudio = true;
 }
diff --git a/engines/awe/detection_tables.h b/engines/awe/detection_tables.h
index d00ee4b7a22..e2e2685101c 100644
--- a/engines/awe/detection_tables.h
+++ b/engines/awe/detection_tables.h
@@ -37,7 +37,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::EN_ANY,
 			Common::kPlatformDOS,
 			ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},
@@ -49,7 +49,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::FR_FRA,
 			Common::kPlatformDOS,
 			ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},
@@ -64,7 +64,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::EN_ANY,
 			Common::kPlatformDOS,
 			ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},
@@ -78,7 +78,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::EN_USA,
 			Common::kPlatformDOS,
 			ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},
@@ -92,7 +92,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::EN_USA,
 			Common::kPlatformDOS,
 			ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},
@@ -105,7 +105,7 @@ const AweGameDescription gameDescriptions[] = {
 			Common::EN_ANY,
 			Common::kPlatformDOS,
 			ADGF_DEMO | ADGF_TESTING,
-			GUIO1(GAMEOPTION_COPY_PROTECTION)
+			GUIO3(GUIO_RENDEREGA, GUIO_RENDERVGA, GAMEOPTION_COPY_PROTECTION)
 		},
 		DT_DOS
 	},




More information about the Scummvm-git-logs mailing list