From 75f4ad009cb2b7f8e2f31fd79a4d34e643bbe318 Mon Sep 17 00:00:00 2001 From: flb Date: Sun, 22 May 2022 15:39:26 +0200 Subject: [PATCH] fixed crash in appletmode --- Makefile | 2 +- source/app_page.cpp | 2 ++ source/changelog_page.cpp | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b0dc0e7..cc1aed6 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ DATA := data INCLUDES := include lib/zipper/include /lib/borealis/library/include/borealis/extern/nlohmann APP_TITLE := All-in-One Switch Updater APP_AUTHOR := HamletDuFromage -APP_VERSION := 2.19.0 +APP_VERSION := 2.19.1 TARGET := $(notdir $(CURDIR)) ROMFS := resources diff --git a/source/app_page.cpp b/source/app_page.cpp index 9f4d801..233acb1 100644 --- a/source/app_page.cpp +++ b/source/app_page.cpp @@ -57,6 +57,8 @@ void AppPage::PopulatePage() else { tid = GetCurrentApplicationId(); if (R_SUCCEEDED(InitControlData(&controlData)) && R_SUCCEEDED(GetControlData(tid & 0xFFFFFFFFFFFFF000, controlData, controlSize, name))) { + listItem = new brls::ListItem(name, "", util::formatApplicationId(tid)); + listItem->setThumbnail(controlData->icon, sizeof(controlData->icon)); this->AddListItem(name, tid); } label = new brls::Label(brls::LabelStyle::SMALL, "menus/common/applet_mode_not_supported"_i18n, true); diff --git a/source/changelog_page.cpp b/source/changelog_page.cpp index 1728fd6..61eadb4 100644 --- a/source/changelog_page.cpp +++ b/source/changelog_page.cpp @@ -240,6 +240,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true) verTitles.push_back("v2.19.0"); changes.push_back("\uE016 Added ability to view games with missing updates.\n\uE016 Updated Japanese localisation (https://github.com/yyoossk).\n\uE016 Updated Chinese localisation (https://github.com/Physton)."); + verTitles.push_back("v2.19.1"); + changes.push_back("\uE016 Fixed crash when trying to download cheats in applet mode.\n\uE016 Updated Japanese localisation (https://github.com/yyoossk).\n\uE016 Updated Chinese localisation (https://github.com/qazrfv1234)."); + for (int i = verTitles.size() - 1; i >= 0; i--) { listItem = new brls::ListItem(verTitles[i]);