SCI: Handle saving via the GMM for LB2 floppy

LB2 floppy is one of the few full version games that was shipped
without a selector vocabulary. Add the necessary selectors for it,
so that saving via the GMM is correctly enabled
This commit is contained in:
Filippos Karapetis 2022-01-18 00:21:59 +02:00
parent 834eefeddd
commit 6744600f57

View File

@ -208,6 +208,12 @@ Common::StringArray Kernel::checkStaticSelectorNames() {
findSpecificSelectors(names);
// HACK for LB2 floppy, for saving via GMM
if (g_sci->getGameId() == GID_LAURABOW2) {
names[342] = "input";
names[343] = "controls";
}
for (const SelectorRemap *selectorRemap = sciSelectorRemap; selectorRemap->slot; ++selectorRemap) {
if (getSciVersion() >= selectorRemap->minVersion && getSciVersion() <= selectorRemap->maxVersion) {
const uint32 slot = selectorRemap->slot;