diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-02 22:17:09 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-02 23:38:58 -0500 |
| commit | 2148254d09b8eb5ee8cf531b64bb271332044a05 (patch) | |
| tree | a8c52cfc376ea7ea7ddf2e684c3ebb7517fa13eb /src/core/loader/nro.cpp | |
| parent | d61df4137ea5d9b66ec7972bc324c4de9bce5d23 (diff) | |
loader/nro: Make the static LoadNro function internally linked
This simply acts as a forwarding function for the Load() function, so
this doesn't need to be directly exposed.
Diffstat (limited to 'src/core/loader/nro.cpp')
| -rw-r--r-- | src/core/loader/nro.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 16d5883ee2..4fad0c0dd2 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) { |
