Skip to content
Snippets Groups Projects
Commit 08fcb469 authored by Zach Hilman's avatar Zach Hilman
Browse files

loader: Ignore patches on NRO and DRD

parent 97bf83bc
No related branches found
No related tags found
No related merge requests found
...@@ -189,4 +189,8 @@ ResultStatus AppLoader_DeconstructedRomDirectory::ReadTitle(std::string& title) ...@@ -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
...@@ -44,6 +44,7 @@ public: ...@@ -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;
......
...@@ -232,4 +232,9 @@ ResultStatus AppLoader_NRO::ReadTitle(std::string& title) { ...@@ -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
...@@ -39,6 +39,7 @@ public: ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment