diff --git a/frontend/frontend.c b/frontend/frontend.c index 053a1b230e..b33373375a 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -284,6 +284,8 @@ returntype main_entry(signature()) settings_t *settings = NULL; driver_t *driver = driver_get_ptr(); + rarch_main_state_new(); + driver->frontend_ctx = (frontend_ctx_driver_t*)frontend_ctx_init_first(); if (!driver->frontend_ctx) @@ -292,8 +294,6 @@ returntype main_entry(signature()) if (driver->frontend_ctx && driver->frontend_ctx->init) driver->frontend_ctx->init(args); - rarch_main_state_new(); - if (driver->frontend_ctx) { if (!(ret = (main_load_content(argc, argv, args,