mirror of
				https://github.com/Zelda64Recomp/Zelda64Recomp.git
				synced 2025-10-30 08:03:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			386 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			386 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef __SECTIONS_H__
 | 
						|
#define __SECTIONS_H__
 | 
						|
 | 
						|
#include <stdint.h>
 | 
						|
#include "recomp.h"
 | 
						|
 | 
						|
#define ARRLEN(x) (sizeof(x) / sizeof((x)[0]))
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    recomp_func_t* func;
 | 
						|
    uint32_t offset;
 | 
						|
} FuncEntry;
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    uint32_t rom_addr;
 | 
						|
    uint32_t ram_addr;
 | 
						|
    uint32_t size;
 | 
						|
    FuncEntry *funcs;
 | 
						|
    size_t num_funcs;
 | 
						|
    size_t index;
 | 
						|
} SectionTableEntry;
 | 
						|
 | 
						|
#endif
 |