summaryrefslogtreecommitdiff
path: root/games-emulation/pcsx2/files/pcsx2-1.7.3602-rapidyaml-0.5.0.patch
blob: b3185b47006e0d28ce50d337d81e3b7f7a40deac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Quick fix taken from Alpine, fixes >=0.5.0 but breaks <0.5.0

Upstream seem to have no intention to acknowledge this as an issue
until they bump their bundled copy of rapidyaml:
https://github.com/PCSX2/pcsx2/issues/7623#issuecomment-1357048378
--- a/pcsx2/GameDatabase.cpp
+++ b/pcsx2/GameDatabase.cpp
@@ -151,5 +151,5 @@
 	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;
@@ -182,5 +182,5 @@
 	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;
@@ -212,5 +212,5 @@
 	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());
@@ -233,5 +233,5 @@
 	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);
@@ -243,5 +243,5 @@
 	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