mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-08 21:50:52 +02:00
Set savegame error code if failed to open for load
This commit is contained in:
committed by
Stefanos Kornilios Mitsis Poiitidis
parent
d7af07d549
commit
6208a13bd6
@@ -286,6 +286,7 @@ GenericLoad()
|
|||||||
CPad::ResetCheats();
|
CPad::ResetCheats();
|
||||||
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
||||||
if (file == 0) {
|
if (file == 0) {
|
||||||
|
PcSaveHelper.nErrorCode = SAVESTATUS_ERR_LOAD_OPEN;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
||||||
|
@@ -319,6 +319,7 @@ GenericLoad()
|
|||||||
|
|
||||||
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
||||||
if (file == 0) {
|
if (file == 0) {
|
||||||
|
PcSaveHelper.nErrorCode = SAVESTATUS_ERR_LOAD_OPEN;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
||||||
|
Reference in New Issue
Block a user