mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Add workaround for fullpath propagation when doing setfork on
console platforms
This commit is contained in:
parent
b0c457979b
commit
ac62637c48
12
dynamic.c
12
dynamic.c
@ -1255,11 +1255,13 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
|||||||
|
|
||||||
case RETRO_ENVIRONMENT_EXEC:
|
case RETRO_ENVIRONMENT_EXEC:
|
||||||
case RETRO_ENVIRONMENT_EXEC_ESCAPE:
|
case RETRO_ENVIRONMENT_EXEC_ESCAPE:
|
||||||
|
if (global->path.fullpath != data)
|
||||||
*global->path.fullpath = '\0';
|
{
|
||||||
if (data)
|
*global->path.fullpath = '\0';
|
||||||
strlcpy(global->path.fullpath, (const char*)data,
|
if (data)
|
||||||
sizeof(global->path.fullpath));
|
strlcpy(global->path.fullpath, (const char*)data,
|
||||||
|
sizeof(global->path.fullpath));
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(RARCH_CONSOLE)
|
#if defined(RARCH_CONSOLE)
|
||||||
if (driver->frontend_ctx && driver->frontend_ctx->set_fork)
|
if (driver->frontend_ctx && driver->frontend_ctx->set_fork)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user