From 4fa5e44f7340912732b54d6e3a67bfa5f0481848 Mon Sep 17 00:00:00 2001 From: flb Date: Tue, 16 Feb 2021 18:03:14 +0100 Subject: [PATCH] small tweaks --- aiosu-forwarder/source/main.cpp | 5 ++++- source/download_cheats_page.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/aiosu-forwarder/source/main.cpp b/aiosu-forwarder/source/main.cpp index dd07538..9fedc17 100644 --- a/aiosu-forwarder/source/main.cpp +++ b/aiosu-forwarder/source/main.cpp @@ -8,6 +8,8 @@ #define CONFIG_PATH "/config/aio-switch-updater/switch/aio-switch-updater/aio-switch-updater.nro" #define PREFIX "/switch/aio-switch-updater/aio-switch-updater-v" #define FORWARDER_PATH "/config/aio-switch-updater/aiosu-forwarder.nro" +#define CONFIG_SWITCH "/config/aio-switch-updater/switch/" +#define HIDDEN_FILE "/config/aio-switch-updater/.aio-switch-updater" int removeDir(const char* path) { @@ -28,12 +30,13 @@ int main(int argc, char* argv[]) std::filesystem::remove(entry.path().string() + ".star"); } } + std::filesystem::remove(HIDDEN_FILE); if(std::filesystem::exists(CONFIG_PATH)){ std::filesystem::create_directory(PATH); std::filesystem::remove(FULL_PATH); std::filesystem::rename(CONFIG_PATH, FULL_PATH); - removeDir("/config/aio-switch-updater/switch/"); + removeDir(CONFIG_SWITCH); } std::filesystem::remove(FORWARDER_PATH); diff --git a/source/download_cheats_page.cpp b/source/download_cheats_page.cpp index 26d3ea8..c9892f1 100644 --- a/source/download_cheats_page.cpp +++ b/source/download_cheats_page.cpp @@ -34,7 +34,7 @@ DownloadCheatsPage::DownloadCheatsPage(uint64_t tid) : AppletFrame(true, true) if(cheatsInfo.find("cheats") != cheatsInfo.end()) { for (const auto& p : cheatsInfo["cheats"].items()) { json cheat = p.value(); - listItem = new::brls::ToggleListItem(GetCheatsTitle(cheat), 0); + listItem = new::brls::ToggleListItem(GetCheatsTitle(cheat), 0, "", "\uE016", "o"); listItem->registerAction("menus/see_more"_i18n , brls::Key::Y, [this, cheat] { if(cheat.find("titles") != cheat.end()) { ShowCheatsContent(cheat["titles"]);