loader: Ignore patches on NRO and DRD

This commit is contained in:
Zach Hilman 2018-08-25 19:05:04 -04:00
parent 97bf83bc56
commit 08fcb4694f
4 changed files with 11 additions and 0 deletions

View File

@ -189,4 +189,8 @@ ResultStatus AppLoader_DeconstructedRomDirectory::ReadTitle(std::string& title)
return ResultStatus::Success;
}
bool AppLoader_DeconstructedRomDirectory::IsRomFSUpdatable() {
return false;
}
} // namespace Loader

View File

@ -44,6 +44,7 @@ public:
ResultStatus ReadIcon(std::vector<u8>& buffer) override;
ResultStatus ReadProgramId(u64& out_program_id) override;
ResultStatus ReadTitle(std::string& title) override;
bool IsRomFSUpdatable() override;
private:
FileSys::ProgramMetadata metadata;

View File

@ -232,4 +232,9 @@ ResultStatus AppLoader_NRO::ReadTitle(std::string& title) {
title = nacp->GetApplicationName();
return ResultStatus::Success;
}
bool AppLoader_NRO::IsRomFSUpdatable() {
return false;
}
} // namespace Loader

View File

@ -39,6 +39,7 @@ public:
ResultStatus ReadProgramId(u64& out_program_id) override;
ResultStatus ReadRomFS(FileSys::VirtualFile& dir) override;
ResultStatus ReadTitle(std::string& title) override;
bool IsRomFSUpdatable() override;
private:
bool LoadNro(FileSys::VirtualFile file, VAddr load_base);