mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Merge pull request #10877 from JosJuice/android-real-wiimote-early
Android: Call WiimoteReal::InitAdapterClass before controller init
This commit is contained in:
commit
559f5a6dfb
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue