summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-10 22:26:23 +0200
committerGitHub <noreply@github.com>2019-07-10 22:26:23 +0200
commitd707a12b9ab574758af2b0295086b7ca2416180d (patch)
tree6671513d5c9dd692eee730f162c32fcb1b91f374 /src/core
parentMerge pull request #2691 from lioncash/override (diff)
parentmii: Implement IDatabaseService SetInterfaceVersion (diff)
downloadyuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar.gz
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar.bz2
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar.lz
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar.xz
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.tar.zst
yuzu-d707a12b9ab574758af2b0295086b7ca2416180d.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/mii/mii.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/mii/mii.cpp b/src/core/hle/service/mii/mii.cpp
index ce84e25ed..0b3923ad9 100644
--- a/src/core/hle/service/mii/mii.cpp
+++ b/src/core/hle/service/mii/mii.cpp
@@ -48,7 +48,7 @@ public:
{19, nullptr, "Export"},
{20, nullptr, "IsBrokenDatabaseWithClearFlag"},
{21, &IDatabaseService::GetIndex, "GetIndex"},
- {22, nullptr, "SetInterfaceVersion"},
+ {22, &IDatabaseService::SetInterfaceVersion, "SetInterfaceVersion"},
{23, nullptr, "Convert"},
};
// clang-format on
@@ -350,8 +350,22 @@ private:
rb.Push(index);
}
+ void SetInterfaceVersion(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ current_interface_version = rp.PopRaw<u32>();
+
+ LOG_DEBUG(Service_Mii, "called, interface_version={:08X}", current_interface_version);
+
+ UNIMPLEMENTED_IF(current_interface_version != 1);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
MiiManager db;
+ u32 current_interface_version = 0;
+
// Last read offsets of Get functions
std::array<u32, 4> offsets{};
};