summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-26 01:05:04 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-04 22:23:15 +0200
commit08fcb4694f28fab40d76cc60fcd2fc35fb24917f (patch)
treec456fb1dc49e1a2c96585f157ae53063ba9ae86f /src/core
parentpatch_manager: Add usages of patches to ExeFS (diff)
downloadyuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar.gz
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar.bz2
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar.lz
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar.xz
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.tar.zst
yuzu-08fcb4694f28fab40d76cc60fcd2fc35fb24917f.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/loader/deconstructed_rom_directory.cpp4
-rw-r--r--src/core/loader/deconstructed_rom_directory.h1
-rw-r--r--src/core/loader/nro.cpp5
-rw-r--r--src/core/loader/nro.h1
4 files changed, 11 insertions, 0 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp
index 04ef55da1..6b2230269 100644
--- a/src/core/loader/deconstructed_rom_directory.cpp
+++ b/src/core/loader/deconstructed_rom_directory.cpp
@@ -189,4 +189,8 @@ ResultStatus AppLoader_DeconstructedRomDirectory::ReadTitle(std::string& title)
return ResultStatus::Success;
}
+bool AppLoader_DeconstructedRomDirectory::IsRomFSUpdatable() {
+ return false;
+}
+
} // namespace Loader
diff --git a/src/core/loader/deconstructed_rom_directory.h b/src/core/loader/deconstructed_rom_directory.h
index cb50f8bff..a8644516b 100644
--- a/src/core/loader/deconstructed_rom_directory.h
+++ b/src/core/loader/deconstructed_rom_directory.h
@@ -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;
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 77026b850..96f5cd9e5 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -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
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h
index bb01c9e25..c35c99d14 100644
--- a/src/core/loader/nro.h
+++ b/src/core/loader/nro.h
@@ -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);