1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-08 11:31:43 +00:00

fixed broken extraction

This commit is contained in:
flb 2021-04-30 23:33:36 +02:00
parent b7e0e7a92a
commit beca53fbae
5 changed files with 12 additions and 8 deletions

View file

@ -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.4.8
APP_VERSION := 2.4.9
TARGET := $(notdir $(CURDIR))
ROMFS := resources

@ -1 +1 @@
Subproject commit 34baf7c8ccffef42c457215333bd2823910f0fc0
Subproject commit e08b6b7ee63a6238716aad3c5dc96860d1bf9c2c

View file

@ -142,6 +142,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
verTitles.push_back("v2.4.8");
changes.push_back("\uE016 Fixed crashes when trying to focus empty lists (typically when in airplane mode).");
verTitles.push_back("v2.4.9");
changes.push_back("\uE016 Fixed some read-only files not being properly extracted thus preventing updating.");
for(int i = verTitles.size() -1 ; i >= 0; i--){
listItem = new brls::ListItem(verTitles[i]);
change = changes[i];

View file

@ -58,7 +58,8 @@ void extract(const char * filename, const char* workingPath, int overwriteInis){
}
if(!isIgnored){
if(entries[i].name == "sept/payload.bin" || entries[i].name == "atmosphere/fusee-secondary.bin" || entries[i].name == "atmosphere/stratosphere.romfs"){
unzipper.extractEntry(entries[i].name, CONFIG_PATH_UNZIP);
std::ofstream readonlyFile(entries[i].name + ".aio");
unzipper.extractEntryToStream(entries[i].name, readonlyFile);
}
else {
unzipper.extractEntry(entries[i].name);

View file

@ -1,14 +1,15 @@
#include "list_download_tab.hpp"
#include <string>
#include <filesystem>
#include <fstream>
#include "utils.hpp"
#include "fs.hpp"
#include "download.hpp"
#include "extract.hpp"
#include "confirm_page.hpp"
#include "worker_page.hpp"
#include "current_cfw.hpp"
#include "utils.hpp"
#include "app_page.hpp"
#include <filesystem>
#include <fstream>
namespace i18n = brls::i18n;
using namespace i18n::literals;
@ -16,8 +17,7 @@ using namespace i18n::literals;
ListDownloadTab::ListDownloadTab(const archiveType type) :
brls::List()
{
std::vector<std::pair<std::string, std::string>> links;
std::vector<std::pair<std::string, std::string>> sxoslinks;
std::vector<std::pair<std::string, std::string>> links, sxoslinks;
std::string operation("menus/main/getting"_i18n);
std::string firmwareText("menus/main/firmware_text"_i18n);