diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-29 06:58:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 06:58:46 +0100 |
commit | 1e49a85106acdc596db9d1aeca31104fab9552a2 (patch) | |
tree | 7e295e2921c61866371ac52d63a807782b1094b6 /src/core/hle/service/mm/mm_u.cpp | |
parent | Merge pull request #1808 from Tinob/master (diff) | |
parent | Added comment on Main memory size for more clarity (diff) | |
download | yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar.gz yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar.bz2 yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar.lz yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar.xz yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.tar.zst yuzu-1e49a85106acdc596db9d1aeca31104fab9552a2.zip |
Diffstat (limited to 'src/core/hle/service/mm/mm_u.cpp')
-rw-r--r-- | src/core/hle/service/mm/mm_u.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/service/mm/mm_u.cpp b/src/core/hle/service/mm/mm_u.cpp index e1f17a926..def63dc8a 100644 --- a/src/core/hle/service/mm/mm_u.cpp +++ b/src/core/hle/service/mm/mm_u.cpp @@ -31,12 +31,14 @@ public: private: void Initialize(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } void Finalize(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } @@ -45,15 +47,16 @@ private: IPC::RequestParser rp{ctx}; min = rp.Pop<u32>(); max = rp.Pop<u32>(); - current = min; - LOG_WARNING(Service_MM, "(STUBBED) called, min=0x{:X}, max=0x{:X}", min, max); + + current = min; IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } void Get(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); rb.Push(current); @@ -61,6 +64,7 @@ private: void InitializeWithId(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); rb.Push<u32>(id); // Any non zero value @@ -68,6 +72,7 @@ private: void FinalizeWithId(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } @@ -77,16 +82,17 @@ private: u32 input_id = rp.Pop<u32>(); min = rp.Pop<u32>(); max = rp.Pop<u32>(); - current = min; - LOG_WARNING(Service_MM, "(STUBBED) called, input_id=0x{:X}, min=0x{:X}, max=0x{:X}", input_id, min, max); + + current = min; IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } void GetWithId(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_MM, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); rb.Push(current); |