mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 17:32:40 +00:00
more sanity checks
This commit is contained in:
parent
0cc5808bf4
commit
827214b237
@ -664,9 +664,11 @@ void load(const std::filesystem::path& path) {
|
||||
|
||||
if (data.contains("Keys")) {
|
||||
const toml::value& keys = data.at("Keys");
|
||||
if (keys.contains("TrophyKey") && keys.at("TrophyKey").is_array()) {
|
||||
trophyKey = toml::find<std::vector<u8>>(keys, "TrophyKey");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void save(const std::filesystem::path& path) {
|
||||
toml::value data;
|
||||
|
Loading…
Reference in New Issue
Block a user