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/sword1 | |
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/sword1')
-rw-r--r-- | engines/sword1/detection.cpp | 4 | ||||
-rw-r--r-- | engines/sword1/sword1.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp index b02cadc6db..48c3a0d14d 100644 --- a/engines/sword1/detection.cpp +++ b/engines/sword1/detection.cpp @@ -336,8 +336,8 @@ bool SwordEngine::canLoadGameStateCurrently() { return (mouseIsActive() && !_control->isPanelShown()); // Disable GMM loading when game panel is shown } -Common::Error SwordEngine::saveGameState(int slot, const char *desc) { - _control->setSaveDescription(slot, desc); +Common::Error SwordEngine::saveGameState(int slot, const Common::String &desc) { + _control->setSaveDescription(slot, desc.c_str()); _control->saveGameToFile(slot); return Common::kNoError; // TODO: return success/failure } diff --git a/engines/sword1/sword1.h b/engines/sword1/sword1.h index c83cb76461..2d6db21d19 100644 --- a/engines/sword1/sword1.h +++ b/engines/sword1/sword1.h @@ -110,7 +110,7 @@ protected: Common::Error loadGameState(int slot); bool canLoadGameStateCurrently(); - Common::Error saveGameState(int slot, const char *desc); + Common::Error saveGameState(int slot, const Common::String &desc); bool canSaveGameStateCurrently(); private: |