mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-08-20 17:38:07 -05:00
Add replacement table for sanitize_string_for_path
This commit is contained in:
@@ -17,7 +17,7 @@ void tasks::useroptions::backup_all_for_user_local(sys::threadpool::JobData task
|
||||
data::User *user = castData->user;
|
||||
|
||||
if (error::is_null(task)) { return; }
|
||||
if (error::is_null(user)) { TASK_FINISH_RETURN(task); }
|
||||
else if (error::is_null(user)) { TASK_FINISH_RETURN(task); }
|
||||
|
||||
auto backupStruct = std::make_shared<BackupMenuState::DataStruct>();
|
||||
backupStruct->task = task;
|
||||
@@ -71,7 +71,7 @@ void tasks::useroptions::backup_all_for_user_remote(sys::threadpool::JobData tas
|
||||
data::User *user = castData->user;
|
||||
remote::Storage *remote = remote::get_remote_storage();
|
||||
if (error::is_null(task)) { return; }
|
||||
if (error::is_null(user) || error::is_null(remote)) { TASK_FINISH_RETURN(task); }
|
||||
else if (error::is_null(user) || error::is_null(remote)) { TASK_FINISH_RETURN(task); }
|
||||
|
||||
auto backupStruct = std::make_shared<BackupMenuState::DataStruct>();
|
||||
backupStruct->task = task;
|
||||
@@ -120,7 +120,7 @@ void tasks::useroptions::create_all_save_data_for_user(sys::threadpool::JobData
|
||||
data::User *user = castData->user;
|
||||
UserOptionState *spawningState = castData->spawningState;
|
||||
if (error::is_null(task)) { return; }
|
||||
if (error::is_null(user) || error::is_null(spawningState)) { TASK_FINISH_RETURN(task); }
|
||||
else if (error::is_null(user) || error::is_null(spawningState)) { TASK_FINISH_RETURN(task); }
|
||||
|
||||
data::TitleInfoList infoList{};
|
||||
data::get_title_info_list(infoList);
|
||||
@@ -160,7 +160,7 @@ void tasks::useroptions::delete_all_save_data_for_user(sys::threadpool::JobData
|
||||
data::User *user = castData->user;
|
||||
UserOptionState *spawningState = castData->spawningState;
|
||||
if (error::is_null(task)) { return; }
|
||||
if (error::is_null(user) || error::is_null(spawningState) || user->get_account_save_type() == FsSaveDataType_System)
|
||||
else if (error::is_null(user) || error::is_null(spawningState) || user->get_account_save_type() == FsSaveDataType_System)
|
||||
{
|
||||
TASK_FINISH_RETURN(task);
|
||||
}
|
||||
@@ -193,7 +193,7 @@ void tasks::useroptions::delete_all_save_data_for_user(sys::threadpool::JobData
|
||||
applicationIDs.push_back(applicationID);
|
||||
}
|
||||
|
||||
for (const uint64_t &applicationID : applicationIDs) { user->erase_save_info_by_id(applicationID); }
|
||||
for (const uint64_t applicationID : applicationIDs) { user->erase_save_info_by_id(applicationID); }
|
||||
spawningState->refresh_required();
|
||||
task->complete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user