mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Fix broken path handling when launching a core with a file or with spaces
This commit is contained in:
parent
052de6bcd2
commit
756db4f264
@ -188,13 +188,18 @@ static void frontend_ctr_exec(const char* path, bool should_load_game)
|
|||||||
DEBUG_VAR(path);
|
DEBUG_VAR(path);
|
||||||
DEBUG_STR(path);
|
DEBUG_STR(path);
|
||||||
|
|
||||||
strncpy(args, elf_path_cst, sizeof(args));
|
args[0] = '\0';
|
||||||
|
strcat(args, "\"");
|
||||||
|
strcat(args, elf_path_cst);
|
||||||
|
strcat(args, "\"");
|
||||||
|
|
||||||
RARCH_LOG("Attempt to load core: [%s].\n", path);
|
RARCH_LOG("Attempt to load core: [%s].\n", path);
|
||||||
#ifndef IS_SALAMANDER
|
#ifndef IS_SALAMANDER
|
||||||
if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT))
|
if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT))
|
||||||
{
|
{
|
||||||
|
strcat(args, " \"");
|
||||||
strcat(args, path_get(RARCH_PATH_CONTENT));
|
strcat(args, path_get(RARCH_PATH_CONTENT));
|
||||||
|
strcat(args, "\"");
|
||||||
RARCH_LOG("content path: [%s].\n", path_get(RARCH_PATH_CONTENT));
|
RARCH_LOG("content path: [%s].\n", path_get(RARCH_PATH_CONTENT));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user