#pragma once #include #include #include #include #include #include "constants.hpp" 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, std::function func = []() { return; }); 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& archivePath, const std::vector& titles, CFW cfw, const std::string& version, bool extractAll = false); void extractAllCheats(const std::string& archivePath, CFW cfw, const std::string& version); void removeCheats(); void removeOrphanedCheats(); bool removeCheatsDirectory(const std::string& entry); bool isBID(const std::string& bid); } // namespace extract