DrawStandardMenus, VC menu array and minor fixes

This commit is contained in:
eray orçunus
2020-06-01 17:52:40 +03:00
parent 6d3e54369c
commit d930a25d94
11 changed files with 1227 additions and 1338 deletions

View File

@ -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;

View File

@ -32,7 +32,7 @@ public:
C_PcSave() : nErrorCode(SAVESTATUS_SUCCESSFUL) {}
void PopulateSlotInfo();
bool DeleteSlot(int32 slot);
bool SaveSlot(int32 slot);
int8 SaveSlot(int32 slot);
bool PcClassSaveRoutine(int32 a2, uint8 *data, uint32 size);
static void SetSaveDirectory(const char *path);
};