diff options
| author | AltoXorg <atrl101@yahoo.com> | 2024-03-23 16:23:50 +0800 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-04-08 09:07:10 -0600 |
| commit | 9cee54e5624a69a3ed0ca95fb07dac83ea4cad72 (patch) | |
| tree | 824f9628db9ce79541cf6049e53e7ff2bb081d42 | |
| parent | c7cc333974d8497c76d82014468edab915a6942e (diff) | |
include F3DEX2
| -rw-r--r-- | src/factories/DisplayListFactory.cpp | 14 |
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] |
