Poke_Transporter_GB/include/rom_data.h
Remnants of Forgotten Disney fde2cfe68f Adding check for other events
2023-11-18 12:58:48 -06:00

50 lines
1.1 KiB
C++

#ifndef ROM_POINTERS_H
#define ROM_POINTERS_H
#include <tonc.h>
#define RUBY_ID 0x415856 // AXV
#define SAPPHIRE_ID 0x415850 // AXP
#define FIRERED_ID 0x425052 // BPR
#define LEAFGREEN_ID 0x425047 // BPG
#define EMERALD_ID 0x425045 // BPE
#define VERS_1_0 0
#define VERS_1_1 1
#define VERS_1_2 2
#define LANG_JPN 'J'
#define LANG_ENG 'E'
#define LANG_FRE 'F'
#define LANG_GER 'D'
#define LANG_ITA 'I'
#define LANG_SPA 'S'
class rom_data
{
public:
rom_data();
bool load_rom();
bool is_hoenn();
bool is_ruby_sapphire();
int loc_sendMonToPC;
int loc_gSpecialVar_0x8000;
int loc_gSaveBlock1; // Only used in R/S
int loc_gSaveBlock1PTR; // Only used in FR/LG/E
int loc_setPokedexFlag;
int offset_ramscript; // Ramscript offset as found within the SaveBlock1 struct in global.h
int offset_flags; // Flag offset as found within the SaveBlock1 struct in global.h
int offset_wondercard;
int offset_script;
int text_region;
u8 map_bank;
u8 map_id;
u8 npc_id;
u8 def_map_bank;
u8 def_map_id;
u8 def_npc_id;
};
#endif