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:
parent
20bea89c3c
commit
91cf2f00b9
10 changed files with 7 additions and 37 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <tuple>
|
||||
|
||||
#include <switch.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <tuple>
|
||||
|
||||
#include <switch.h>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue