diff options
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/myst.cpp | 2 | ||||
-rw-r--r-- | engines/mohawk/myst.h | 2 | ||||
-rw-r--r-- | engines/mohawk/riven.cpp | 2 | ||||
-rw-r--r-- | engines/mohawk/riven.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index 4f9c3a893e..b60f8bd1ee 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -1168,7 +1168,7 @@ Common::Error MohawkEngine_Myst::loadGameState(int slot) { return Common::kUnknownError; } -Common::Error MohawkEngine_Myst::saveGameState(int slot, const char *desc) { +Common::Error MohawkEngine_Myst::saveGameState(int slot, const Common::String &desc) { Common::StringArray saveList = _gameState->generateSaveGameList(); if ((uint)slot < saveList.size()) diff --git a/engines/mohawk/myst.h b/engines/mohawk/myst.h index 5edf774ed0..ebcc3b445c 100644 --- a/engines/mohawk/myst.h +++ b/engines/mohawk/myst.h @@ -193,7 +193,7 @@ public: bool canLoadGameStateCurrently(); bool canSaveGameStateCurrently(); Common::Error loadGameState(int slot); - Common::Error saveGameState(int slot, const char *desc); + Common::Error saveGameState(int slot, const Common::String &desc); bool hasFeature(EngineFeature f) const; private: diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index f407e650f6..57a0ac717d 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -727,7 +727,7 @@ Common::Error MohawkEngine_Riven::loadGameState(int slot) { return _saveLoad->loadGame(_saveLoad->generateSaveGameList()[slot]) ? Common::kNoError : Common::kUnknownError; } -Common::Error MohawkEngine_Riven::saveGameState(int slot, const char *desc) { +Common::Error MohawkEngine_Riven::saveGameState(int slot, const Common::String &desc) { Common::StringArray saveList = _saveLoad->generateSaveGameList(); if ((uint)slot < saveList.size()) diff --git a/engines/mohawk/riven.h b/engines/mohawk/riven.h index e01e03895c..c80f497e37 100644 --- a/engines/mohawk/riven.h +++ b/engines/mohawk/riven.h @@ -126,7 +126,7 @@ public: bool canLoadGameStateCurrently() { return true; } bool canSaveGameStateCurrently() { return true; } Common::Error loadGameState(int slot); - Common::Error saveGameState(int slot, const char *desc); + Common::Error saveGameState(int slot, const Common::String &desc); bool hasFeature(EngineFeature f) const; typedef void (*TimerProc)(MohawkEngine_Riven *vm); |