diff options
author | Liam <byteslice@airmail.cc> | 2023-09-30 17:35:42 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-09-30 17:35:42 +0200 |
commit | 2f0db2708caecce763ec55dfd69d708a1a2742ac (patch) | |
tree | 9cf0039b0a43f5a3d505bff66296d4f0adce1fca /src/core/file_sys/program_metadata.cpp | |
parent | Merge pull request #11493 from merryhime/evt (diff) | |
download | yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar.gz yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar.bz2 yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar.lz yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar.xz yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.tar.zst yuzu-2f0db2708caecce763ec55dfd69d708a1a2742ac.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/program_metadata.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp index f00479bd3..8e291ff67 100644 --- a/src/core/file_sys/program_metadata.cpp +++ b/src/core/file_sys/program_metadata.cpp @@ -5,6 +5,7 @@ #include <vector> #include "common/logging/log.h" +#include "common/scope_exit.h" #include "core/file_sys/program_metadata.h" #include "core/file_sys/vfs.h" #include "core/loader/loader.h" @@ -95,6 +96,13 @@ Loader::ResultStatus ProgramMetadata::Load(VirtualFile file) { return Loader::ResultStatus::Success; } +Loader::ResultStatus ProgramMetadata::Reload(VirtualFile file) { + const u64 original_program_id = aci_header.title_id; + SCOPE_EXIT({ aci_header.title_id = original_program_id; }); + + return this->Load(file); +} + /*static*/ ProgramMetadata ProgramMetadata::GetDefault() { // Allow use of cores 0~3 and thread priorities 1~63. constexpr u32 default_thread_info_capability = 0x30007F7; |