2020/08/19 : Synain - 修改了一下

This commit is contained in:
Rintim 2020-08-19 16:42:57 +08:00
parent 6b9d68be46
commit 19ba2dd0fa
7 changed files with 24 additions and 24 deletions

View File

@ -27,12 +27,12 @@ static void action_delete_ext_save_data_update(ui_view* view, void* data, float*
info_destroy(view);
if(R_FAILED(res)) {
error_display_res(info, task_draw_ext_save_data_info, res, "Failed to delete ext save data.");
error_display_res(info, task_draw_ext_save_data_info, res, "無法刪除額外儲存數據");
} else {
linked_list_remove(deleteData->items, deleteData->selected);
task_free_ext_save_data(deleteData->selected);
prompt_display_notify("Success", "Ext save data deleted.", COLOR_TEXT, NULL, NULL, NULL);
prompt_display_notify("成功", "已刪除額外儲存數據", COLOR_TEXT, NULL, NULL, NULL);
}
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) {
if(response == PROMPT_YES) {
info_display("Deleting Ext Save Data", "", 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 {
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) {
delete_ext_save_data_data* data = (delete_ext_save_data_data*) calloc(1, sizeof(delete_ext_save_data_data));
if(data == NULL) {
error_display(NULL, NULL, "Failed to allocate delete ext save data data.");
error_display(NULL, NULL, "無法分配刪除額外儲存數據的數據");
return;
}
@ -57,5 +57,5 @@ void action_delete_ext_save_data(linked_list* items, list_item* selected) {
data->items = items;
data->selected = selected;
prompt_display_yes_no("Confirmation", "Delete the selected ext save data?", 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

@ -18,18 +18,18 @@ static void action_delete_secure_value_update(ui_view* view, void* data, float*
info_destroy(view);
if(R_FAILED(res)) {
error_display_res(info, task_draw_title_info, res, "Failed to delete secure value.");
error_display_res(info, task_draw_title_info, res, "無法已刪除安全值");
} else {
prompt_display_notify("Success", "Secure value deleted.", COLOR_TEXT, info, task_draw_title_info, NULL);
prompt_display_notify("成功", "已刪除安全值", COLOR_TEXT, info, task_draw_title_info, NULL);
}
}
static void action_delete_secure_value_onresponse(ui_view* view, void* data, u32 response) {
if(response == PROMPT_YES) {
info_display("Deleting Secure Value", "", false, data, action_delete_secure_value_update, task_draw_title_info);
info_display("刪除安全值中", "", false, data, action_delete_secure_value_update, task_draw_title_info);
}
}
void action_delete_secure_value(linked_list* items, list_item* selected) {
prompt_display_yes_no("Confirmation", "Delete the secure value of the selected title?", COLOR_TEXT, selected->data, task_draw_title_info, action_delete_secure_value_onresponse);
prompt_display_yes_no("確認", "即將刪除所選程式的安全值,是否繼續?", COLOR_TEXT, selected->data, task_draw_title_info, action_delete_secure_value_onresponse);
}

View File

@ -188,14 +188,14 @@ static void extsavedata_update(ui_view* view, void* data, linked_list* items, li
listData->populateData.items = items;
Result res = task_populate_ext_save_data(&listData->populateData);
if(R_FAILED(res)) {
error_display_res(NULL, NULL, res, "無法初始化額外儲存數據目錄");
error_display_res(NULL, NULL, res, "無法初始化額外儲存數據目錄結構");
}
listData->populated = true;
}
if(listData->populateData.finished && R_FAILED(listData->populateData.result)) {
error_display_res(NULL, NULL, listData->populateData.result, "無法填充額外儲存數據目錄");
error_display_res(NULL, NULL, listData->populateData.result, "無法列舉額外儲存數據目錄");
listData->populateData.result = 0;
}

View File

@ -13,9 +13,9 @@ 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_sound = {"TWL Sound", COLOR_TEXT, files_open_twl_sound};
static list_item dump_nand = {"導出 NAND", COLOR_TEXT, dumpnand_open};
static list_item titles = {"程式 (Titles)", COLOR_TEXT, titles_open};
static list_item pending_titles = {"待裝程式 (Pending Titles)", COLOR_TEXT, pendingtitles_open};
static list_item tickets = {"Tickets", COLOR_TEXT, tickets_open};
static list_item titles = {"程式", COLOR_TEXT, titles_open};
static list_item pending_titles = {"待裝程式", COLOR_TEXT, pendingtitles_open};
static list_item tickets = {"憑據", COLOR_TEXT, tickets_open};
static list_item ext_save_data = {"額外儲存數據", COLOR_TEXT, extsavedata_open};
static list_item system_save_data = {"系統儲存數據", COLOR_TEXT, systemsavedata_open};
static list_item remote_install = {"遠程安裝", COLOR_TEXT, remoteinstall_open};

View File

@ -214,7 +214,7 @@ void task_draw_ticket_info(ui_view* view, void* data, float x1, float y1, float
if(info->loaded) {
char infoText[512];
snprintf(infoText, sizeof(infoText), "程式 ID: %016llX", info->titleId);
snprintf(infoText, sizeof(infoText), "憑據 ID: %016llX", info->titleId);
float infoWidth;
screen_get_string_size(&infoWidth, NULL, infoText, 0.5f, 0.5f);

View File

@ -9,8 +9,8 @@
#include "task/uitask.h"
#include "../core/core.h"
static list_item delete_ticket = {"刪除 Ticket", COLOR_TEXT, action_delete_ticket};
static list_item delete_unused_tickets = {"刪除未使用的 Tickets", COLOR_TEXT, action_delete_tickets_unused};
static list_item delete_ticket = {"刪除憑據", COLOR_TEXT, action_delete_ticket};
static list_item delete_unused_tickets = {"刪除未使用的憑據", COLOR_TEXT, action_delete_tickets_unused};
typedef struct {
populate_tickets_data populateData;
@ -61,7 +61,7 @@ static void tickets_action_update(ui_view* view, void* data, linked_list* items,
static void tickets_action_open(linked_list* items, list_item* selected) {
tickets_action_data* data = (tickets_action_data*) calloc(1, sizeof(tickets_action_data));
if(data == NULL) {
error_display(NULL, NULL, "無法分配 Tickets 操作數據");
error_display(NULL, NULL, "無法分配憑據操作數據");
return;
}
@ -69,7 +69,7 @@ static void tickets_action_open(linked_list* items, list_item* selected) {
data->items = items;
data->selected = selected;
list_display("Ticket 操作", "A: 選擇, B: 返回", data, tickets_action_update, tickets_action_draw_top);
list_display("憑據操作", "A: 選擇, B: 返回", data, tickets_action_update, tickets_action_draw_top);
}
static void tickets_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected) {
@ -109,14 +109,14 @@ static void tickets_update(ui_view* view, void* data, linked_list* items, list_i
listData->populateData.items = items;
Result res = task_populate_tickets(&listData->populateData);
if(R_FAILED(res)) {
error_display_res(NULL, NULL, res, "無法初始化 Tickets 目錄結構");
error_display_res(NULL, NULL, res, "無法初始化憑據目錄結構");
}
listData->populated = true;
}
if(listData->populateData.finished && R_FAILED(listData->populateData.result)) {
error_display_res(NULL, NULL, listData->populateData.result, "無法列舉 Tickets 目錄");
error_display_res(NULL, NULL, listData->populateData.result, "無法列舉憑據目錄");
listData->populateData.result = 0;
}
@ -130,14 +130,14 @@ static void tickets_update(ui_view* view, void* data, linked_list* items, list_i
void tickets_open() {
tickets_data* data = (tickets_data*) calloc(1, sizeof(tickets_data));
if(data == NULL) {
error_display(NULL, NULL, "無法分配 Tickets 數據");
error_display(NULL, NULL, "無法分配憑據數據");
return;
}
data->populateData.finished = true;
list_display("Tickets", "A: 選擇, B: 返回, X: 刷新", data, tickets_update, tickets_draw_top);
list_display("憑據", "A: 選擇, B: 返回, X: 刷新", data, tickets_update, tickets_draw_top);
}
// オケー

View File

@ -69,7 +69,7 @@ static void update_check_update(ui_view* view, void* data, float* progress, char
action_install_url("升級 FBI 到最新版本嗎?", updateURL, fs_get_3dsx_path(), NULL, NULL, NULL, NULL);
} else {
if(R_FAILED(res)) {
error_display_res(NULL, NULL, res, "無法連接查詢");
error_display_res(NULL, NULL, res, "無法連接服器");
} else {
prompt_display_notify("成功", "已完成升級", COLOR_TEXT, NULL, NULL, NULL);
}