mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-20 09:52:33 +00:00
RETRO_ENVIRONMENT_SET_LIBRETRO_PATH - returns false if path
file doesn't exist
This commit is contained in:
parent
32cae444a0
commit
e1cc0c3160
@ -758,7 +758,11 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
|
||||
case RETRO_ENVIRONMENT_SET_LIBRETRO_PATH:
|
||||
RARCH_LOG("Environ (Private) SET_LIBRETRO_PATH.\n");
|
||||
strlcpy(g_settings.libretro, (const char*)data, sizeof(g_settings.libretro));
|
||||
|
||||
if (path_file_exists((const char*)data))
|
||||
strlcpy(g_settings.libretro, (const char*)data, sizeof(g_settings.libretro));
|
||||
else
|
||||
return false;
|
||||
break;
|
||||
|
||||
case RETRO_ENVIRONMENT_EXEC:
|
||||
|
Loading…
x
Reference in New Issue
Block a user