mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-28 12:22:02 +00:00
Added tool to automatically copy files
This commit is contained in:
parent
3cf43a5445
commit
6e1fc77a0a
4 changed files with 10 additions and 10 deletions
|
@ -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"
|
||||
}
|
|
@ -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"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue