summaryrefslogtreecommitdiff
path: root/src/core/hle/service/acc
diff options
context:
space:
mode:
authorGravatar liamwhite2023-10-18 09:21:58 -0400
committerGravatar GitHub2023-10-18 09:21:58 -0400
commit765ea9b79da007e9a070b9a61378b6802893d27b (patch)
tree5b02ec392798c57fde8bb8016c809da01e1e777e /src/core/hle/service/acc
parentMerge pull request #11774 from liamwhite/refcount-issue (diff)
parentservice: hle: Allow to access read buffer A and X directly (diff)
downloadyuzu-765ea9b79da007e9a070b9a61378b6802893d27b.tar.gz
yuzu-765ea9b79da007e9a070b9a61378b6802893d27b.tar.xz
yuzu-765ea9b79da007e9a070b9a61378b6802893d27b.zip
Merge pull request #11791 from german77/bufferx
service: hle: Allow to access read buffer A and X directly
Diffstat (limited to 'src/core/hle/service/acc')
-rw-r--r--src/core/hle/service/acc/acc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index b7d14060c..1b1c8190e 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -407,13 +407,13 @@ protected:
407 IPC::RequestParser rp{ctx}; 407 IPC::RequestParser rp{ctx};
408 const auto base = rp.PopRaw<ProfileBase>(); 408 const auto base = rp.PopRaw<ProfileBase>();
409 409
410 const auto user_data = ctx.ReadBuffer(); 410 const auto image_data = ctx.ReadBufferA(0);
411 const auto image_data = ctx.ReadBuffer(1); 411 const auto user_data = ctx.ReadBufferX(0);
412 412
413 LOG_DEBUG(Service_ACC, "called, username='{}', timestamp={:016X}, uuid=0x{}", 413 LOG_INFO(Service_ACC, "called, username='{}', timestamp={:016X}, uuid=0x{}",
414 Common::StringFromFixedZeroTerminatedBuffer( 414 Common::StringFromFixedZeroTerminatedBuffer(
415 reinterpret_cast<const char*>(base.username.data()), base.username.size()), 415 reinterpret_cast<const char*>(base.username.data()), base.username.size()),
416 base.timestamp, base.user_uuid.RawString()); 416 base.timestamp, base.user_uuid.RawString());
417 417
418 if (user_data.size() < sizeof(UserData)) { 418 if (user_data.size() < sizeof(UserData)) {
419 LOG_ERROR(Service_ACC, "UserData buffer too small!"); 419 LOG_ERROR(Service_ACC, "UserData buffer too small!");