Merge pull request #90538 from migueldeicaza/order
Fix the initialization order for the iOS driver
This commit is contained in:
commit
6d5981aad7
@ -149,10 +149,6 @@ void OS_IOS::deinitialize_modules() {
|
|||||||
|
|
||||||
void OS_IOS::set_main_loop(MainLoop *p_main_loop) {
|
void OS_IOS::set_main_loop(MainLoop *p_main_loop) {
|
||||||
main_loop = p_main_loop;
|
main_loop = p_main_loop;
|
||||||
|
|
||||||
if (main_loop) {
|
|
||||||
main_loop->initialize();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MainLoop *OS_IOS::get_main_loop() const {
|
MainLoop *OS_IOS::get_main_loop() const {
|
||||||
@ -181,7 +177,9 @@ bool OS_IOS::iterate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OS_IOS::start() {
|
void OS_IOS::start() {
|
||||||
Main::start();
|
if (Main::start() == EXIT_SUCCESS) {
|
||||||
|
main_loop->initialize();
|
||||||
|
}
|
||||||
|
|
||||||
if (joypad_ios) {
|
if (joypad_ios) {
|
||||||
joypad_ios->start_processing();
|
joypad_ios->start_processing();
|
||||||
|
Loading…
Reference in New Issue
Block a user