nso: Optimize loading of IPS patches

Avoid resource-heavy classes and remove quasi-duplicated code.
This commit is contained in:
Zach Hilman
2018-10-02 17:03:34 -04:00
parent 6d441828e6
commit 215b65fe75
5 changed files with 43 additions and 51 deletions

View File

@ -50,7 +50,7 @@ public:
// Returns a vector of pairs between patch names and patch versions.
// i.e. Update 3.2.2 will return {"Update", "3.2.2"}
std::map<std::string, std::string> GetPatchVersionNames() const;
std::map<std::string, std::string, std::less<>> GetPatchVersionNames() const;
// Given title_id of the program, attempts to get the control data of the update and parse it,
// falling back to the base control data.