2020/08/17:Niean

This commit is contained in:
Rintim 2020-08-17 09:24:23 +08:00
parent 7d88ee355f
commit 50bef60413
2 changed files with 8 additions and 8 deletions

View File

@ -80,7 +80,7 @@ static Result dumpnand_restore(void* data, u32 index) {
} }
static bool dumpnand_error(void* data, u32 index, Result res, ui_view** errorView) { static bool dumpnand_error(void* data, u32 index, Result res, ui_view** errorView) {
*errorView = error_display_res(NULL, NULL, res, "無法備份NAND"); *errorView = error_display_res(NULL, NULL, res, "無法導出NAND");
return true; return true;
} }
@ -92,7 +92,7 @@ static void dumpnand_update(ui_view* view, void* data, float* progress, char* te
info_destroy(view); info_destroy(view);
if(R_SUCCEEDED(dumpData->result)) { if(R_SUCCEEDED(dumpData->result)) {
prompt_display_notify("成功", "成功備份NAND", COLOR_TEXT, NULL, NULL, NULL); prompt_display_notify("成功", "成功導出NAND", COLOR_TEXT, NULL, NULL, NULL);
} }
free(dumpData); free(dumpData);
@ -118,9 +118,9 @@ static void dumpnand_onresponse(ui_view* view, void* data, u32 response) {
Result res = task_data_op(dumpData); Result res = task_data_op(dumpData);
if(R_SUCCEEDED(res)) { if(R_SUCCEEDED(res)) {
info_display("備份NAND", "按B鍵停止", true, data, dumpnand_update, NULL); info_display("導出NAND", "按B鍵停止", true, data, dumpnand_update, NULL);
} else { } else {
error_display_res(NULL, NULL, res, "無法初始化備份NAND"); error_display_res(NULL, NULL, res, "無法初始化導出NAND");
free(data); free(data);
} }
} else { } else {
@ -131,7 +131,7 @@ static void dumpnand_onresponse(ui_view* view, void* data, u32 response) {
void dumpnand_open() { void dumpnand_open() {
data_op_data* data = (data_op_data*) calloc(1, sizeof(data_op_data)); data_op_data* data = (data_op_data*) calloc(1, sizeof(data_op_data));
if(data == NULL) { if(data == NULL) {
error_display(NULL, NULL, "無法分配NAND備份數據"); error_display(NULL, NULL, "無法分配導出NAND數據");
return; return;
} }
@ -164,7 +164,7 @@ void dumpnand_open() {
data->finished = true; data->finished = true;
prompt_display_yes_no("確認", "是否備份原始NAND鏡像", COLOR_TEXT, data, NULL, dumpnand_onresponse); prompt_display_yes_no("確認", "是否導出原始NAND鏡像", COLOR_TEXT, data, NULL, dumpnand_onresponse);
} }
// オケー // オケー

View File

@ -12,9 +12,9 @@ static list_item ctr_nand = {"CTR NAND", COLOR_TEXT, files_open_ctr_nand};
static list_item twl_nand = {"TWL NAND", COLOR_TEXT, files_open_twl_nand}; static list_item twl_nand = {"TWL NAND", COLOR_TEXT, files_open_twl_nand};
static list_item twl_photo = {"TWL Photo", COLOR_TEXT, files_open_twl_photo}; static list_item twl_photo = {"TWL Photo", COLOR_TEXT, files_open_twl_photo};
static list_item twl_sound = {"TWL Sound", COLOR_TEXT, files_open_twl_sound}; static list_item twl_sound = {"TWL Sound", COLOR_TEXT, files_open_twl_sound};
static list_item dump_nand = {"NAND備份", COLOR_TEXT, dumpnand_open}; 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 = {"Tickets", COLOR_TEXT, tickets_open}; static list_item tickets = {"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};