Rename z3 structures to zelda3 for consistency and clarity; add zelda3_rom struct and related functions

This commit is contained in:
scawful
2025-01-18 15:09:38 -05:00
parent 7b939d9a70
commit 956a70e8fa
4 changed files with 27 additions and 26 deletions

View File

@@ -83,8 +83,18 @@ const static zelda3_version_pointers zelda3_jp_pointers = {
0x67DD0, // kDungeonPalettesGroups
};
typedef struct zelda3_rom {
const char* filename;
const uint8_t* data;
size_t size;
void* impl; // yaze::Rom*
} zelda3_rom;
zelda3_rom* yaze_load_rom(const char* filename);
void yaze_unload_rom(zelda3_rom* rom);
#ifdef __cplusplus
}
#endif
#endif
#endif // ZELDA_H