1
0
Fork 0
forked from suyu/suyu

Merge pull request #2650 from DarkLordZach/mii-iface-ver

mii: Implement IDatabaseService SetInterfaceVersion
This commit is contained in:
bunnei 2019-07-10 16:26:23 -04:00 committed by GitHub
commit d707a12b9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ public:
{19, nullptr, "Export"}, {19, nullptr, "Export"},
{20, nullptr, "IsBrokenDatabaseWithClearFlag"}, {20, nullptr, "IsBrokenDatabaseWithClearFlag"},
{21, &IDatabaseService::GetIndex, "GetIndex"}, {21, &IDatabaseService::GetIndex, "GetIndex"},
{22, nullptr, "SetInterfaceVersion"}, {22, &IDatabaseService::SetInterfaceVersion, "SetInterfaceVersion"},
{23, nullptr, "Convert"}, {23, nullptr, "Convert"},
}; };
// clang-format on // clang-format on
@ -350,8 +350,22 @@ private:
rb.Push(index); 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; MiiManager db;
u32 current_interface_version = 0;
// Last read offsets of Get functions // Last read offsets of Get functions
std::array<u32, 4> offsets{}; std::array<u32, 4> offsets{};
}; };