mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Don't call driver_get_ptr until after call to rarch_main_state_alloc
has been made
This commit is contained in:
parent
c233418d4a
commit
248d985ae6
@ -282,10 +282,12 @@ returntype main_entry(signature())
|
|||||||
args_type() args = (args_type())args_initial_ptr();
|
args_type() args = (args_type())args_initial_ptr();
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
settings_t *settings = NULL;
|
settings_t *settings = NULL;
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = NULL;
|
||||||
|
|
||||||
rarch_main_state_alloc();
|
rarch_main_state_alloc();
|
||||||
|
|
||||||
|
driver = driver_get_ptr();
|
||||||
|
|
||||||
if (driver)
|
if (driver)
|
||||||
driver->frontend_ctx = (frontend_ctx_driver_t*)frontend_ctx_init_first();
|
driver->frontend_ctx = (frontend_ctx_driver_t*)frontend_ctx_init_first();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user