mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-08-24 19:36:06 -05:00
Correct logic for sanitize_string_for_path. Fixes #286 and compatibility with Pokemon games from master branch.
This commit is contained in:
@@ -34,10 +34,10 @@ void tasks::mainmenu::backup_all_for_all_local(sys::ProgressTask *task, MainMenu
|
||||
data::TitleInfo *titleInfo = data::get_title_info_by_id(applicationID);
|
||||
if (error::is_null(titleInfo)) { continue; }
|
||||
|
||||
const fslib::Path workDir = config::get_working_directory();
|
||||
const fslib::Path targetDir = workDir / titleInfo->get_path_safe_title();
|
||||
const bool exists = fslib::directory_exists(targetDir);
|
||||
const bool createError = !exists && error::fslib(fslib::create_directories_recursively(targetDir));
|
||||
const fslib::Path workDir{config::get_working_directory()};
|
||||
const fslib::Path targetDir{workDir / titleInfo->get_path_safe_title()};
|
||||
const bool exists = fslib::directory_exists(targetDir);
|
||||
const bool createError = !exists && error::fslib(fslib::create_directories_recursively(targetDir));
|
||||
if (!exists && createError) { continue; }
|
||||
|
||||
const char *pathSafe = user->get_path_safe_nickname();
|
||||
|
||||
Reference in New Issue
Block a user