mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-02 07:46:01 +00:00
e6bc4bd8cb
* Add names to all typedef'd structs, unions, and enums * wtf vs code * Use a better regex
18 lines
442 B
C
18 lines
442 B
C
#ifndef ROMFILE_H
|
|
#define ROMFILE_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
typedef struct RomFile {
|
|
/* 0x00 */ uintptr_t vromStart;
|
|
/* 0x04 */ uintptr_t vromEnd;
|
|
} RomFile; // size = 0x8
|
|
|
|
#define ROM_FILE(name) \
|
|
{ (uintptr_t)_##name##SegmentRomStart, (uintptr_t)_##name##SegmentRomEnd }
|
|
#define ROM_FILE_EMPTY(name) \
|
|
{ (uintptr_t)_##name##SegmentRomStart, (uintptr_t)_##name##SegmentRomStart }
|
|
#define ROM_FILE_UNSET \
|
|
{ 0, 0 }
|
|
|
|
#endif
|