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

some quick clean up

This commit is contained in:
flb 2021-02-01 17:01:49 +01:00
parent 20bea89c3c
commit 91cf2f00b9
10 changed files with 7 additions and 37 deletions

View file

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

View file

@ -5,7 +5,6 @@
#include <fstream>
#include <sstream>
#include <filesystem>
#include <iostream>
#include <tuple>
#include <switch.h>

View file

@ -5,7 +5,6 @@
#include <fstream>
#include <sstream>
#include <filesystem>
#include <iostream>
#include <tuple>
#include <switch.h>

View file

@ -2,11 +2,9 @@
#include <borealis.hpp>
#include <switch.h>
#include <cstring>
#include "utils.hpp"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <algorithm>
#include "worker_page.hpp"

View file

@ -3,18 +3,12 @@
#define ON 1
#define OFF 0
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <curl/curl.h>
#include <string>
#include <regex>
#include <iostream>
#include <switch.h>

View file

@ -2,11 +2,9 @@
#include <borealis.hpp>
#include <switch.h>
#include <cstring>
#include "utils.hpp"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <tuple>
#include <vector>
@ -22,7 +20,6 @@ class ExcludePage : public brls::AppletFrame
brls::ListItem* save;
std::vector<App*> apps;
std::set<std::string> titles;
//std::vector<brls::ToggleListItem*> items;
std::tuple<std::vector<brls::ToggleListItem*>, std::vector<std::string>> items;
public:

View file

@ -5,15 +5,10 @@
#include <switch.h>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string.h>
#include <stdio.h>
#include <filesystem>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <set>
#include <unzipper.h>

View file

@ -18,7 +18,6 @@ DialoguePage::DialoguePage(brls::StagedAppletFrame* frame, std::string text)
});
this->button2->getClickEvent()->subscribe([frame, this](View* view) {
std::cout << "rebootin" << std::endl;
reboot_to_payload(RCM_PAYLOAD_PATH);
brls::Application::popView();
});

View file

@ -8,18 +8,6 @@
#include "main_frame.hpp"
#include "constants.hpp"
#include "utils.hpp"
//#include <string.h>
//#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/errno.h>
#include <unistd.h>
#include <dirent.h>
#include <sstream>
#include <fstream>
namespace i18n = brls::i18n;
using namespace i18n::literals;

View file

@ -5,14 +5,15 @@ using namespace i18n::literals;
MainFrame::MainFrame() : TabFrame()
{
this->setIcon("romfs:/gui_icon.png");
this->setTitle(std::string(APP_TITLE));
std::string tag = getLatestTag(TAGS_INFO);
if(!tag.empty() && tag != APP_VERSION)
setTitle(std::string(APP_TITLE) + "menus/main_app"_i18n );
this->setFooterText("v" + std::string(APP_VERSION) + "menus/main_app"_i18n );
else
setTitle(std::string(APP_TITLE));
this->setIcon("romfs:/gui_icon.png");
this->setFooterText("v" + std::string(APP_VERSION));
this->setFooterText("v" + std::string(APP_VERSION));
this->addTab("menus/main_about"_i18n , new AboutTab());
//this->addSeparator();