nso: Add framework to support patching of uncompressed NSOs

This commit is contained in:
Zach Hilman 2018-09-29 22:16:09 -04:00
parent 42fb4e82d3
commit 003b44822a
2 changed files with 17 additions and 2 deletions

View file

@ -5,6 +5,7 @@
#pragma once
#include "common/common_types.h"
#include "core/file_sys/patch_manager.h"
#include "core/loader/linker.h"
#include "core/loader/loader.h"
@ -26,7 +27,8 @@ public:
return IdentifyType(file);
}
static VAddr LoadModule(FileSys::VirtualFile file, VAddr load_base);
static VAddr LoadModule(FileSys::VirtualFile file, VAddr load_base,
std::shared_ptr<FileSys::PatchManager> pm = nullptr);
ResultStatus Load(Kernel::Process& process) override;
};