summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-01 16:52:40 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-01 17:32:34 +0200
commitd930a25d942fb0a94d9df0bc0d3eaf76fbc03658 (patch)
tree102e2f6c98538dca669b94fa05eb5615f44d7c45 /src/save/PCSave.cpp
parentMerge pull request #608 from Nick007J/miami (diff)
downloadre3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.gz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.bz2
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.lz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.xz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.zst
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.zip
Diffstat (limited to '')
-rw-r--r--src/save/PCSave.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp
index 3dc80f73..29d8eb71 100644
--- a/src/save/PCSave.cpp
+++ b/src/save/PCSave.cpp
@@ -33,7 +33,7 @@ C_PcSave::DeleteSlot(int32 slot)
return true;
}
-bool
+int8
C_PcSave::SaveSlot(int32 slot)
{
MakeValidSaveName(slot);
@@ -45,10 +45,10 @@ C_PcSave::SaveSlot(int32 slot)
if (GenericSave(file)) {
if (!!CFileMgr::CloseFile(file))
nErrorCode = SAVESTATUS_ERR_SAVE_CLOSE;
- return true;
+ return 0;
}
- return false;
+ return 2;
}
PcSaveHelper.nErrorCode = SAVESTATUS_ERR_SAVE_CREATE;
return false;