summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-03 20:21:05 +0200
committerbunnei <bunneidev@gmail.com>2018-06-04 04:10:06 +0200
commit9fedfbe141715f75719339724cc6a0aa7875145c (patch)
treeac6aa37d45496013ce6e139c2889e6c93e0a04cf /src/core/hle
parentam: Implement ILibraryAppletCreator::CreateStorage. (diff)
downloadyuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar.gz
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar.bz2
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar.lz
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar.xz
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.tar.zst
yuzu-9fedfbe141715f75719339724cc6a0aa7875145c.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/am/am.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 9434512d8..26fd8c933 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -418,19 +418,17 @@ private:
void Read(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
- u64 offset = rp.Pop<u64>();
-
+ const u64 offset{rp.Pop<u64>()};
const size_t size{ctx.GetWriteBufferSize()};
ASSERT(offset + size <= buffer.size());
ctx.WriteBuffer(buffer.data() + offset, size);
- IPC::ResponseBuilder rb{ctx, 2};
-
+ IPC::ResponseBuilder rb{rp.MakeBuilder(2, 0, 0)};
rb.Push(RESULT_SUCCESS);
- NGLOG_DEBUG(Service_AM, "called");
+ NGLOG_DEBUG(Service_AM, "called, offset={}", offset);
}
};