mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Merge pull request #12271 from liamwhite/pretext-fix
nce: fix pre-text patch for single modules
This commit is contained in:
commit
167efb2d2b
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ Patcher::~Patcher() = default;
|
||||||
|
|
||||||
void Patcher::PatchText(const Kernel::PhysicalMemory& program_image,
|
void Patcher::PatchText(const Kernel::PhysicalMemory& program_image,
|
||||||
const Kernel::CodeSet::Segment& code) {
|
const Kernel::CodeSet::Segment& code) {
|
||||||
|
// Branch to the first instruction of the module.
|
||||||
|
this->BranchToModule(0);
|
||||||
|
|
||||||
// Write save context helper function.
|
// Write save context helper function.
|
||||||
c.l(m_save_context);
|
c.l(m_save_context);
|
||||||
|
|
Loading…
Reference in a new issue