From 6e1fc77a0a5581a507addb999a280bd34e83322f Mon Sep 17 00:00:00 2001 From: flb Date: Fri, 12 Feb 2021 23:42:22 +0100 Subject: [PATCH] Added tool to automatically copy files --- move_files.json | 2 +- resources/i18n/en-US/menus.json | 3 ++- source/changelog_page.cpp | 3 +++ source/utils.cpp | 12 ++++-------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/move_files.json b/move_files.json index 515f170..ce1405c 100644 --- a/move_files.json +++ b/move_files.json @@ -1,4 +1,4 @@ { - /* "source/path/to/file": "/destination/path/to/file", */ + "/source/path/to/file": "/destination/path/to/file", "/atmosphere/reboot_payload.bin": "/bootloader/payloads/payload.bin" } \ No newline at end of file diff --git a/resources/i18n/en-US/menus.json b/resources/i18n/en-US/menus.json index e1842fe..e9e377d 100644 --- a/resources/i18n/en-US/menus.json +++ b/resources/i18n/en-US/menus.json @@ -73,6 +73,7 @@ "v2_1_2_text": "\uE016 Fixed wronge hekate link.", "v2_2_0_text": "\uE016 For cheatslips.com, the build ID of a running game will now be fetched, allowing you to access cheatsheets even if the build ID isn't listed in the versions database.", "v2_2_1_text": "\uE016 Fixed non Atmosphere CFW being wrongly categorised as ams.", + "v2_3_0_text": "\uE016 Added possibility to copy a list of files to custom locations. This may come in handy for trinket/esoteric bootloader users.", "Ok_button": "Ok", "cheats_page.cpp":"", @@ -233,7 +234,7 @@ "tool_copyFiles": "Batch copy files", "files_not_found": "The following files were not found and couldn't be copied:\n", - "move_files_not_found": "" + "move_files_not_found": "This tools allows you to copy files to other locations, which may be needed for your bootloader/trinket. Grab move_files.json at 'https://git.io/aiosu_move_files' and add it to your config folder" diff --git a/source/changelog_page.cpp b/source/changelog_page.cpp index d5c63c5..ebb14d9 100644 --- a/source/changelog_page.cpp +++ b/source/changelog_page.cpp @@ -100,6 +100,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true) verTitles.push_back("v2.2.1"); changes.push_back("menus/v2_2_1_text"_i18n ); + verTitles.push_back("v2.3.0"); + changes.push_back("menus/v2_3_0_text"_i18n ); + int nbVersions = verTitles.size(); diff --git a/source/utils.cpp b/source/utils.cpp index b097a6f..96ad35e 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -63,8 +63,7 @@ void downloadArchive(std::string url, archiveType type){ downloadFile(url.c_str(), FIRMWARE_FILENAME, OFF); } else{ - showDialogBox("menus/utils_because"_i18n , "menus/utils_ok"_i18n ); - brls::Application::popView(); + brls::Application::crash("menus/utils_because"_i18n); } break; case app: @@ -145,8 +144,7 @@ void extractArchive(archiveType type, std::string tag){ } } else{ - showDialogBox("menus/utils_the"_i18n , "menus/utils_ok"_i18n ); - brls::Application::pushView(new MainFrame()); + brls::Application::crash("menus/utils_the"_i18n); } break; case cheats: @@ -156,8 +154,7 @@ void extractArchive(archiveType type, std::string tag){ break; case fw: if(std::filesystem::file_size(FIRMWARE_FILENAME) < 200000){ - showDialogBox("menus/utils_the_downloaded"_i18n , "menus/utils_ok"_i18n ); - brls::Application::pushView(new MainFrame()); + brls::Application::crash("menus/utils_the_downloaded"_i18n); } else{ if (std::filesystem::exists(FIRMWARE_PATH)) std::filesystem::remove_all(FIRMWARE_PATH); @@ -178,8 +175,7 @@ void extractArchive(archiveType type, std::string tag){ extract(CFW_FILENAME, ROOT_PATH, overwriteInis); } else{ - showDialogBox("menus/ultis_file"_i18n , "menus/utils_ok"_i18n ); - brls::Application::pushView(new MainFrame()); + brls::Application::crash("menus/ultis_file"_i18n); } break; case ams_cfw: