mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-30 04:21:16 +00:00
Android: Call WiimoteReal::InitAdapterClass before controller init
Should fix https://bugs.dolphin-emu.org/issues/12980.
This commit is contained in:
parent
b0b5faa793
commit
01e4ce54c8
@ -519,6 +519,8 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Initialize(J
|
|||||||
Common::RegisterMsgAlertHandler(&MsgAlert);
|
Common::RegisterMsgAlertHandler(&MsgAlert);
|
||||||
Common::AndroidSetReportHandler(&ReportSend);
|
Common::AndroidSetReportHandler(&ReportSend);
|
||||||
DolphinAnalytics::AndroidSetGetValFunc(&GetAnalyticValue);
|
DolphinAnalytics::AndroidSetGetValFunc(&GetAnalyticValue);
|
||||||
|
|
||||||
|
WiimoteReal::InitAdapterClass();
|
||||||
UICommon::Init();
|
UICommon::Init();
|
||||||
UICommon::InitControllers(WindowSystemInfo(WindowSystemType::Android, nullptr, nullptr, nullptr));
|
UICommon::InitControllers(WindowSystemInfo(WindowSystemType::Android, nullptr, nullptr, nullptr));
|
||||||
}
|
}
|
||||||
@ -549,8 +551,6 @@ static void Run(JNIEnv* env, std::unique_ptr<BootParameters>&& boot, bool riivol
|
|||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> host_identity_guard(s_host_identity_lock);
|
std::unique_lock<std::mutex> host_identity_guard(s_host_identity_lock);
|
||||||
|
|
||||||
WiimoteReal::InitAdapterClass();
|
|
||||||
|
|
||||||
if (riivolution && std::holds_alternative<BootParameters::Disc>(boot->parameters))
|
if (riivolution && std::holds_alternative<BootParameters::Disc>(boot->parameters))
|
||||||
{
|
{
|
||||||
const std::string& riivolution_dir = File::GetUserPath(D_RIIVOLUTION_IDX);
|
const std::string& riivolution_dir = File::GetUserPath(D_RIIVOLUTION_IDX);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user