1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-05 10:56:31 -05:00

loader: Add accessor for game control data

This commit is contained in:
Zach Hilman
2018-12-06 20:27:50 -05:00
parent 417e1ef09c
commit 0756f29a2c
5 changed files with 14 additions and 9 deletions

View File

@@ -121,10 +121,11 @@ ResultStatus AppLoader_XCI::ReadTitle(std::string& title) {
return ResultStatus::Success;
}
ResultStatus AppLoader_XCI::ReadDeveloper(std::string& developer) {
ResultStatus AppLoader_XCI::ReadControlData(FileSys::NACP& control) {
if (nacp_file == nullptr)
return ResultStatus::ErrorNoControl;
developer = nacp_file->GetDeveloperName();
control = *nacp_file;
return ResultStatus::Success;
}
} // namespace Loader