N64ModernRuntime/librecomp/include/recomp_overlays.h
David Chavez 70b31c2c9f
Add overlays (#5)
Co-authored-by: angie <angheloalf95@gmail.com>
2024-05-24 01:33:24 +02:00

31 lines
809 B
C++

#ifndef __RECOMP_OVERLAYS_H__
#define __RECOMP_OVERLAYS_H__
#include <cstdint>
#include "sections.h"
namespace recomp {
namespace overlays {
struct section_table_data_t {
SectionTableEntry* code_sections;
size_t num_code_sections;
size_t total_num_sections;
};
struct overlays_by_index_t {
int* table;
size_t len;
};
void register_overlays(const section_table_data_t& sections, const overlays_by_index_t& overlays);
extern section_table_data_t sections_info;
extern overlays_by_index_t overlays_info;
}
}
extern "C" void load_overlays(uint32_t rom, int32_t ram_addr, uint32_t size);
extern "C" void unload_overlays(int32_t ram_addr, uint32_t size);
void init_overlays();
#endif