summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nro.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-03 04:17:09 +0100
committerLioncash <mathew1800@gmail.com>2018-12-03 05:38:58 +0100
commitfc32d6256adb479e3e990a0f3221d02ef09b1744 (patch)
treea8c52cfc376ea7ea7ddf2e684c3ebb7517fa13eb /src/core/loader/nro.cpp
parentloader/nro: Remove dependency on the System class (diff)
downloadyuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar.gz
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar.bz2
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar.lz
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar.xz
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.tar.zst
yuzu-fc32d6256adb479e3e990a0f3221d02ef09b1744.zip
Diffstat (limited to 'src/core/loader/nro.cpp')
-rw-r--r--src/core/loader/nro.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 16d5883ee..4fad0c0dd 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -128,8 +128,8 @@ static constexpr u32 PageAlignSize(u32 size) {
return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK;
}
-/*static*/ bool AppLoader_NRO::LoadNro(Kernel::Process& process, const std::vector<u8>& data,
- const std::string& name, VAddr load_base) {
+static bool LoadNroImpl(Kernel::Process& process, const std::vector<u8>& data,
+ const std::string& name, VAddr load_base) {
if (data.size() < sizeof(NroHeader)) {
return {};
}
@@ -195,8 +195,9 @@ static constexpr u32 PageAlignSize(u32 size) {
return true;
}
-bool AppLoader_NRO::LoadNro(Kernel::Process& process, const FileSys::VfsFile& file, VAddr load_base) {
- return LoadNro(process, file.ReadAllBytes(), file.GetName(), load_base);
+bool AppLoader_NRO::LoadNro(Kernel::Process& process, const FileSys::VfsFile& file,
+ VAddr load_base) {
+ return LoadNroImpl(process, file.ReadAllBytes(), file.GetName(), load_base);
}
ResultStatus AppLoader_NRO::Load(Kernel::Process& process) {