MTROPOLIS: Condense Obsidian widescreen mod into one option.

This commit is contained in:
elasota 2022-06-26 14:08:40 -04:00
parent 98c306376f
commit 4f64e52542
2 changed files with 6 additions and 22 deletions

View File

@ -70,22 +70,14 @@ const ExtraGuiOptions MTropolisMetaEngineDetection::getExtraGuiOptions(const Com
if (gameid == "obsidian") {
static const ExtraGuiOption widescreenOption = {
_s("Widescreen"),
_s("Removes upper letterbox bar"),
"mtropolis_enh_obsidian_widescreen",
_s("16:9 Widescreen Mod"),
_s("Removes letterboxing and moves some display elements, improving coverage on widescreen displays"),
"mtropolis_mod_obsidian_widescreen",
false,
0,
1};
static const ExtraGuiOption widescreenImprovedOption = {
_s("Enhanced Widescreen"),
_s("Removes the upper and lower letterbox bars and relocates inventory item graphics"),
"mtropolis_enh_obsidian_widescreen_improved",
false,
1,
0};
options.push_back(widescreenOption);
options.push_back(widescreenImprovedOption);
}
static const ExtraGuiOption launchDebugOption = {

View File

@ -121,19 +121,11 @@ Common::Error MTropolisEngine::run() {
_runtime->getHacks().ignoreMismatchedProjectNameInObjectLookups = true;
if (ConfMan.getBool("mtropolis_enh_obsidian_widescreen")) {
preferredHeight = 420;
_runtime->getHacks().mainWindowOffset = Common::Point(0, -30);
if (ConfMan.getBool("mtropolis_mod_obsidian_widescreen")) {
_runtime->getHacks().reportDisplaySize = Common::Point(640, 480);
if (ConfMan.getBool("mtropolis_enh_obsidian_widescreen_improved")) {
preferredHeight = 360;
_runtime->getHacks().mainWindowOffset = Common::Point(0, 0);
HackSuites::addObsidianImprovedWidescreen(*_gameDescription, _runtime->getHacks());
}
preferredHeight = 360;
HackSuites::addObsidianImprovedWidescreen(*_gameDescription, _runtime->getHacks());
}
}