Fix kyra save file naming scheme.

svn-id: r31164
This commit is contained in:
Johannes Schickel 2008-03-17 21:56:37 +00:00
parent d71523ae15
commit 0a0576d060
2 changed files with 11 additions and 11 deletions

View File

@ -313,16 +313,5 @@ bool KyraEngine::textEnabled() {
return !_flags.isTalkie || (_configVoice == 0 || _configVoice == 2);
}
const char *KyraEngine::getSavegameFilename(int num) {
static Common::String filename;
char extension[5];
sprintf(extension, "%3d", num);
filename = _targetName + "." + extension;
return filename.c_str();
}
} // End of namespace Kyra

View File

@ -128,4 +128,15 @@ Common::OutSaveFile *KyraEngine::openSaveForWriting(const char *filename, const
return out;
}
const char *KyraEngine::getSavegameFilename(int num) {
static Common::String filename;
char extension[5];
sprintf(extension, "%.3d", num);
filename = _targetName + "." + extension;
return filename.c_str();
}
} // end of namespace Kyra