diff --git a/resources/i18n/de/menus.json b/resources/i18n/de/menus.json index d7a410a..bc45c51 100644 --- a/resources/i18n/de/menus.json +++ b/resources/i18n/de/menus.json @@ -17,7 +17,7 @@ "delete_existing": "Lösche alle bestehenden Cheats", "delete_all": "Lösche alle Cheats", "deleting": "Löschen…", - "cheastlips_title": "Cheat Slips Cheats", + "cheatslips_title": "Cheat Slips Cheats", "get_cheatslips": "Lade Cheat Slips Cheats herunter", "cheatslips_label": "\u25c6 Log dich auf Cheat Slips ein und lade Cheats für deine Spiele herunter.", "cheatslips_dl": "Lade eine Auswahl von Cheats von Cheat Slips herunter.\nDie Cheats werden deiner bestehenden Cheat-Datei hinzugefügt.", diff --git a/resources/i18n/en-US/menus.json b/resources/i18n/en-US/menus.json index 59a24cb..8fa56db 100644 --- a/resources/i18n/en-US/menus.json +++ b/resources/i18n/en-US/menus.json @@ -17,7 +17,7 @@ "delete_existing": "Delete all existing cheat codes", "delete_orphaned": "Delete orphaned cheat codes", "deleting": "Deleting…", - "cheastlips_title": "Cheat Slips cheats", + "cheatslips_title": "Cheat Slips cheats", "gbatemp_title": "GBAtemp.net cheats", "get_gbatemp": "Download GBAtemp.net cheat codes", "get_cheatslips": "Download Cheat Slips cheat sheets", @@ -48,7 +48,8 @@ "deletion_error": "Couldn't delete the cheat files for game with ID:\n{}", "show_cheat_files": "Show all cheat files", "cheats_not_found": "Couldn't find cheat codes matching this build ID.", - "old_cheats_found": "Cheat codes matching BID(s) [ {}] exist." + "old_cheats_found": "Cheat codes matching BID(s) [ {}] exist.", + "cheatslips_logout": "Log out" }, "common": { "downloading": "Downloading…", diff --git a/resources/i18n/fr/menus.json b/resources/i18n/fr/menus.json index 98d7bc5..54a7f7d 100644 --- a/resources/i18n/fr/menus.json +++ b/resources/i18n/fr/menus.json @@ -17,7 +17,7 @@ "delete_existing": "Supprimer tous les codes de triche", "delete_orphaned": "Supprimer les codes de triche orphelins", "deleting": "Suppression…", - "cheastlips_title": "Codes de triche de Cheat Slips", + "cheatslips_title": "Codes de triche de Cheat Slips", "gbatemp_title": "Codes de triche de GBAtemp.net", "get_gbatemp": "Télécharger les codes de triche de GBAtemp.net", "get_cheatslips": "Télécharger les codes de triche de Cheat Slips", diff --git a/resources/i18n/ja/menus.json b/resources/i18n/ja/menus.json index d897e5b..77a9926 100644 --- a/resources/i18n/ja/menus.json +++ b/resources/i18n/ja/menus.json @@ -17,7 +17,7 @@ "delete_existing": "既存のチートコードをすべて削除", "delete_orphaned": "孤立したチートコードを削除する", "deleting": "削除中…", - "cheastlips_title": "Cheat Slipsチート", + "cheatslips_title": "Cheat Slipsチート", "gbatemp_title": "GBAtemp.netチート", "get_gbatemp": "GBAtemp.netチートコードをダウンロード", "get_cheatslips": "Cheat Slipsのチートシートをダウンロードする", diff --git a/resources/i18n/pl/menus.json b/resources/i18n/pl/menus.json index 71d90d3..8e19af3 100644 --- a/resources/i18n/pl/menus.json +++ b/resources/i18n/pl/menus.json @@ -17,7 +17,7 @@ "delete_existing": "Usuń wszystkie istniejące cheaty", "delete_all": "Usuń wszystkie cheaty", "deleting": "Usuwanie…", - "cheastlips_title": "Cheaty Cheat Slips", + "cheatslips_title": "Cheaty Cheat Slips", "get_cheatslips": "Pobierz arkusze cheatów z Cheat Slips", "cheatslips_label": "\u25c6 Zaloguj się na Cheat Slips i pobierz arkusze cheatów dla swoich gier.", "cheatslips_dl": "Pobierz wybrane arkusze cheatów z Cheat Slips.\nPobrane cheaty zostaną dopisane na końcu twojego pliku z cheatami.", diff --git a/resources/i18n/zh-TW/menus.json b/resources/i18n/zh-TW/menus.json index 05a9835..c3d133c 100644 --- a/resources/i18n/zh-TW/menus.json +++ b/resources/i18n/zh-TW/menus.json @@ -17,7 +17,7 @@ "delete_existing": "刪除目前現有的金手指", "delete_orphaned": "刪除未安裝遊戲的金手指", "deleting": "正在刪除…", - "cheastlips_title": "Cheat Slips金手指", + "cheatslips_title": "Cheat Slips金手指", "gbatemp_title": "GBAtemp.net金手指", "get_gbatemp": "下載GBAtemp.net金手指", "get_cheatslips": "下載Cheat Slips的金手指列表", diff --git a/source/app_page.cpp b/source/app_page.cpp index 728289a..6cb55c3 100644 --- a/source/app_page.cpp +++ b/source/app_page.cpp @@ -43,7 +43,7 @@ void AppPage::PopulatePage() tid = records[i].application_id; - if R_FAILED(GetControlData(tid, controlData, controlSize, name)) continue; + if R_FAILED (GetControlData(tid, controlData, controlSize, name)) continue; listItem = new brls::ListItem(name, "", util::formatApplicationId(tid)); this->DeclareGameListItem(name, tid, &controlData); @@ -154,11 +154,15 @@ uint64_t AppPage::GetCurrentApplicationId() AppPage_CheatSlips::AppPage_CheatSlips() : AppPage() { this->PopulatePage(); + this->registerAction("menus/cheats/cheatslips_logout"_i18n, brls::Key::X, [this] { + std::filesystem::remove(TOKEN_PATH); + return true; + }); } void AppPage_CheatSlips::CreateLabel() { - this->setTitle("menus/cheats/cheastlips_title"_i18n); + this->setTitle("menus/cheats/cheatslips_title"_i18n); label = new brls::Label(brls::LabelStyle::DESCRIPTION, "menus/cheats/cheatslips_select"_i18n, true); list->addView(label); }