Don't call driver_get_ptr until after call to rarch_main_state_alloc

has been made
This commit is contained in:
twinaphex 2015-03-22 00:43:10 +01:00
parent c233418d4a
commit 248d985ae6

View File

@ -279,13 +279,15 @@ returntype main_entry(signature())
{
declare_argc();
declare_argv();
args_type() args = (args_type())args_initial_ptr();
int ret = 0;
args_type() args = (args_type())args_initial_ptr();
int ret = 0;
settings_t *settings = NULL;
driver_t *driver = driver_get_ptr();
driver_t *driver = NULL;
rarch_main_state_alloc();
driver = driver_get_ptr();
if (driver)
driver->frontend_ctx = (frontend_ctx_driver_t*)frontend_ctx_init_first();