Skip to content

Commit

Permalink
add clearMtx address for pal gc mq and pal1.0 support (#337)
Browse files Browse the repository at this point in the history
* add clearMtx address for pal gc mq support

* add clearMtx address for pal1.0 support
  • Loading branch information
Archez authored Sep 13, 2023
1 parent 3f3f29f commit 8a4c70a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/graphic/Fast3D/gfx_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2508,8 +2508,13 @@ static void gfx_run_dl(Gfx* cmd) {
case G_MTX: {
uintptr_t mtxAddr = cmd->words.w1;

if (mtxAddr == SEG_ADDR(0, 0x12DB20) || mtxAddr == SEG_ADDR(0, 0x12DB40) ||
mtxAddr == SEG_ADDR(0, 0xFBC20) || mtxAddr == SEG_ADDR(0, 0xFCD40)) {
if (mtxAddr == SEG_ADDR(0, 0x12DB20) || // GC MQ D
mtxAddr == SEG_ADDR(0, 0x12DB40) || // GC NMQ D
mtxAddr == SEG_ADDR(0, 0xFBC20) || // GC PAL
mtxAddr == SEG_ADDR(0, 0xFBC01) || // GC MQ PAL
mtxAddr == SEG_ADDR(0, 0xFCD00) || // PAL1.0
mtxAddr == SEG_ADDR(0, 0xFCD40) // PAL1.1
) {
mtxAddr = clearMtx;
}

Expand Down

0 comments on commit 8a4c70a

Please sign in to comment.