diff options
author | VolcaEM <63682805+VolcaEM@users.noreply.github.com> | 2020-06-14 19:37:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 19:37:44 +0200 |
commit | 198b0fa7901da3a9ab71680351919c41b349e453 (patch) | |
tree | c865568730f9385dd6cd40c69faccb2b59b9fb55 /src/core | |
parent | Clang-format (diff) | |
download | yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar.gz yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar.bz2 yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar.lz yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar.xz yuzu-198b0fa7901da3a9ab71680351919c41b349e453.tar.zst yuzu-198b0fa7901da3a9ab71680351919c41b349e453.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/ldr/ldr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index dd0bdde38..d4c6879ac 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp @@ -626,7 +626,7 @@ private: header.segment_headers[TEXT_INDEX].memory_offset + header.segment_headers[TEXT_INDEX].memory_size; - const bool valid_rw_offset = header.segment_headers[DATA_INDEX].memory_offset == + const bool valid_data_offset = header.segment_headers[DATA_INDEX].memory_offset == header.segment_headers[RO_INDEX].memory_offset + header.segment_headers[RO_INDEX].memory_size; @@ -639,12 +639,12 @@ private: const bool ro_aligned = Common::Is4KBAligned(header.segment_headers[RO_INDEX].memory_size); - const bool rw_aligned = + const bool data_aligned = Common::Is4KBAligned(header.segment_headers[DATA_INDEX].memory_size); return valid_magic && valid_nro_size && valid_bss_size && valid_ro_offset && - valid_rw_offset && valid_nro_calculated_size && text_aligned && ro_aligned && - rw_aligned; + valid_data_offset && valid_nro_calculated_size && text_aligned && ro_aligned && + data_aligned; } Core::System& system; }; |