#pragma once #include "constants.hpp" #include #include #include #include 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 getInstalledTitlesNs(); std::vector excludeTitles(const std::string& path, const std::vector& listedTitles); void writeTitlesToFile(const std::set& titles, const std::string& path); void extractCheats(const std::string& zipPath, std::vector titles, CFW cfw, bool credits = false); void extractAllCheats(const std::string& zipPath, CFW cfw); void removeCheats(); bool isBID(std::string bid); }