1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-25 02:52:05 +00:00

uncommented copy code

This commit is contained in:
flb 2021-02-16 19:47:58 +01:00
parent 4fa5e44f73
commit 4574589dc6
4 changed files with 6 additions and 5 deletions

View file

@ -22,7 +22,7 @@ DATA := data
INCLUDES := include lib/zipper/include INCLUDES := include lib/zipper/include
APP_TITLE := All-in-One Switch Updater APP_TITLE := All-in-One Switch Updater
APP_AUTHOR := HamletDuFromage APP_AUTHOR := HamletDuFromage
APP_VERSION := 2.3.1 APP_VERSION := 2.3.2
TARGET := $(notdir $(CURDIR)) TARGET := $(notdir $(CURDIR))
ROMFS := resources ROMFS := resources

View file

@ -75,6 +75,7 @@
"v2_2_1_text": "\uE016 Fixed non Atmosphere CFW being wrongly categorised as ams.", "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.\n\uE016 Added warning screen on launch.\n\uE016 Few UI tweaks.\n\uE016 Traditional Chinese translation updated (qazrfv1234)", "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.\n\uE016 Added warning screen on launch.\n\uE016 Few UI tweaks.\n\uE016 Traditional Chinese translation updated (qazrfv1234)",
"v2_3_1_text": "\uE016 Files for batch copy are now copied according to the json order (formerly alphabetical order).", "v2_3_1_text": "\uE016 Files for batch copy are now copied according to the json order (formerly alphabetical order).",
"v2_3_2_text": "\uE016 Fixed batch copy not copying :^)",
"Ok_button": "Ok", "Ok_button": "Ok",
"cheats_page.cpp":"", "cheats_page.cpp":"",

View file

@ -106,7 +106,8 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
verTitles.push_back("v2.3.1"); verTitles.push_back("v2.3.1");
changes.push_back("menus/v2_3_1_text"_i18n ); changes.push_back("menus/v2_3_1_text"_i18n );
verTitles.push_back("v2.3.2");
changes.push_back("menus/v2_3_1_text"_i18n );
int nbVersions = verTitles.size(); int nbVersions = verTitles.size();
items.reserve(nbVersions); items.reserve(nbVersions);

View file

@ -8,7 +8,6 @@
#include "main_frame.hpp" #include "main_frame.hpp"
#include <filesystem> #include <filesystem>
#include <fstream> #include <fstream>
#include <iostream>
namespace i18n = brls::i18n; namespace i18n = brls::i18n;
using namespace i18n::literals; using namespace i18n::literals;
@ -374,8 +373,8 @@ std::string copyFiles(const char* path) {
for (auto it = toMove.begin(); it != toMove.end(); ++it) { for (auto it = toMove.begin(); it != toMove.end(); ++it) {
if(std::filesystem::exists(it.key())) { if(std::filesystem::exists(it.key())) {
createTree(std::string(std::filesystem::path(it.value().get<std::string>()).parent_path()) + "/"); createTree(std::string(std::filesystem::path(it.value().get<std::string>()).parent_path()) + "/");
//cp(it.key().c_str(), it.value().get<std::string>().c_str()); cp(it.key().c_str(), it.value().get<std::string>().c_str());
std::cout << it.key() << it.value().get<std::string>() << std::endl; //std::cout << it.key() << it.value().get<std::string>() << std::endl;
} }
else { else {
error += it.key() + "\n"; error += it.key() + "\n";