mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
27 lines
683 B
C++
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);
|
|
}
|
|
};
|