Expand save system with data access framework
- Add Hashes struct for known save file offsets - Add Float union for type conversion - Implement placeholder functions for: * Reading u32/float from addresses * Writing float to addresses * Save file writing - Add player position hash constant
This commit is contained in:
parent
8ddd30bbb4
commit
91898b81fb
2 changed files with 34 additions and 1 deletions
|
|
@ -9,7 +9,20 @@ typedef struct
|
|||
char * saveFile;
|
||||
} gameDataSav;
|
||||
|
||||
typedef struct {
|
||||
u32 PLAYER_POSITION;
|
||||
} Hashes;
|
||||
|
||||
typedef union Float {
|
||||
float m_float;
|
||||
u8 m_bytes[sizeof(float)];
|
||||
} Float;
|
||||
|
||||
u32 readU32FromAddr(u32 addr);
|
||||
float readF32FromAddr(u32 addr);
|
||||
void writeF32ToAddr(u32 addr, float value);
|
||||
void processSave();
|
||||
void openSave();
|
||||
void writeSave();
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue