mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-17 06:19:00 +00:00
39 lines
706 B
C
39 lines
706 B
C
|
#pragma once
|
||
|
|
||
|
enum eSaveStatus
|
||
|
{
|
||
|
SAVESTATUS_SUCCESSFUL = 0,
|
||
|
SAVESTATUS_ERR_SAVE_CREATE,
|
||
|
SAVESTATUS_ERR_SAVE_WRITE,
|
||
|
SAVESTATUS_ERR_SAVE_CLOSE,
|
||
|
SAVESTATUS_ERR_LOAD_OPEN,
|
||
|
SAVESTATUS_ERR_LOAD_READ,
|
||
|
SAVESTATUS_ERR_LOAD_CLOSE,
|
||
|
SAVESTATUS_ERR_DATA_INVALID,
|
||
|
|
||
|
// unused
|
||
|
SAVESTATUS_DELETEFAILED8,
|
||
|
SAVESTATUS_DELETEFAILED9,
|
||
|
SAVESTATUS_DELETEFAILED10,
|
||
|
};
|
||
|
|
||
|
enum
|
||
|
{
|
||
|
SLOT_OK = 0,
|
||
|
SLOT_EMPTY,
|
||
|
SLOT_CORRUPTED
|
||
|
};
|
||
|
|
||
|
class C_PcSave
|
||
|
{
|
||
|
public:
|
||
|
eSaveStatus nErrorCode;
|
||
|
|
||
|
C_PcSave() : nErrorCode(SAVESTATUS_SUCCESSFUL) {}
|
||
|
void PopulateSlotInfo();
|
||
|
bool DeleteSlot(int32 slot);
|
||
|
bool SaveSlot(int32 slot);
|
||
|
bool PcClassSaveRoutine(int32 a2, uint8 *a3, uint32 a4);
|
||
|
static void SetSaveDirectory(const char *path);
|
||
|
};
|