1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2025-01-01 12:16:02 +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 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 := 1.5.2 APP_VERSION := 1.5.3
TARGET := $(notdir $(CURDIR)) TARGET := $(notdir $(CURDIR))
ROMFS := resources ROMFS := resources

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,15 +5,10 @@
#include <switch.h> #include <switch.h>
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
#include <iostream>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <string.h>
#include <stdio.h>
#include <filesystem> #include <filesystem>
#include <iostream>
#include <fstream> #include <fstream>
#include <unistd.h>
#include <set> #include <set>
#include <unzipper.h> #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) { this->button2->getClickEvent()->subscribe([frame, this](View* view) {
std::cout << "rebootin" << std::endl;
reboot_to_payload(RCM_PAYLOAD_PATH); reboot_to_payload(RCM_PAYLOAD_PATH);
brls::Application::popView(); brls::Application::popView();
}); });

View file

@ -9,18 +9,6 @@
#include "constants.hpp" #include "constants.hpp"
#include "utils.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; namespace i18n = brls::i18n;
using namespace i18n::literals; using namespace i18n::literals;

View file

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