mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-04 08:39:05 +00:00
Simplify TitleKeysBin implementation to a simple function
This commit is contained in:
@@ -26,19 +26,9 @@ struct TitleKeysBinEntry {
|
||||
};
|
||||
static_assert(sizeof(TitleKeysBinEntry) == 32);
|
||||
|
||||
using TitleKeysMap = std::unordered_map<u64, TitleKeysBinEntry>;
|
||||
|
||||
// GM9 support files encTitleKeys.bin and decTitleKeys.bin.
|
||||
class TitleKeysBin {
|
||||
public:
|
||||
explicit TitleKeysBin(const std::string& path);
|
||||
~TitleKeysBin();
|
||||
|
||||
bool IsGood() const;
|
||||
|
||||
std::unordered_map<u64, TitleKeysBinEntry> entries;
|
||||
|
||||
private:
|
||||
bool Load(const std::string& path);
|
||||
bool is_good = false;
|
||||
};
|
||||
bool LoadTitleKeysBin(TitleKeysMap& out, const std::string& path);
|
||||
|
||||
} // namespace Core
|
||||
|
||||
Reference in New Issue
Block a user