mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-03 11:42:41 +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();
|
||||
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
||||
if (file == 0) {
|
||||
PcSaveHelper.nErrorCode = SAVESTATUS_ERR_LOAD_OPEN;
|
||||
return false;
|
||||
}
|
||||
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
||||
|
@@ -319,6 +319,7 @@ GenericLoad()
|
||||
|
||||
file = CFileMgr::OpenFile(LoadFileName, "rb");
|
||||
if (file == 0) {
|
||||
PcSaveHelper.nErrorCode = SAVESTATUS_ERR_LOAD_OPEN;
|
||||
return false;
|
||||
}
|
||||
size = C_PcSave::PcClassLoadRoutine(file, work_buff);
|
||||
|
Reference in New Issue
Block a user