diff options
| author | 2019-09-08 00:40:21 +0300 | |
|---|---|---|
| committer | 2019-09-08 00:40:21 +0300 | |
| commit | bfc5bacecd194589476ad965e5849ac5b009771d (patch) | |
| tree | 6e376a26e9b01871b22ab1da8ade79936a4fd3b9 /src | |
| parent | Merge pull request #2765 from FernandoS27/dma-fix (diff) | |
| download | yuzu-bfc5bacecd194589476ad965e5849ac5b009771d.tar.gz yuzu-bfc5bacecd194589476ad965e5849ac5b009771d.tar.xz yuzu-bfc5bacecd194589476ad965e5849ac5b009771d.zip | |
nro: Implement ReadControlData
With this, the "Developer" field in the Properties for homebrew is now populated.
Signed-off-by: Nick Renieris <velocityra@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/loader/nro.cpp | 9 | ||||
| -rw-r--r-- | src/core/loader/nro.h | 1 |
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) { | |||
| 258 | return ResultStatus::Success; | 258 | return ResultStatus::Success; |
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | ResultStatus AppLoader_NRO::ReadControlData(FileSys::NACP& control) { | ||
| 262 | if (nacp == nullptr) { | ||
| 263 | return ResultStatus::ErrorNoControl; | ||
| 264 | } | ||
| 265 | |||
| 266 | control = *nacp; | ||
| 267 | return ResultStatus::Success; | ||
| 268 | } | ||
| 269 | |||
| 261 | bool AppLoader_NRO::IsRomFSUpdatable() const { | 270 | bool AppLoader_NRO::IsRomFSUpdatable() const { |
| 262 | return false; | 271 | return false; |
| 263 | } | 272 | } |
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: | |||
| 43 | ResultStatus ReadProgramId(u64& out_program_id) override; | 43 | ResultStatus ReadProgramId(u64& out_program_id) override; |
| 44 | ResultStatus ReadRomFS(FileSys::VirtualFile& dir) override; | 44 | ResultStatus ReadRomFS(FileSys::VirtualFile& dir) override; |
| 45 | ResultStatus ReadTitle(std::string& title) override; | 45 | ResultStatus ReadTitle(std::string& title) override; |
| 46 | ResultStatus ReadControlData(FileSys::NACP& control) override; | ||
| 46 | bool IsRomFSUpdatable() const override; | 47 | bool IsRomFSUpdatable() const override; |
| 47 | 48 | ||
| 48 | private: | 49 | private: |