AGI: Allow selection of arbitrary rendermodes. Fixes bug #14332

This was originally a feature of ScummVM: to allow, say, Amiga style
cursors and menus in DOS version. Thus, it was forgotten about when
we added GUIOs.
This commit is contained in:
Eugene Sandulenko 2023-03-18 00:30:19 +01:00
parent 008df8c0bf
commit e558a7a00a
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -289,24 +289,14 @@ Common::String AgiMetaEngineDetection::parseAndCustomizeGuiOptions(const Common:
const Common::Platform platform = Common::parsePlatform(ConfMan.get("platform", domain));
const Common::String gid = ConfMan.get("gameid", domain);
renderOptions = GUIO_RENDEREGA GUIO_RENDERCGA GUIO_RENDERHERCAMBER GUIO_RENDERHERCGREEN
GUIO_RENDERAMIGA GUIO_RENDERAPPLE2GS GUIO_RENDERATARIST GUIO_RENDERMACINTOSH;
switch (platform) {
case Common::kPlatformDOS:
renderOptions = GUIO_RENDEREGA GUIO_RENDERCGA GUIO_RENDERHERCAMBER GUIO_RENDERHERCGREEN;
if (gid.contains("AGI256") || gid.contains("256 Colors"))
renderOptions += GUIO_RENDERVGA;
break;
case Common::kPlatformAmiga:
renderOptions = GUIO_RENDERAMIGA;
break;
case Common::kPlatformApple2GS:
renderOptions = GUIO_RENDERAPPLE2GS;
break;
case Common::kPlatformAtariST:
renderOptions = GUIO_RENDERATARIST;
break;
case Common::kPlatformMacintosh:
renderOptions = GUIO_RENDERMACINTOSH;
break;
default:
break;
}