summaryrefslogtreecommitdiff
path: root/src/factories/DisplayListFactory.cpp
diff options
context:
space:
mode:
authorAltoXorg <atrl101@yahoo.com>2024-03-23 16:23:50 +0800
committerLywx <kiritodev01@gmail.com>2024-04-08 09:07:10 -0600
commit9cee54e5624a69a3ed0ca95fb07dac83ea4cad72 (patch)
tree824f9628db9ce79541cf6049e53e7ff2bb081d42 /src/factories/DisplayListFactory.cpp
parentc7cc333974d8497c76d82014468edab915a6942e (diff)
include F3DEX2
Diffstat (limited to 'src/factories/DisplayListFactory.cpp')
-rw-r--r--src/factories/DisplayListFactory.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp
index 965645e..82f8f55 100644
--- a/src/factories/DisplayListFactory.cpp
+++ b/src/factories/DisplayListFactory.cpp
@@ -37,9 +37,23 @@ std::unordered_map<std::string, uint8_t> gF3DExTable = {
{ "G_QUAD", 0xB5 }
};
+std::unordered_map<std::string, uint8_t> gF3DEx2Table = {
+ { "G_VTX", 0x01 },
+ { "G_DL", 0xDE },
+ { "G_ENDDL", 0xDF },
+ { "G_SETTIMG", 0xFD },
+ { "G_MOVEMEM", 0xDC },
+ { "G_MV_L0", 0x86 },
+ { "G_MV_L1", 0x88 },
+ { "G_MV_LIGHT", 0xA },
+ { "G_TRI2", 0x06 },
+ { "G_QUAD", 0x07 }
+};
+
std::unordered_map<GBIVersion, std::unordered_map<std::string, uint8_t>> gGBITable = {
{ GBIVersion::f3d, gF3DTable },
{ GBIVersion::f3dex, gF3DExTable },
+ { GBIVersion::f3dex2, gF3DEx2Table },
};
#define GBI(cmd) gGBITable[Companion::Instance->GetGBIVersion()][#cmd]