Set new pathname basedir in case extraction_directory has not

been set
This commit is contained in:
twinaphex 2014-12-15 16:57:22 +01:00
parent f9d819f971
commit e871d27d7d

View File

@ -408,11 +408,12 @@ static bool load_content(const struct retro_subsystem_info *special,
if ((!strcmp(new_basedir, "")) ||
!path_is_directory(new_basedir))
{
RARCH_ERR("Tried extracting to extraction directory, but "
RARCH_WARN("Tried extracting to extraction directory, but "
"extraction directory was not set or found. "
"Setting extraction directory to directory "
"derived by basename...\n");
rarch_assert(false);
fill_pathname_basedir(new_basedir, path_basename(path),
sizeof(new_basedir));
}
attributes.i = 0;