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,7 +664,9 @@ void load(const std::filesystem::path& path) {
|
|||||||
|
|
||||||
if (data.contains("Keys")) {
|
if (data.contains("Keys")) {
|
||||||
const toml::value& keys = data.at("Keys");
|
const toml::value& keys = data.at("Keys");
|
||||||
trophyKey = toml::find<std::vector<u8>>(keys, "TrophyKey");
|
if (keys.contains("TrophyKey") && keys.at("TrophyKey").is_array()) {
|
||||||
|
trophyKey = toml::find<std::vector<u8>>(keys, "TrophyKey");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user