mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-08 19:41:49 +00:00
30 lines
No EOL
968 B
C++
30 lines
No EOL
968 B
C++
#pragma once
|
|
|
|
#include "constants.hpp"
|
|
#include <switch.h>
|
|
#include <set>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
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 char* filename, const char* workingPath = ROOT_PATH, int overwriteInis = 1);
|
|
void extract(const char * filename, const char* workingPath, const char* toExclude);
|
|
std::string formatApplicationId(u64 ApplicationId);
|
|
std::vector<std::string> getInstalledTitlesNs();
|
|
std::vector<std::string> excludeTitles(const char* path, std::vector<std::string> listedTitles);
|
|
void writeTitlesToFile(std::set<std::string> titles, const char* path);
|
|
void extractCheats(const char * zipPath, std::vector<std::string> titles, CFW cfw, bool credits = false);
|
|
void removeCheats(CFW cfw); |