mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Refactored platform code to use interfaces for patch code with a special feature and improved patch code file names
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "sections.h"
|
||||
#include "thumbInstructions.h"
|
||||
#include "patches/PatchCode.h"
|
||||
|
||||
DEFINE_SECTION_SYMBOLS(iorpg_sdwaitforstate);
|
||||
|
||||
extern "C" void iorpg_sdWaitForState(u32 status_shift, u8 state);
|
||||
|
||||
class IoRpgSdWaitForStatePatchCode : public PatchCode
|
||||
{
|
||||
public:
|
||||
explicit IoRpgSdWaitForStatePatchCode(PatchHeap& patchHeap)
|
||||
: PatchCode(SECTION_START(iorpg_sdwaitforstate), SECTION_SIZE(iorpg_sdwaitforstate), patchHeap) { }
|
||||
|
||||
const void* GetSDWaitForStateFunction() const
|
||||
{
|
||||
return GetAddressAtTarget((void*)iorpg_sdWaitForState);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user