WIP overlay support and some libultra function implementations for other games

This commit is contained in:
Mr-Wiseguy 2023-01-12 23:39:49 -05:00
parent 0af9d489b3
commit c6de2b6189
17 changed files with 13096 additions and 214 deletions

21
sections.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef __SECTIONS_H__
#define __SECTIONS_H__
#include <stdint.h>
#define ARRLEN(x) (sizeof(x) / sizeof((x)[0]))
typedef struct {
void* func;
uint32_t offset;
} FuncEntry;
typedef struct {
uint32_t rom_addr;
uint32_t ram_addr;
uint32_t size;
FuncEntry *funcs;
size_t num_funcs;
} SectionTableEntry;
#endif