diff options
| author | 2018-12-06 20:27:50 -0500 | |
|---|---|---|
| committer | 2018-12-27 00:16:55 -0500 | |
| commit | 0756f29a2c99070a6c676b39d797015d140ad7ac (patch) | |
| tree | f7dc8a039fac35fe595ad410ed8ecfec83ed0b97 /src/core/loader/xci.cpp | |
| parent | control_metadata: Update NACP fields with latest Switchbrew data (diff) | |
| download | yuzu-0756f29a2c99070a6c676b39d797015d140ad7ac.tar.gz yuzu-0756f29a2c99070a6c676b39d797015d140ad7ac.tar.xz yuzu-0756f29a2c99070a6c676b39d797015d140ad7ac.zip | |
loader: Add accessor for game control data
Diffstat (limited to 'src/core/loader/xci.cpp')
| -rw-r--r-- | src/core/loader/xci.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/loader/xci.cpp b/src/core/loader/xci.cpp index bd5a83b49..e67e43c69 100644 --- a/src/core/loader/xci.cpp +++ b/src/core/loader/xci.cpp | |||
| @@ -121,10 +121,11 @@ ResultStatus AppLoader_XCI::ReadTitle(std::string& title) { | |||
| 121 | return ResultStatus::Success; | 121 | return ResultStatus::Success; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | ResultStatus AppLoader_XCI::ReadDeveloper(std::string& developer) { | 124 | ResultStatus AppLoader_XCI::ReadControlData(FileSys::NACP& control) { |
| 125 | if (nacp_file == nullptr) | 125 | if (nacp_file == nullptr) |
| 126 | return ResultStatus::ErrorNoControl; | 126 | return ResultStatus::ErrorNoControl; |
| 127 | developer = nacp_file->GetDeveloperName(); | 127 | control = *nacp_file; |
| 128 | return ResultStatus::Success; | 128 | return ResultStatus::Success; |
| 129 | } | 129 | } |
| 130 | |||
| 130 | } // namespace Loader | 131 | } // namespace Loader |