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

@ -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