diff options
author | Arnaud Boutonné | 2010-09-02 12:50:10 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-09-02 12:50:10 +0000 |
commit | 21a09427de2cc8b251a13150d6d4ba8576fa1430 (patch) | |
tree | e2aa640c2a397e5183dc1ac5ad8bd2b3d1df0438 /engines/hugo/file.cpp | |
parent | e284852b64cc772c6475fc9d2db35122bea090f8 (diff) | |
download | scummvm-rg350-21a09427de2cc8b251a13150d6d4ba8576fa1430.tar.gz scummvm-rg350-21a09427de2cc8b251a13150d6d4ba8576fa1430.tar.bz2 scummvm-rg350-21a09427de2cc8b251a13150d6d4ba8576fa1430.zip |
HUGO: Cleanup and fix mouse pointer issue
- Suppress commented code
- Suppress readConfig() and writeConfig()
- Fix the disappearing mouse issue
svn-id: r52495
Diffstat (limited to 'engines/hugo/file.cpp')
-rw-r--r-- | engines/hugo/file.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index 2a76d13ee7..b4645c4d0b 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -815,44 +815,6 @@ void FileManager::readBootFile() { Utils::Error(GEN_ERR, "%s", "Program startup file invalid"); } -void FileManager::readConfig() { -// Read the user's config if it exists - Common::File f; - fpath_t path; - config_t tmpConfig = _config; - - debugC(1, kDebugFile, "readConfig"); - - sprintf(path, "%s%s", _vm.getGameStatus().path, CONFIGFILE); - if (f.open(path)) { - // If config format changed, ignore it and use defaults - if (f.size() != sizeof(_config)) { - warning("Incompatible %s: file size: %ld expected size: %ld. Skipping loading.", CONFIGFILE, f.size(), sizeof(_config)); - } else { - if (f.read(&_config, sizeof(_config)) != sizeof(_config)) - _config = tmpConfig; - } - - f.close(); - } -} - -void FileManager::writeConfig() { -// Write the user's config - FILE *f; - fpath_t path; - - debugC(1, kDebugFile, "writeConfig"); - - // Write user's config - // No error checking in case CD-ROM with no alternate path specified - sprintf(path, "%s%s", _vm.getGameStatus().path, CONFIGFILE); - if ((f = fopen(path, "w+")) != NULL) - fwrite(&_config, sizeof(_config), 1, f); - - fclose(f); -} - uif_hdr_t *FileManager::getUIFHeader(uif_t id) { // Returns address of uif_hdr[id], reading it in if first call static uif_hdr_t UIFHeader[MAX_UIFS]; // Lookup for uif fonts/images |