diff options
author | Liam <byteslice@airmail.cc> | 2024-02-18 20:56:48 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-18 20:56:48 +0100 |
commit | 911ee8fd1f521178816d699a1a12ceeec9fbd8bc (patch) | |
tree | ff36b6f1a283086738c439d982de33d13a5b7f06 /src/core | |
parent | Merge pull request #13068 from german77/no_errors (diff) | |
download | yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar.gz yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar.bz2 yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar.lz yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar.xz yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.tar.zst yuzu-911ee8fd1f521178816d699a1a12ceeec9fbd8bc.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/am/library_applet_storage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/library_applet_storage.cpp b/src/core/hle/service/am/library_applet_storage.cpp index 46e6c0111..0412c215d 100644 --- a/src/core/hle/service/am/library_applet_storage.cpp +++ b/src/core/hle/service/am/library_applet_storage.cpp @@ -70,7 +70,7 @@ public: Result Read(s64 offset, void* buffer, size_t size) override { R_TRY(ValidateOffset(offset, size, m_size)); - m_memory.ReadBlock(m_trmem->GetSourceAddress(), buffer, size); + m_memory.ReadBlock(m_trmem->GetSourceAddress() + offset, buffer, size); R_SUCCEED(); } @@ -79,7 +79,7 @@ public: R_UNLESS(m_is_writable, ResultUnknown); R_TRY(ValidateOffset(offset, size, m_size)); - m_memory.WriteBlock(m_trmem->GetSourceAddress(), buffer, size); + m_memory.WriteBlock(m_trmem->GetSourceAddress() + offset, buffer, size); R_SUCCEED(); } |