mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
patch manager: hotfix for legacy patches
Assignment of invalid YAML nodes is not possible after all
This commit is contained in:
parent
b9cb181691
commit
22b1cc765a
@ -262,9 +262,14 @@ void patch_engine::add_patch_data(YAML::Node node, patch_info& info, u32 modifie
|
||||
if (const auto yml_type = addr_node.Type(); yml_type == YAML::NodeType::Scalar)
|
||||
{
|
||||
const auto anchor = addr_node.Scalar();
|
||||
patch_log.warning("Incorrect anchor syntax found in legacy patch: %s (key: %s)", anchor, info.hash);
|
||||
const auto anchor_node = root[anchor];
|
||||
|
||||
if (!(addr_node = root[anchor]))
|
||||
if (anchor_node)
|
||||
{
|
||||
addr_node = anchor_node;
|
||||
patch_log.warning("Incorrect anchor syntax found in legacy patch: %s (key: %s)", anchor, info.hash);
|
||||
}
|
||||
else
|
||||
{
|
||||
patch_log.error("Anchor not found in legacy patch: %s (key: %s)", anchor, info.hash);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user