Always set core path like this

This commit is contained in:
twinaphex 2016-07-30 16:32:34 +02:00
parent 9780d68d8a
commit 06814f44d4

View File

@ -529,10 +529,10 @@ static void frontend_ps3_process_args(int *argc, char *argv[])
* it loads on first boot, so we make sure
* active core path is set here. */
if (config_active_core_path_is_empty() && *argc >= 1 && strrchr(argv[0], '/'))
if (*argc >= 1)
{
char path[PATH_MAX_LENGTH] = {0};
strlcpy(path, strrchr(argv[0], '/') + 1, sizeof(path));
strlcpy(path, argv[0], sizeof(path));
if (path_file_exists(path))
runloop_ctl(RUNLOOP_CTL_SET_LIBRETRO_PATH, path);
}