yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

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; return ResultStatus::Success;
} }
bool AppLoader_DeconstructedRomDirectory::IsRomFSUpdatable() {
return false;
}
} // namespace Loader } // namespace Loader

View File

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

View File

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

View File

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