file_sys: Move IPS patching code into separate source file

In anticipation of a new BPS patcher.
This commit is contained in:
Léo Lam
2019-12-22 10:46:47 +01:00
parent 020cd56ad8
commit 1377be9902
6 changed files with 78 additions and 52 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ ResultStatus AppLoader_NCCH::LoadExec(std::shared_ptr<Kernel::Process>& process)
bss_page_size;
// Apply any IPS patch now that the entire codeset (including .bss) has been allocated
overlay_ncch->ApplyIPSPatch(code);
overlay_ncch->ApplyCodePatch(code);
codeset->entrypoint = codeset->CodeSegment().addr;
codeset->memory = std::move(code);