diff options
| author | AltoXorg <atrl101@yahoo.com> | 2024-04-29 22:33:32 +0800 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-05-13 23:06:52 -0600 |
| commit | e236c28bcef84598c7d3f4f97fc6006fdd13de68 (patch) | |
| tree | 2f241c03b13772420a0cc92f67bc3ed8dbb0fa5a | |
| parent | 4a9e2b9068e35d09f9e24fa5186bf9250e1fda75 (diff) | |
lazy fix F3DEX2 light parsing
| -rw-r--r-- | src/factories/DisplayListFactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp index b843cd4..970b128 100644 --- a/src/factories/DisplayListFactory.cpp +++ b/src/factories/DisplayListFactory.cpp @@ -449,7 +449,8 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint index = C0(0, 8); offset = C0(8, 8) * 8; - if(index == GBI(G_MV_LIGHT)) { + // same thing as above; see macro gSPLight at gbi.h + if(index == GBI(G_MV_LIGHT) && offset == (2 * 24 + 24)) { light = true; } break; |
