aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorclone27272014-01-17 15:59:44 -0800
committerclone27272014-01-17 15:59:44 -0800
commit9d9ced07348e7b488933b58a0c76b3045d098a17 (patch)
treea8f9a94d6b5252acd7f45ac38e5f41cb100906fb /common
parentc87074f8a843fcbc52d8824666ec9d26603a017a (diff)
parent3bfd42220533a3f2cd19e8f8a726ecc48ee97625 (diff)
downloadscummvm-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.cpp4
-rw-r--r--common/ini-file.h4
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 &section) const;