Skip to content

Commit

Permalink
add grayscale stuff to dlist xml parsing (#309)
Browse files Browse the repository at this point in the history
Co-authored-by: briaguya <briaguya@alice>
  • Loading branch information
briaguya-ai and briaguya authored Jun 8, 2023
1 parent a4dc7bf commit 22bd2a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resource/factory/DisplayListFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 22bd2a0

Please sign in to comment.