Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tohur
pcsx2-git
pcsx2_rapidyaml-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pcsx2_rapidyaml-fix.patch of Package pcsx2-git
diff --git a/pcsx2/GameDatabase.cpp b/pcsx2/GameDatabase.cpp index 0fcc0d8..d55cfc3 100644 --- a/pcsx2/GameDatabase.cpp +++ b/pcsx2/GameDatabase.cpp @@ -176,7 +176,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: // Validate game fixes, invalid ones will be dropped! if (node.has_child("gameFixes") && node["gameFixes"].has_children()) { - for (const ryml::NodeRef& n : node["gameFixes"].children()) + for (const ryml::ConstNodeRef& n : node["gameFixes"].children()) { bool fixValidated = false; auto fix = std::string(n.val().str, n.val().len); @@ -207,7 +207,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: // Validate speed hacks, invalid ones will be dropped! if (node.has_child("speedHacks") && node["speedHacks"].has_children()) { - for (const ryml::NodeRef& n : node["speedHacks"].children()) + for (const ryml::ConstNodeRef& n : node["speedHacks"].children()) { bool speedHackValidated = false; auto speedHack = std::string(n.key().str, n.key().len); @@ -237,7 +237,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: if (node.has_child("gsHWFixes")) { - for (const ryml::NodeRef& n : node["gsHWFixes"].children()) + for (const ryml::ConstNodeRef& n : node["gsHWFixes"].children()) { const std::string_view id_name(n.key().data(), n.key().size()); std::optional<GameDatabaseSchema::GSHWFixId> id = GameDatabaseSchema::parseHWFixName(id_name); @@ -274,7 +274,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: // - currently they are used as a '\n' delimited string in the app if (node.has_child("memcardFilters") && node["memcardFilters"].has_children()) { - for (const ryml::NodeRef& n : node["memcardFilters"].children()) + for (const ryml::ConstNodeRef& n : node["memcardFilters"].children()) { auto memcardFilter = std::string(n.val().str, n.val().len); gameEntry.memcardFilters.emplace_back(std::move(memcardFilter)); @@ -284,7 +284,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: // Game Patches if (node.has_child("patches") && node["patches"].has_children()) { - for (const ryml::NodeRef& n : node["patches"].children()) + for (const ryml::ConstNodeRef& n : node["patches"].children()) { // use a crc of 0 for default patches const std::string_view crc_str(n.key().str, n.key().len); @@ -309,13 +309,13 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: if (node.has_child("dynaPatches") && node["dynaPatches"].has_children()) { - for (const ryml::NodeRef& n : node["dynaPatches"].children()) + for (const ryml::ConstNodeRef& n : node["dynaPatches"].children()) { DynamicPatch patch; if (n.has_child("pattern") && n["pattern"].has_children()) { - for (const ryml::NodeRef& db_pattern : n["pattern"].children()) + for (const ryml::ConstNodeRef& db_pattern : n["pattern"].children()) { DynamicPatchEntry entry; db_pattern["offset"] >> entry.offset; @@ -323,7 +323,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml: patch.pattern.push_back(entry); } - for (const ryml::NodeRef& db_replacement : n["replacement"].children()) + for (const ryml::ConstNodeRef& db_replacement : n["replacement"].children()) { DynamicPatchEntry entry; db_replacement["offset"] >> entry.offset;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor