aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-17 21:56:37 +0000
committerJohannes Schickel2008-03-17 21:56:37 +0000
commit0a0576d060aed2a7c9ab5ff4e55d4129386d9e83 (patch)
treefe8bde2aca6de76254cf94d733c623fa950dd699 /engines/kyra
parentd71523ae15fa6f2ca46911fc464e107934eba1f3 (diff)
downloadscummvm-rg350-0a0576d060aed2a7c9ab5ff4e55d4129386d9e83.tar.gz
scummvm-rg350-0a0576d060aed2a7c9ab5ff4e55d4129386d9e83.tar.bz2
scummvm-rg350-0a0576d060aed2a7c9ab5ff4e55d4129386d9e83.zip
Fix kyra save file naming scheme.
svn-id: r31164
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/kyra.cpp11
-rw-r--r--engines/kyra/saveload.cpp11
2 files changed, 11 insertions, 11 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp
index fa2f9d8b77..6bb92f9566 100644
--- a/engines/kyra/kyra.cpp
+++ b/engines/kyra/kyra.cpp
@@ -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
-
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp
index 334c015689..80dcd4144c 100644
--- a/engines/kyra/saveload.cpp
+++ b/engines/kyra/saveload.cpp
@@ -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
+