1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-25 02:52:05 +00:00

small fix

This commit is contained in:
flb 2021-06-28 22:20:12 +02:00
parent 69c831a901
commit 72ae144a79
2 changed files with 5 additions and 3 deletions

View file

@ -42,7 +42,7 @@
"gbatemp_dl_successful_dl": "Successfully downloaded the following cheat code:\n{}", "gbatemp_dl_successful_dl": "Successfully downloaded the following cheat code:\n{}",
"applet_mode_not_supported": "Due to memory constraints, in applet mode you may only fetch cheat codes for the game you're currently playing. Please launch aio-switch-updater through title redirection to download cheat codes for any game you own.", "applet_mode_not_supported": "Due to memory constraints, in applet mode you may only fetch cheat codes for the game you're currently playing. Please launch aio-switch-updater through title redirection to download cheat codes for any game you own.",
"cheatfile_label": "Here are the cheat codes listed in file {}", "cheatfile_label": "Here are the cheat codes listed in file {}",
"not_found": "Not proper cheat codes could be found for this game" "not_found": "No proper cheat codes could be found for this game"
}, },
"common": { "common": {
"downloading": "Downloading...", "downloading": "Downloading...",

View file

@ -325,9 +325,11 @@ void AppPage_DownloadedCheats::ShowCheatFiles(u64 tid, const std::string& name)
brls::TabFrame* appView = new brls::TabFrame(); brls::TabFrame* appView = new brls::TabFrame();
bool is_populated = false; bool is_populated = false;
if(std::filesystem::exists(path)) {
for(const auto& cheatFile : std::filesystem::directory_iterator(path)){ for(const auto& cheatFile : std::filesystem::directory_iterator(path)){
is_populated |= CreateCheatList(cheatFile.path(), &appView); is_populated |= CreateCheatList(cheatFile.path(), &appView);
} }
}
if(is_populated) { if(is_populated) {
brls::PopupFrame::open(name, appView, ""); brls::PopupFrame::open(name, appView, "");
} }