summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-11 07:17:33 +0200
committerGitHub <noreply@github.com>2021-06-11 07:17:33 +0200
commit46ec0ee55b5820a517f251780c908cff5fcd1c13 (patch)
treeb8639614c724fb83f959e50da8608236b0210ebf /src/core
parentMerge pull request #6444 from bunnei/fix-sm-sessions (diff)
parentFix GCC undefined behavior sanitizer. (diff)
downloadyuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar.gz
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar.bz2
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar.lz
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar.xz
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.tar.zst
yuzu-46ec0ee55b5820a517f251780c908cff5fcd1c13.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/program_metadata.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp
index 83b83a044..01ae1a567 100644
--- a/src/core/file_sys/program_metadata.cpp
+++ b/src/core/file_sys/program_metadata.cpp
@@ -150,7 +150,9 @@ void ProgramMetadata::Print() const {
LOG_DEBUG(Service_FS, " > Is Retail: {}", acid_header.is_retail ? "YES" : "NO");
LOG_DEBUG(Service_FS, "Title ID Min: 0x{:016X}", acid_header.title_id_min);
LOG_DEBUG(Service_FS, "Title ID Max: 0x{:016X}", acid_header.title_id_max);
- LOG_DEBUG(Service_FS, "Filesystem Access: 0x{:016X}\n", acid_file_access.permissions);
+ u64_le permissions_l; // local copy to fix alignment error
+ std::memcpy(&permissions_l, &acid_file_access.permissions, sizeof(permissions_l));
+ LOG_DEBUG(Service_FS, "Filesystem Access: 0x{:016X}\n", permissions_l);
// Begin ACI0 printing (actual perms, unsigned)
LOG_DEBUG(Service_FS, "Magic: {:.4}", aci_header.magic.data());