mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-12-28 18:36:02 +00:00
add log out option for cheatslips https://github.com/HamletDuFromage/aio-switch-updater/issues/180#issuecomment-1083559106
This commit is contained in:
parent
a015fd3161
commit
b7cf0dd132
7 changed files with 14 additions and 9 deletions
|
@ -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.",
|
||||
|
|
|
@ -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…",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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のチートシートをダウンロードする",
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -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的金手指列表",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue