ENGINES: Change 2nd param of Engine::saveGameState to Common::String
This commit is contained in:
parent
86240bb0dc
commit
477d6233c3
50 changed files with 71 additions and 74 deletions
|
@ -1017,10 +1017,10 @@ Common::Error AgiEngine::loadGameState(int slot) {
|
|||
}
|
||||
}
|
||||
|
||||
Common::Error AgiEngine::saveGameState(int slot, const char *desc) {
|
||||
Common::Error AgiEngine::saveGameState(int slot, const Common::String &desc) {
|
||||
char saveLoadSlot[12];
|
||||
sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), slot);
|
||||
if (saveGame(saveLoadSlot, desc) == errOK)
|
||||
if (saveGame(saveLoadSlot, desc.c_str()) == errOK)
|
||||
return Common::kNoError;
|
||||
else
|
||||
return Common::kUnknownError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue