1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Allow launching built-in cores with '-L' (#15627)

This commit is contained in:
sonninnos 2023-08-20 22:39:18 +03:00 committed by GitHub
parent 7a475c7195
commit 213060a00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5493,6 +5493,33 @@ static void retroarch_parse_input_libretro_path(const char *path, size_t path_le
if (find_last_slash(path))
goto end;
/* First check for built-in cores */
if (string_is_equal(path, "ffmpeg"))
{
runloop_set_current_core_type(CORE_TYPE_FFMPEG, true);
return;
}
else if (string_is_equal(path, "mpv"))
{
runloop_set_current_core_type(CORE_TYPE_MPV, true);
return;
}
else if (string_is_equal(path, "imageviewer"))
{
runloop_set_current_core_type(CORE_TYPE_IMAGEVIEWER, true);
return;
}
if (string_is_equal(path, "netretropad"))
{
runloop_set_current_core_type(CORE_TYPE_NETRETROPAD, true);
return;
}
else if (string_is_equal(path, "videoprocessor"))
{
runloop_set_current_core_type(CORE_TYPE_VIDEO_PROCESSOR, true);
return;
}
command_event(CMD_EVENT_CORE_INFO_INIT, NULL);
_len = strlcpy(tmp_path, path, sizeof(tmp_path));