MOHAWK: Fix game "Just Grandma and Me" german and french version crash

The german and french version of "Just Grandma and Me" (Mohawk engine) have the special characters "ç" and "ö" in their config files. This causes ScummVM to crash when trying to start the game in german or french. Allowing non english chars in config files for Living Books games fixes this issue.
This commit is contained in:
besentv 2020-10-27 23:31:44 +01:00 committed by Eugene Sandulenko
parent 29cfa7bb0f
commit 3530eae6f1

View File

@ -298,6 +298,7 @@ void MohawkEngine_LivingBooks::pauseEngineIntern(bool pause) {
}
void MohawkEngine_LivingBooks::loadBookInfo(const Common::String &filename) {
_bookInfoFile.allowNonEnglishCharacters();
if (!_bookInfoFile.loadFromFile(filename))
error("Could not open %s as a config file", filename.c_str());