summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-14 00:54:22 +0200
committerLioncash <mathew1800@gmail.com>2018-08-14 00:59:10 +0200
commitb6c47b578f2945c0909728e26b1c3dd6982a59a5 (patch)
treec3c506ed983bf9273318470068e48178d5786cf9 /src/core/hle
parentmm_u: Move implementation class into the cpp file (diff)
downloadyuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar.gz
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar.bz2
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar.lz
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar.xz
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.tar.zst
yuzu-b6c47b578f2945c0909728e26b1c3dd6982a59a5.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/mm/mm_u.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/core/hle/service/mm/mm_u.cpp b/src/core/hle/service/mm/mm_u.cpp
index 0183c6e2e..7b91bb258 100644
--- a/src/core/hle/service/mm/mm_u.cpp
+++ b/src/core/hle/service/mm/mm_u.cpp
@@ -14,12 +14,12 @@ public:
explicit MM_U() : ServiceFramework{"mm:u"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, nullptr, "InitializeOld"},
- {1, nullptr, "FinalizeOld"},
- {2, nullptr, "SetAndWaitOld"},
- {3, nullptr, "GetOld"},
+ {0, &MM_U::Initialize, "InitializeOld"},
+ {1, &MM_U::Finalize, "FinalizeOld"},
+ {2, &MM_U::SetAndWait, "SetAndWaitOld"},
+ {3, &MM_U::Get, "GetOld"},
{4, &MM_U::Initialize, "Initialize"},
- {5, nullptr, "Finalize"},
+ {5, &MM_U::Finalize, "Finalize"},
{6, &MM_U::SetAndWait, "SetAndWait"},
{7, &MM_U::Get, "Get"},
};
@@ -35,6 +35,12 @@ private:
rb.Push(RESULT_SUCCESS);
}
+ void Finalize(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_MM, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
void SetAndWait(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
min = rp.Pop<u32>();