diff options
author | Max Horn | 2011-06-02 14:11:38 +0200 |
---|---|---|
committer | Max Horn | 2011-06-02 18:31:59 +0200 |
commit | 477d6233c3672d9a60cceea3570bc775df3d9253 (patch) | |
tree | 741ffe9dcb35fd2c9de405b7da74e572451c8304 /engines/sword2 | |
parent | 86240bb0dc0103e5099d23770cc04cfd907d2c61 (diff) | |
download | scummvm-rg350-477d6233c3672d9a60cceea3570bc775df3d9253.tar.gz scummvm-rg350-477d6233c3672d9a60cceea3570bc775df3d9253.tar.bz2 scummvm-rg350-477d6233c3672d9a60cceea3570bc775df3d9253.zip |
ENGINES: Change 2nd param of Engine::saveGameState to Common::String
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/sword2.cpp | 4 | ||||
-rw-r--r-- | engines/sword2/sword2.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 99ffd5586e..87c7c12ad6 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -773,8 +773,8 @@ uint32 Sword2Engine::getMillis() { return _system->getMillis(); } -Common::Error Sword2Engine::saveGameState(int slot, const char *desc) { - uint32 saveVal = saveGame(slot, (const byte *)desc); +Common::Error Sword2Engine::saveGameState(int slot, const Common::String &desc) { + uint32 saveVal = saveGame(slot, (const byte *)desc.c_str()); if (saveVal == SR_OK) return Common::kNoError; diff --git a/engines/sword2/sword2.h b/engines/sword2/sword2.h index ee9ea9f27b..ef5c2b215e 100644 --- a/engines/sword2/sword2.h +++ b/engines/sword2/sword2.h @@ -164,7 +164,7 @@ public: void setSubtitles(bool b) { _useSubtitles = b; } // GMM Loading/Saving - Common::Error saveGameState(int slot, const char *desc); + Common::Error saveGameState(int slot, const Common::String &desc); bool canSaveGameStateCurrently(); Common::Error loadGameState(int slot); bool canLoadGameStateCurrently(); |