From 99b41dd1d036c28aa813c25c0e1c118d7a6abac1 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 22 Apr 2013 20:31:49 +0200 Subject: [PATCH] Check if fullpath is non-empty. --- frontend/frontend_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/frontend_console.c b/frontend/frontend_console.c index 530063bc8a..00e340af55 100644 --- a/frontend/frontend_console.c +++ b/frontend/frontend_console.c @@ -177,7 +177,7 @@ int rarch_main(int argc, char *argv[]) args.config_path = *g_extern.config_path ? g_extern.config_path : NULL; args.sram_path = (g_extern.lifecycle_mode_state & (1ULL << MODE_LOAD_GAME_SRAM_DIR_ENABLE)) ? g_extern.console.main_wrap.default_sram_dir : NULL; args.state_path = (g_extern.lifecycle_mode_state & (1ULL << MODE_LOAD_GAME_STATE_DIR_ENABLE)) ? g_extern.console.main_wrap.default_savestate_dir : NULL; - args.rom_path = g_extern.fullpath; + args.rom_path = *g_extern.fullpath ? g_extern.fullpath : NULL; args.libretro_path = g_settings.libretro; int init_ret = rarch_main_init_wrap(&args);