Merge pull request #90538 from migueldeicaza/order

Fix the initialization order for the iOS driver
This commit is contained in:
Rémi Verschelde 2024-04-13 11:30:27 +02:00
commit 6d5981aad7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();