mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-07 10:50:35 +00:00
Failsafe in case extraction dir is wrong
This commit is contained in:
parent
97ea43994e
commit
547cdefd1c
7
file.c
7
file.c
@ -391,6 +391,13 @@ static bool load_content(const struct retro_subsystem_info *special,
|
||||
RARCH_LOG("Compressed file in case of need_fullpath."
|
||||
"Now extracting to temporary directory.\n");
|
||||
|
||||
if ((!strcmp(g_settings.extraction_directory,"")) ||
|
||||
!path_is_directory(g_settings.extraction_directory))
|
||||
{
|
||||
RARCH_ERR("Tried extracting to extraction directory, but "
|
||||
"extraction directory was not set or found. Exiting.\n");
|
||||
rarch_assert(false);
|
||||
}
|
||||
/* This is a test implementation, currently it needs as much
|
||||
* RAM as the file is big.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user