aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/saveload.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-11-17 12:48:28 +0000
committerTravis Howell2007-11-17 12:48:28 +0000
commit7bc422a8e94fedbb70470222b155ced1163d0a81 (patch)
tree173328605d696aa6e145f0c64e13e989366e75e7 /engines/agos/saveload.cpp
parent9a07589de815ce0e05a5a3398f084a37a3e56c57 (diff)
downloadscummvm-rg350-7bc422a8e94fedbb70470222b155ced1163d0a81.tar.gz
scummvm-rg350-7bc422a8e94fedbb70470222b155ced1163d0a81.tar.bz2
scummvm-rg350-7bc422a8e94fedbb70470222b155ced1163d0a81.zip
Use unique save game naming for PC versions of Elvira 2 and Waxworks, due to the save game format differences.
svn-id: r29539
Diffstat (limited to 'engines/agos/saveload.cpp')
-rw-r--r--engines/agos/saveload.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp
index 16dd32b97e..9df7e6815c 100644
--- a/engines/agos/saveload.cpp
+++ b/engines/agos/saveload.cpp
@@ -87,9 +87,15 @@ char *AGOSEngine::genSaveName(int slot) {
} else if (getGameType() == GType_SIMON1) {
sprintf(buf, "simon1.%.3d", slot);
} else if (getGameType() == GType_WW) {
- sprintf(buf, "waxworks.%.3d", slot);
+ if (getPlatform() == Common::kPlatformPC)
+ sprintf(buf, "waxworks-pc.%.3d", slot);
+ else
+ sprintf(buf, "waxworks.%.3d", slot);
} else if (getGameType() == GType_ELVIRA2) {
- sprintf(buf, "elvira2.%.3d", slot);
+ if (getPlatform() == Common::kPlatformPC)
+ sprintf(buf, "elvira2-pc.%.3d", slot);
+ else
+ sprintf(buf, "elvira2.%.3d", slot);
} else if (getGameType() == GType_ELVIRA1) {
sprintf(buf, "elvira1.%.3d", slot);
}