summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainAndroid.cpp
diff options
context:
space:
mode:
authorAugustin Cavalier <waddlesplash@gmail.com>2014-10-04 15:12:15 -0400
committerAugustin Cavalier <waddlesplash@gmail.com>2014-10-05 20:47:37 -0400
commit19109e2d01d7bcbde51ba84f71fee1cfc751ec24 (patch)
treec2ef739cc452f25bc7ddefc1ad95357fac2f87ca /Source/Core/DolphinWX/MainAndroid.cpp
parent669a1180638cc803dae890e2f8616d7c7720780b (diff)
Migrate global init stuff into UICommon.
This avoids code duplication in a bunch of places . I also moved the NVIDIA Optimus export into VideoCommon.
Diffstat (limited to 'Source/Core/DolphinWX/MainAndroid.cpp')
-rw-r--r--Source/Core/DolphinWX/MainAndroid.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/Core/DolphinWX/MainAndroid.cpp b/Source/Core/DolphinWX/MainAndroid.cpp
index 0f2c5eddce..3d226d5eef 100644
--- a/Source/Core/DolphinWX/MainAndroid.cpp
+++ b/Source/Core/DolphinWX/MainAndroid.cpp
@@ -43,6 +43,8 @@
#include "DiscIO/Filesystem.h"
#include "DiscIO/VolumeCreator.h"
+#include "UICommon/UICommon.h"
+
#include "VideoCommon/OnScreenDisplay.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -359,21 +361,14 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Run(JNIEnv *
OSD::AddCallback(OSD::OSD_INIT, ButtonManager::Init);
OSD::AddCallback(OSD::OSD_SHUTDOWN, ButtonManager::Shutdown);
- LogManager::Init();
- SConfig::Init();
- VideoBackend::PopulateList();
- VideoBackend::ActivateBackend(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strVideoBackend);
- WiimoteReal::LoadSettings();
+ UICommon::Init();
// No use running the loop when booting fails
if ( BootManager::BootCore( g_filename.c_str() ) )
while (PowerPC::GetState() != PowerPC::CPU_POWERDOWN)
updateMainFrameEvent.Wait();
- WiimoteReal::Shutdown();
- VideoBackend::ClearList();
- SConfig::Shutdown();
- LogManager::Shutdown();
+ UICommon::Shutdown();
ANativeWindow_release(surf);
}