mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-12-29 10:56:01 +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_existing": "Lösche alle bestehenden Cheats",
|
||||||
"delete_all": "Lösche alle Cheats",
|
"delete_all": "Lösche alle Cheats",
|
||||||
"deleting": "Löschen…",
|
"deleting": "Löschen…",
|
||||||
"cheastlips_title": "Cheat Slips Cheats",
|
"cheatslips_title": "Cheat Slips Cheats",
|
||||||
"get_cheatslips": "Lade Cheat Slips Cheats herunter",
|
"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_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.",
|
"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_existing": "Delete all existing cheat codes",
|
||||||
"delete_orphaned": "Delete orphaned cheat codes",
|
"delete_orphaned": "Delete orphaned cheat codes",
|
||||||
"deleting": "Deleting…",
|
"deleting": "Deleting…",
|
||||||
"cheastlips_title": "Cheat Slips cheats",
|
"cheatslips_title": "Cheat Slips cheats",
|
||||||
"gbatemp_title": "GBAtemp.net cheats",
|
"gbatemp_title": "GBAtemp.net cheats",
|
||||||
"get_gbatemp": "Download GBAtemp.net cheat codes",
|
"get_gbatemp": "Download GBAtemp.net cheat codes",
|
||||||
"get_cheatslips": "Download Cheat Slips cheat sheets",
|
"get_cheatslips": "Download Cheat Slips cheat sheets",
|
||||||
|
@ -48,7 +48,8 @@
|
||||||
"deletion_error": "Couldn't delete the cheat files for game with ID:\n{}",
|
"deletion_error": "Couldn't delete the cheat files for game with ID:\n{}",
|
||||||
"show_cheat_files": "Show all cheat files",
|
"show_cheat_files": "Show all cheat files",
|
||||||
"cheats_not_found": "Couldn't find cheat codes matching this build ID.",
|
"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": {
|
"common": {
|
||||||
"downloading": "Downloading…",
|
"downloading": "Downloading…",
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"delete_existing": "Supprimer tous les codes de triche",
|
"delete_existing": "Supprimer tous les codes de triche",
|
||||||
"delete_orphaned": "Supprimer les codes de triche orphelins",
|
"delete_orphaned": "Supprimer les codes de triche orphelins",
|
||||||
"deleting": "Suppression…",
|
"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",
|
"gbatemp_title": "Codes de triche de GBAtemp.net",
|
||||||
"get_gbatemp": "Télécharger les 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",
|
"get_cheatslips": "Télécharger les codes de triche de Cheat Slips",
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"delete_existing": "既存のチートコードをすべて削除",
|
"delete_existing": "既存のチートコードをすべて削除",
|
||||||
"delete_orphaned": "孤立したチートコードを削除する",
|
"delete_orphaned": "孤立したチートコードを削除する",
|
||||||
"deleting": "削除中…",
|
"deleting": "削除中…",
|
||||||
"cheastlips_title": "Cheat Slipsチート",
|
"cheatslips_title": "Cheat Slipsチート",
|
||||||
"gbatemp_title": "GBAtemp.netチート",
|
"gbatemp_title": "GBAtemp.netチート",
|
||||||
"get_gbatemp": "GBAtemp.netチートコードをダウンロード",
|
"get_gbatemp": "GBAtemp.netチートコードをダウンロード",
|
||||||
"get_cheatslips": "Cheat Slipsのチートシートをダウンロードする",
|
"get_cheatslips": "Cheat Slipsのチートシートをダウンロードする",
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"delete_existing": "Usuń wszystkie istniejące cheaty",
|
"delete_existing": "Usuń wszystkie istniejące cheaty",
|
||||||
"delete_all": "Usuń wszystkie cheaty",
|
"delete_all": "Usuń wszystkie cheaty",
|
||||||
"deleting": "Usuwanie…",
|
"deleting": "Usuwanie…",
|
||||||
"cheastlips_title": "Cheaty Cheat Slips",
|
"cheatslips_title": "Cheaty Cheat Slips",
|
||||||
"get_cheatslips": "Pobierz arkusze cheatów z 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_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.",
|
"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_existing": "刪除目前現有的金手指",
|
||||||
"delete_orphaned": "刪除未安裝遊戲的金手指",
|
"delete_orphaned": "刪除未安裝遊戲的金手指",
|
||||||
"deleting": "正在刪除…",
|
"deleting": "正在刪除…",
|
||||||
"cheastlips_title": "Cheat Slips金手指",
|
"cheatslips_title": "Cheat Slips金手指",
|
||||||
"gbatemp_title": "GBAtemp.net金手指",
|
"gbatemp_title": "GBAtemp.net金手指",
|
||||||
"get_gbatemp": "下載GBAtemp.net金手指",
|
"get_gbatemp": "下載GBAtemp.net金手指",
|
||||||
"get_cheatslips": "下載Cheat Slips的金手指列表",
|
"get_cheatslips": "下載Cheat Slips的金手指列表",
|
||||||
|
|
|
@ -154,11 +154,15 @@ uint64_t AppPage::GetCurrentApplicationId()
|
||||||
AppPage_CheatSlips::AppPage_CheatSlips() : AppPage()
|
AppPage_CheatSlips::AppPage_CheatSlips() : AppPage()
|
||||||
{
|
{
|
||||||
this->PopulatePage();
|
this->PopulatePage();
|
||||||
|
this->registerAction("menus/cheats/cheatslips_logout"_i18n, brls::Key::X, [this] {
|
||||||
|
std::filesystem::remove(TOKEN_PATH);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppPage_CheatSlips::CreateLabel()
|
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);
|
label = new brls::Label(brls::LabelStyle::DESCRIPTION, "menus/cheats/cheatslips_select"_i18n, true);
|
||||||
list->addView(label);
|
list->addView(label);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue