1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-10 04:21:44 +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{}",
"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 {}",
"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": {
"downloading": "Downloading...",

View file

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