diff options
author | clone2727 | 2014-01-17 15:59:44 -0800 |
---|---|---|
committer | clone2727 | 2014-01-17 15:59:44 -0800 |
commit | 9d9ced07348e7b488933b58a0c76b3045d098a17 (patch) | |
tree | a8f9a94d6b5252acd7f45ac38e5f41cb100906fb /common | |
parent | c87074f8a843fcbc52d8824666ec9d26603a017a (diff) | |
parent | 3bfd42220533a3f2cd19e8f8a726ecc48ee97625 (diff) | |
download | scummvm-rg350-9d9ced07348e7b488933b58a0c76b3045d098a17.tar.gz scummvm-rg350-9d9ced07348e7b488933b58a0c76b3045d098a17.tar.bz2 scummvm-rg350-9d9ced07348e7b488933b58a0c76b3045d098a17.zip |
Merge pull request #366 from clone2727/he-saves-target-name
RFC: Make HE games use the target name in all save files
Diffstat (limited to 'common')
-rw-r--r-- | common/ini-file.cpp | 4 | ||||
-rw-r--r-- | common/ini-file.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/ini-file.cpp b/common/ini-file.cpp index be5247dcfb..9de0b38e93 100644 --- a/common/ini-file.cpp +++ b/common/ini-file.cpp @@ -53,7 +53,7 @@ bool INIFile::loadFromFile(const String &filename) { return false; } -bool INIFile::loadFromSaveFile(const char *filename) { +bool INIFile::loadFromSaveFile(const String &filename) { assert(g_system); SaveFileManager *saveFileMan = g_system->getSavefileManager(); SeekableReadStream *loadFile; @@ -181,7 +181,7 @@ bool INIFile::saveToFile(const String &filename) { return false; } -bool INIFile::saveToSaveFile(const char *filename) { +bool INIFile::saveToSaveFile(const String &filename) { assert(g_system); SaveFileManager *saveFileMan = g_system->getSavefileManager(); WriteStream *saveFile; diff --git a/common/ini-file.h b/common/ini-file.h index 1d94ce7bdc..a1505fe468 100644 --- a/common/ini-file.h +++ b/common/ini-file.h @@ -94,10 +94,10 @@ public: void clear(); bool loadFromFile(const String &filename); - bool loadFromSaveFile(const char *filename); + bool loadFromSaveFile(const String &filename); bool loadFromStream(SeekableReadStream &stream); bool saveToFile(const String &filename); - bool saveToSaveFile(const char *filename); + bool saveToSaveFile(const String &filename); bool saveToStream(WriteStream &stream); bool hasSection(const String §ion) const; |