summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2018-06-05 14:34:01 +0200
committermailwl <mailwl@gmail.com>2018-06-05 14:34:01 +0200
commit62cd19e4ae8a917ba17827009e4b543c5da386a4 (patch)
tree7ea9c697156a55528289ef9135e9140cfdc4b42e /src/core
parentService/MM: add service and stub some functions (diff)
downloadyuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.gz
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.bz2
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.lz
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.xz
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.tar.zst
yuzu-62cd19e4ae8a917ba17827009e4b543c5da386a4.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/mm/mm_u.cpp10
-rw-r--r--src/core/hle/service/mm/mm_u.h4
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 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include <sstream>
-#include <string>
#include "common/logging/log.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/client_session.h"
@@ -23,9 +21,11 @@ void MM_U::Initialize(Kernel::HLERequestContext& ctx) {
void MM_U::SetAndWait(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
- value = rp.Pop<u32>();
+ min = rp.Pop<u32>();
+ max = rp.Pop<u32>();
+ current = min;
- NGLOG_WARNING(Service_MM, "(STUBBED) called, value=0x{:X}", value);
+ NGLOG_WARNING(Service_MM, "(STUBBED) called, min=0x{:X}, max=0x{:X}", min, max);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
}
@@ -34,7 +34,7 @@ void MM_U::Get(Kernel::HLERequestContext& ctx) {
NGLOG_WARNING(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push(value);
+ rb.Push(current);
}
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:
void SetAndWait(Kernel::HLERequestContext& ctx);
void Get(Kernel::HLERequestContext& ctx);
- u32 value;
+ u32 min{0};
+ u32 max{0};
+ u32 current{0};
};
/// Registers all MM services with the specified service manager.