mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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
@ -279,13 +279,15 @@ returntype main_entry(signature())
|
|||||||
{
|
{
|
||||||
declare_argc();
|
declare_argc();
|
||||||
declare_argv();
|
declare_argv();
|
||||||
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