2020/08/19 : Jyoar - 额外 -> 追加

This commit is contained in:
Rintim 2020-08-19 16:57:19 +08:00
parent 6316936009
commit 37a628f5a9
2 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@ static void action_delete_ext_save_data_update(ui_view* view, void* data, float*
info_destroy(view); info_destroy(view);
if(R_FAILED(res)) { if(R_FAILED(res)) {
error_display_res(info, task_draw_ext_save_data_info, res, "無法刪除額外儲存數據"); error_display_res(info, task_draw_ext_save_data_info, res, "無法刪除追加儲存數據");
} else { } else {
linked_list_remove(deleteData->items, deleteData->selected); linked_list_remove(deleteData->items, deleteData->selected);
task_free_ext_save_data(deleteData->selected); task_free_ext_save_data(deleteData->selected);
prompt_display_notify("成功", "已刪除額外儲存數據", COLOR_TEXT, NULL, NULL, NULL); prompt_display_notify("成功", "已刪除追加儲存數據", COLOR_TEXT, NULL, NULL, NULL);
} }
free(data); free(data);
@ -40,7 +40,7 @@ static void action_delete_ext_save_data_update(ui_view* view, void* data, float*
static void action_delete_ext_save_data_onresponse(ui_view* view, void* data, u32 response) { static void action_delete_ext_save_data_onresponse(ui_view* view, void* data, u32 response) {
if(response == PROMPT_YES) { if(response == PROMPT_YES) {
info_display("刪除額外讀取數據中", "", false, data, action_delete_ext_save_data_update, action_delete_ext_save_data_draw_top); info_display("刪除追加讀取數據中", "", false, data, action_delete_ext_save_data_update, action_delete_ext_save_data_draw_top);
} else { } else {
free(data); free(data);
} }
@ -49,7 +49,7 @@ static void action_delete_ext_save_data_onresponse(ui_view* view, void* data, u3
void action_delete_ext_save_data(linked_list* items, list_item* selected) { void action_delete_ext_save_data(linked_list* items, list_item* selected) {
delete_ext_save_data_data* data = (delete_ext_save_data_data*) calloc(1, sizeof(delete_ext_save_data_data)); delete_ext_save_data_data* data = (delete_ext_save_data_data*) calloc(1, sizeof(delete_ext_save_data_data));
if(data == NULL) { if(data == NULL) {
error_display(NULL, NULL, "無法分配刪除額外儲存數據的數據"); error_display(NULL, NULL, "無法分配刪除追加儲存數據的數據");
return; return;
} }
@ -57,5 +57,5 @@ void action_delete_ext_save_data(linked_list* items, list_item* selected) {
data->items = items; data->items = items;
data->selected = selected; data->selected = selected;
prompt_display_yes_no("確認", "即將刪除所選的額外儲存數據,是否繼續?", COLOR_TEXT, data, action_delete_ext_save_data_draw_top, action_delete_ext_save_data_onresponse); prompt_display_yes_no("確認", "即將刪除所選的追加儲存數據,是否繼續?", COLOR_TEXT, data, action_delete_ext_save_data_draw_top, action_delete_ext_save_data_onresponse);
} }

View File

@ -16,7 +16,7 @@ static list_item dump_nand = {"導出 NAND", COLOR_TEXT, dumpnand_open};
static list_item titles = {"程式", COLOR_TEXT, titles_open}; static list_item titles = {"程式", COLOR_TEXT, titles_open};
static list_item pending_titles = {"待裝程式", COLOR_TEXT, pendingtitles_open}; static list_item pending_titles = {"待裝程式", COLOR_TEXT, pendingtitles_open};
static list_item tickets = {"憑據", COLOR_TEXT, tickets_open}; static list_item tickets = {"憑據", COLOR_TEXT, tickets_open};
static list_item ext_save_data = {"額外儲存數據", COLOR_TEXT, extsavedata_open}; static list_item ext_save_data = {"追加儲存數據", COLOR_TEXT, extsavedata_open};
static list_item system_save_data = {"系統儲存數據", COLOR_TEXT, systemsavedata_open}; static list_item system_save_data = {"系統儲存數據", COLOR_TEXT, systemsavedata_open};
static list_item remote_install = {"遠程安裝", COLOR_TEXT, remoteinstall_open}; static list_item remote_install = {"遠程安裝", COLOR_TEXT, remoteinstall_open};
static list_item update = {"升級", COLOR_TEXT, update_open}; static list_item update = {"升級", COLOR_TEXT, update_open};