mirror of
https://github.com/godotengine/godot
synced 2024-09-05 04:48:26 +00:00
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) {
|
||||
main_loop = p_main_loop;
|
||||
|
||||
if (main_loop) {
|
||||
main_loop->initialize();
|
||||
}
|
||||
}
|
||||
|
||||
MainLoop *OS_IOS::get_main_loop() const {
|
||||
|
@ -181,7 +177,9 @@ bool OS_IOS::iterate() {
|
|||
}
|
||||
|
||||
void OS_IOS::start() {
|
||||
Main::start();
|
||||
if (Main::start() == EXIT_SUCCESS) {
|
||||
main_loop->initialize();
|
||||
}
|
||||
|
||||
if (joypad_ios) {
|
||||
joypad_ios->start_processing();
|
||||
|
|
Loading…
Reference in a new issue