Refactor codebase and complete implementation
- Consolidate development files into final implementation - Replace basic prototypes with full feature implementations - Add complete hash-based save data access system - Implement advanced map pin management algorithms - Add comprehensive error handling and user feedback - Complete Korok seed database with all 908 locations
This commit is contained in:
parent
07db2a4d8d
commit
6bff4b6fcd
20 changed files with 2011 additions and 281 deletions
37
source/save.h
Normal file
37
source/save.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef SAVE_H
|
||||
#define SAVE_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
size_t length;
|
||||
char * saveFile;
|
||||
} gameDataSav;
|
||||
|
||||
typedef struct {
|
||||
u32 PLAYER_POSITION;
|
||||
u32 MAP;
|
||||
} Hashes;
|
||||
|
||||
typedef union Float {
|
||||
float m_float;
|
||||
u8 m_bytes[sizeof(float)];
|
||||
} Float;
|
||||
|
||||
u32 _searchHash(u32 hash);
|
||||
u32 readU32FromHash(u32 hash);
|
||||
u32 readU32FromAddr(u32 addr);
|
||||
float readF32FromAddr(u32 addr);
|
||||
void writeF32ToAddr(u32 addr, float value);
|
||||
void writeU32ToAddr(u32 addr, u32 value);
|
||||
float readF32FromHash(u32 hash, u32 offset);
|
||||
void processSave();
|
||||
void openSave();
|
||||
void writeSave();
|
||||
void closeAndCommitSave();
|
||||
u32 getSaveSize();
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue