mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial commit
This commit is contained in:
20
arm9/source/patches/arm7/sdk2to4/CardiTaskThreadPatch.h
Normal file
20
arm9/source/patches/arm7/sdk2to4/CardiTaskThreadPatch.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "patches/Patch.h"
|
||||
|
||||
class FunctionSignature;
|
||||
|
||||
/// @brief Arm7 patch for redirecting save reads and writes on SDK 2-4.
|
||||
class CardiTaskThreadPatch : public Patch
|
||||
{
|
||||
public:
|
||||
bool FindPatchTarget(PatchContext& patchContext) override;
|
||||
void ApplyPatch(PatchContext& patchContext) override;
|
||||
|
||||
private:
|
||||
u32* _cardiTaskThread = nullptr;
|
||||
u16 _thumb = false;
|
||||
u16 _peach = false;
|
||||
u16 _pokemonDownloader = false;
|
||||
|
||||
bool CheckSignature(const PatchContext& patchContext, const FunctionSignature& signature);
|
||||
};
|
||||
Reference in New Issue
Block a user