mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-24 10:32:03 +00:00
Fixed exclude page crashing (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/135)
This commit is contained in:
parent
752ca376c4
commit
8e34b5fbd3
2 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,6 +11,7 @@ switch/
|
||||||
*.bin
|
*.bin
|
||||||
*.nsp
|
*.nsp
|
||||||
*.psd
|
*.psd
|
||||||
|
*.bak
|
||||||
resources/i18n/zh-Hans
|
resources/i18n/zh-Hans
|
||||||
resources/i18n/zh-Hant
|
resources/i18n/zh-Hant
|
||||||
resources/i18n/en-GB
|
resources/i18n/en-GB
|
||||||
|
|
|
@ -235,16 +235,15 @@ void AppPage_Exclude::PopulatePage()
|
||||||
listItem->setThumbnail(controlData->icon, sizeof(controlData->icon));
|
listItem->setThumbnail(controlData->icon, sizeof(controlData->icon));
|
||||||
items.insert(std::make_pair(listItem, util::formatApplicationId(tid)));
|
items.insert(std::make_pair(listItem, util::formatApplicationId(tid)));
|
||||||
list->addView(listItem);
|
list->addView(listItem);
|
||||||
|
|
||||||
free(controlData);
|
|
||||||
}
|
}
|
||||||
delete[] records;
|
free(controlData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
label = new brls::Label(brls::LabelStyle::SMALL, "menus/common/applet_mode_not_supported"_i18n, true);
|
label = new brls::Label(brls::LabelStyle::SMALL, "menus/common/applet_mode_not_supported"_i18n, true);
|
||||||
list->addView(label);
|
list->addView(label);
|
||||||
}
|
}
|
||||||
|
delete[] records;
|
||||||
|
|
||||||
list->registerAction("menus/cheats/exclude_titles_save"_i18n, brls::Key::B, [this] {
|
list->registerAction("menus/cheats/exclude_titles_save"_i18n, brls::Key::B, [this] {
|
||||||
std::set<std::string> exclude;
|
std::set<std::string> exclude;
|
||||||
|
@ -298,4 +297,3 @@ void AppPage_DownloadedCheats::GetExistingCheatsTids() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue