|
|
@ -332,7 +332,7 @@ bool Patcher::RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::Co |
|
|
// Only copy to the program image of the last module
|
|
|
// Only copy to the program image of the last module
|
|
|
if (m_relocate_module_index == modules.size()) { |
|
|
if (m_relocate_module_index == modules.size()) { |
|
|
if (this->mode == PatchMode::PreText) { |
|
|
if (this->mode == PatchMode::PreText) { |
|
|
// ASSERT(image_size == total_program_size);
|
|
|
|
|
|
|
|
|
ASSERT(image_size == total_program_size); |
|
|
std::memcpy(program_image.data(), m_patch_instructions.data(), |
|
|
std::memcpy(program_image.data(), m_patch_instructions.data(), |
|
|
m_patch_instructions.size() * sizeof(u32)); |
|
|
m_patch_instructions.size() * sizeof(u32)); |
|
|
} else if (this->mode == PatchMode::Split) { |
|
|
} else if (this->mode == PatchMode::Split) { |
|
|
|