summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nso.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-30 20:04:48 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-07 20:30:15 +0200
commite09505ff6147815d7d3c7adcc0d260638cf49706 (patch)
treea430bbf3af585ac0e117c28b5782ee9556a2895a /src/core/loader/nso.h
parentMerge pull request #1396 from DarkLordZach/packed-updates (diff)
downloadyuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar.gz
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar.bz2
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar.lz
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar.xz
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.tar.zst
yuzu-e09505ff6147815d7d3c7adcc0d260638cf49706.zip
Diffstat (limited to 'src/core/loader/nso.h')
-rw-r--r--src/core/loader/nso.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/loader/nso.h b/src/core/loader/nso.h
index 05353d4d9..7833af6ee 100644
--- a/src/core/loader/nso.h
+++ b/src/core/loader/nso.h
@@ -11,6 +11,13 @@
namespace Loader {
+struct NSOArgumentHeader {
+ u32_le allocated_size;
+ u32_le actual_size;
+ INSERT_PADDING_BYTES(0x18);
+};
+static_assert(sizeof(NSOArgumentHeader) == 0x20, "NSOArgumentHeader has incorrect size.");
+
/// Loads an NSO file
class AppLoader_NSO final : public AppLoader, Linker {
public:
@@ -27,7 +34,7 @@ public:
return IdentifyType(file);
}
- static VAddr LoadModule(FileSys::VirtualFile file, VAddr load_base,
+ static VAddr LoadModule(FileSys::VirtualFile file, VAddr load_base, bool should_pass_arguments,
boost::optional<FileSys::PatchManager> pm = boost::none);
ResultStatus Load(Kernel::Process& process) override;