Skip to content

Commit

Permalink
Merge pull request #90538 from migueldeicaza/order
Browse files Browse the repository at this point in the history
Fix the initialization order for the iOS driver
  • Loading branch information
akien-mga committed Apr 13, 2024
2 parents c889934 + 3ea7dec commit 6d5981a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions platform/ios/os_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ void register_dynamic_symbol(char *name, void *address) {

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 {
Expand Down Expand Up @@ -181,7 +177,9 @@ void register_dynamic_symbol(char *name, void *address) {
}

void OS_IOS::start() {
Main::start();
if (Main::start() == EXIT_SUCCESS) {
main_loop->initialize();
}

if (joypad_ios) {
joypad_ios->start_processing();
Expand Down

0 comments on commit 6d5981a

Please sign in to comment.