diff options
| author | 2018-06-05 15:34:01 +0300 | |
|---|---|---|
| committer | 2018-06-05 15:34:01 +0300 | |
| commit | 62cd19e4ae8a917ba17827009e4b543c5da386a4 (patch) | |
| tree | 7ea9c697156a55528289ef9135e9140cfdc4b42e /src/core/hle/service/mm | |
| parent | Service/MM: add service and stub some functions (diff) | |
| download | yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.gz yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.xz yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.zip | |
Small fixes
Diffstat (limited to 'src/core/hle/service/mm')
| -rw-r--r-- | src/core/hle/service/mm/mm_u.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/mm/mm_u.h | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/service/mm/mm_u.cpp b/src/core/hle/service/mm/mm_u.cpp index 7f12fee27..b3a85b818 100644 --- a/src/core/hle/service/mm/mm_u.cpp +++ b/src/core/hle/service/mm/mm_u.cpp | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <sstream> | ||
| 6 | #include <string> | ||
| 7 | #include "common/logging/log.h" | 5 | #include "common/logging/log.h" |
| 8 | #include "core/hle/ipc_helpers.h" | 6 | #include "core/hle/ipc_helpers.h" |
| 9 | #include "core/hle/kernel/client_session.h" | 7 | #include "core/hle/kernel/client_session.h" |
| @@ -23,9 +21,11 @@ void MM_U::Initialize(Kernel::HLERequestContext& ctx) { | |||
| 23 | 21 | ||
| 24 | void MM_U::SetAndWait(Kernel::HLERequestContext& ctx) { | 22 | void MM_U::SetAndWait(Kernel::HLERequestContext& ctx) { |
| 25 | IPC::RequestParser rp{ctx}; | 23 | IPC::RequestParser rp{ctx}; |
| 26 | value = rp.Pop<u32>(); | 24 | min = rp.Pop<u32>(); |
| 25 | max = rp.Pop<u32>(); | ||
| 26 | current = min; | ||
| 27 | 27 | ||
| 28 | NGLOG_WARNING(Service_MM, "(STUBBED) called, value=0x{:X}", value); | 28 | NGLOG_WARNING(Service_MM, "(STUBBED) called, min=0x{:X}, max=0x{:X}", min, max); |
| 29 | IPC::ResponseBuilder rb{ctx, 2}; | 29 | IPC::ResponseBuilder rb{ctx, 2}; |
| 30 | rb.Push(RESULT_SUCCESS); | 30 | rb.Push(RESULT_SUCCESS); |
| 31 | } | 31 | } |
| @@ -34,7 +34,7 @@ void MM_U::Get(Kernel::HLERequestContext& ctx) { | |||
| 34 | NGLOG_WARNING(Service_MM, "(STUBBED) called"); | 34 | NGLOG_WARNING(Service_MM, "(STUBBED) called"); |
| 35 | IPC::ResponseBuilder rb{ctx, 3}; | 35 | IPC::ResponseBuilder rb{ctx, 3}; |
| 36 | rb.Push(RESULT_SUCCESS); | 36 | rb.Push(RESULT_SUCCESS); |
| 37 | rb.Push(value); | 37 | rb.Push(current); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | MM_U::MM_U() : ServiceFramework("mm:u") { | 40 | MM_U::MM_U() : ServiceFramework("mm:u") { |
diff --git a/src/core/hle/service/mm/mm_u.h b/src/core/hle/service/mm/mm_u.h index de3f3a311..fe03e6c1c 100644 --- a/src/core/hle/service/mm/mm_u.h +++ b/src/core/hle/service/mm/mm_u.h | |||
| @@ -20,7 +20,9 @@ private: | |||
| 20 | void SetAndWait(Kernel::HLERequestContext& ctx); | 20 | void SetAndWait(Kernel::HLERequestContext& ctx); |
| 21 | void Get(Kernel::HLERequestContext& ctx); | 21 | void Get(Kernel::HLERequestContext& ctx); |
| 22 | 22 | ||
| 23 | u32 value; | 23 | u32 min{0}; |
| 24 | u32 max{0}; | ||
| 25 | u32 current{0}; | ||
| 24 | }; | 26 | }; |
| 25 | 27 | ||
| 26 | /// Registers all MM services with the specified service manager. | 28 | /// Registers all MM services with the specified service manager. |