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-11-24 20:32:10 +01:00
parent 020cd56ad8
commit 1377be9902
6 changed files with 78 additions and 52 deletions

View File

@@ -272,11 +272,11 @@ public:
Loader::ResultStatus ReadExtdataId(u64& extdata_id);
/**
* Apply an IPS patch for .code (if it exists).
* Apply a patch for .code (if it exists).
* This should only be called after allocating .bss.
* @return bool true if a patch was applied, false otherwise
*/
bool ApplyIPSPatch(std::vector<u8>& code) const;
bool ApplyCodePatch(std::vector<u8>& code) const;
/**
* Checks whether the NCCH container contains an ExeFS