summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2019-09-09 08:45:28 +0200
committerGitHub <noreply@github.com>2019-09-09 08:45:28 +0200
commit07a0242535ff339b556629b34f5d3da6c4e3da69 (patch)
tree1a3c7b839f6d787b3f6d00c0aa3558cd82b3caae
parentMerge pull request #2716 from lioncash/hle-global (diff)
parentnro: Implement ReadControlData (diff)
downloadyuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar.gz
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar.bz2
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar.lz
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar.xz
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.tar.zst
yuzu-07a0242535ff339b556629b34f5d3da6c4e3da69.zip
-rw-r--r--src/core/loader/nro.cpp9
-rw-r--r--src/core/loader/nro.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index e92e2e06e..3a5361fdd 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -258,6 +258,15 @@ ResultStatus AppLoader_NRO::ReadTitle(std::string& title) {
return ResultStatus::Success;
}
+ResultStatus AppLoader_NRO::ReadControlData(FileSys::NACP& control) {
+ if (nacp == nullptr) {
+ return ResultStatus::ErrorNoControl;
+ }
+
+ control = *nacp;
+ return ResultStatus::Success;
+}
+
bool AppLoader_NRO::IsRomFSUpdatable() const {
return false;
}
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h
index 1ffdae805..71811bc29 100644
--- a/src/core/loader/nro.h
+++ b/src/core/loader/nro.h
@@ -43,6 +43,7 @@ public:
ResultStatus ReadProgramId(u64& out_program_id) override;
ResultStatus ReadRomFS(FileSys::VirtualFile& dir) override;
ResultStatus ReadTitle(std::string& title) override;
+ ResultStatus ReadControlData(FileSys::NACP& control) override;
bool IsRomFSUpdatable() const override;
private: