mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-09 12:01:44 +00:00
4688d62541
When needed, issue a warning about custom themes after downloading a new firmware. (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/109 and https://github.com/HamletDuFromage/aio-switch-updater/issues/84) Abort AMS update process for Mariko Switches when payload.bin cannot be found. (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/110)
35 lines
No EOL
1.1 KiB
C++
35 lines
No EOL
1.1 KiB
C++
#pragma once
|
|
|
|
#include "constants.hpp"
|
|
#include <switch.h>
|
|
#include <set>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace extract {
|
|
|
|
static constexpr u32 MaxTitleCount = 64000;
|
|
|
|
typedef struct Title {
|
|
std::string id;
|
|
std::string name;
|
|
bool operator ==(const Title&x) const {
|
|
return id == x.id;
|
|
}
|
|
|
|
bool operator <(const Title&x) const {
|
|
return id < x.id;
|
|
}
|
|
} Title;
|
|
|
|
void extract(const std::string& filename, const std::string& workingPath = ROOT_PATH, int overwriteInis = 1);
|
|
void extract(const std::string& filename, const std::string& workingPath, const std::string& toExclude);
|
|
std::vector<std::string> getInstalledTitlesNs();
|
|
std::vector<std::string> excludeTitles(const std::string& path, const std::vector<std::string>& listedTitles);
|
|
void writeTitlesToFile(const std::set<std::string>& titles, const std::string& path);
|
|
void extractCheats(const std::string& zipPath, std::vector<std::string> titles, CFW cfw, bool credits = false);
|
|
void extractAllCheats(const std::string& zipPath, CFW cfw);
|
|
void removeCheats();
|
|
bool isBID(std::string bid);
|
|
|
|
} |