mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 14:04:21 +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_ESCAPE:
|
||||
|
||||
*global->path.fullpath = '\0';
|
||||
if (data)
|
||||
strlcpy(global->path.fullpath, (const char*)data,
|
||||
sizeof(global->path.fullpath));
|
||||
if (global->path.fullpath != data)
|
||||
{
|
||||
*global->path.fullpath = '\0';
|
||||
if (data)
|
||||
strlcpy(global->path.fullpath, (const char*)data,
|
||||
sizeof(global->path.fullpath));
|
||||
}
|
||||
|
||||
#if defined(RARCH_CONSOLE)
|
||||
if (driver->frontend_ctx && driver->frontend_ctx->set_fork)
|
||||
|
Loading…
x
Reference in New Issue
Block a user