Files
pico-loader/arm9/source/patches/arm9/OverlayPatches/PokemonIr/PokemonIrApPatchAsm.h
2025-12-06 09:10:10 -05:00

27 lines
683 B
C++

#pragma once
#include "sections.h"
#include "../../../PatchCode.h"
DEFINE_SECTION_SYMBOLS(pokemonirappatch);
extern "C" void pokemonirappatch_entry();
extern u32 pokemonirappatch_overlayId;
extern u32 pokemonirappatch_offset;
extern u32 pokemonirappatch_nextAddress;
class PokemonIrApPatchCode : public PatchCode
{
public:
PokemonIrApPatchCode(PatchHeap& patchHeap, const void* nextPatch)
: PatchCode(SECTION_START(pokemonirappatch), SECTION_SIZE(pokemonirappatch), patchHeap)
{
pokemonirappatch_nextAddress = (u32)nextPatch;
}
const void* GetPatchFunction() const
{
return GetAddressAtTarget((void*)pokemonirappatch_entry);
}
};