mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
Fix kyra save file naming scheme.
svn-id: r31164
This commit is contained in:
parent
d71523ae15
commit
0a0576d060
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user