From 22bd2a04ed45c9807d71908e08462542f89f7ed3 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Wed, 7 Jun 2023 22:05:09 -0400 Subject: [PATCH] add grayscale stuff to dlist xml parsing (#309) Co-authored-by: briaguya --- src/resource/factory/DisplayListFactory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resource/factory/DisplayListFactory.cpp b/src/resource/factory/DisplayListFactory.cpp index c0e541a70..e731fff3b 100644 --- a/src/resource/factory/DisplayListFactory.cpp +++ b/src/resource/factory/DisplayListFactory.cpp @@ -160,6 +160,11 @@ void DisplayListFactoryV0::ParseFileXML(tinyxml2::XMLElement* reader, std::share } else if (childName == "SetEnvColor") { g = gsDPSetEnvColor(child->IntAttribute("R"), child->IntAttribute("G"), child->IntAttribute("B"), child->IntAttribute("A")); + } else if (childName == "Grayscale") { + g = gsSPGrayscale(child->BoolAttribute("Enabled")); + } else if (childName == "SetGrayscaleColor") { + g = gsDPSetGrayscaleColor(child->IntAttribute("R"), child->IntAttribute("G"), child->IntAttribute("B"), + child->IntAttribute("A")); } else if (childName == "SetDepthSource") { g = gsDPSetDepthSource(child->IntAttribute("Mode")); } else if (childName == "SetAlphaCompare") {