diff options
author | Paul Gilbert | 2012-10-23 20:07:19 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-10-23 20:07:19 +1100 |
commit | c593f752968a0ceaa7bd7f70244c26caa2ab2efb (patch) | |
tree | 81d861221dba28e06bf3bba68030535edb22d720 /engines | |
parent | 37dcdbf52767563c79c476315b39b055b7cf088f (diff) | |
download | scummvm-rg350-c593f752968a0ceaa7bd7f70244c26caa2ab2efb.tar.gz scummvm-rg350-c593f752968a0ceaa7bd7f70244c26caa2ab2efb.tar.bz2 scummvm-rg350-c593f752968a0ceaa7bd7f70244c26caa2ab2efb.zip |
HOPKINS: Replaced loading configuration from .ini file to use hard-coded array
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hopkins/files.cpp | 49 |
1 files changed, 10 insertions, 39 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 1fe4eba2ac..151a9a84f8 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -66,45 +66,16 @@ bool FileManager::bsave(const Common::String &file, const void *buf, size_t n) { // Load INI File void FileManager::Chage_Inifile(Common::StringMap &iniParams) { - char *iniData = (char *)CHARGE_FICHIER("config.ini"); - char *ptr = iniData; - - bool endOfFile = false; - while (!endOfFile) { - if (*ptr == '%') { - if (*(ptr + 1) == '%') { - endOfFile = true; - } else { - ++ptr; - - // Get the parameter name - Common::String paramName; - while (*ptr == ' ') - ++ptr; - while (*ptr != '=') { - paramName += toupper(*ptr++); - } - while (paramName.lastChar() == ' ') - paramName.deleteLastChar(); - - // Get the parameter value - Common::String paramValue; - while (*++ptr == ' ') - ; - while (*ptr != ';') { - paramValue += toupper(*ptr++); - } - while (paramValue.lastChar() == ' ') - paramValue.deleteLastChar(); - - iniParams[paramName] = paramValue; - } - } - - ++ptr; - } - - free(iniData); + // TODO: Review whether we can do something cleaner with ScummVM initialisation than + // just initialising the INI array as if it had read in the INI file + + iniParams["FULLSCREEN"] = "NO"; + iniParams["SETMODE"] = "1"; // 640x480 + iniParams["ZOOM"] = "100"; // No zooming + iniParams["VIDEOMEM"] = "YES"; + iniParams["FORCE8BITS"] = "NO"; + iniParams["FORCE16BITS"] = "YES"; + iniParams["SOUND"] = "YES"; } // Load File |