diff options
| author | coco875 <pereira.jannin@gmail.com> | 2025-11-29 02:03:25 +0100 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-12-01 12:39:42 -0600 |
| commit | 699095bd995b4202e1bc88cc0690898a49228f57 (patch) | |
| tree | 0cdaffcce805e3116f489d84f929b8bb695d3586 | |
| parent | 6bfc42209ec1c18d1255e0a31c9e5d9d9c235232 (diff) | |
tweak some coment
| -rw-r--r-- | src/factories/mk64/PackedDisplayListFactory.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/factories/mk64/PackedDisplayListFactory.cpp b/src/factories/mk64/PackedDisplayListFactory.cpp index cfb48f2..d797f69 100644 --- a/src/factories/mk64/PackedDisplayListFactory.cpp +++ b/src/factories/mk64/PackedDisplayListFactory.cpp @@ -625,7 +625,7 @@ std::optional<std::shared_ptr<IParsedData>> PackedDListFactory::parse(std::vecto case PG_TILECFG_E: case PG_TILECFG_F: case PG_TILECFG_G: { - // Mirror de unpack_tile_sync + // Mirror of unpack_tile_sync if (i + 2 > decoded.size()) { goto done; } int width = 32, height = 32, fmt = 0, tmem = 0; switch (op) { @@ -672,7 +672,7 @@ std::optional<std::shared_ptr<IParsedData>> PackedDListFactory::parse(std::vecto case PG_TIMG_LOADBLOCK_3: case PG_TIMG_LOADBLOCK_4: case PG_TIMG_LOADBLOCK_5: { - // Mirror de unpack_tile_load_sync + // Mirror of unpack_tile_load_sync if (i + 3 > decoded.size()) { goto done; } uint32_t width = 32, height = 32, fmt = 0; switch (op) { @@ -691,8 +691,6 @@ std::optional<std::shared_ptr<IParsedData>> PackedDListFactory::parse(std::vecto const uint32_t tmem = (arg & 0x0F); const uint32_t tile = ((arg >> 4) & 0x0F); - // G_SETTIMG (on garde un pointeur brut = offset; l'exporteur patchera en OTR) - // Utiliser width=1 par défaut pour le champ "width-1" du w0 // uint32_t w0 = (_SHIFTL(G_SETTIMG, 24, 8) | _SHIFTL(fmt, 21, 3) | _SHIFTL(siz, 19, 2)); N64Gfx macro = gsDPSetTextureImage(fmt, siz, 1, 0x05000000 | offset); @@ -747,7 +745,6 @@ std::optional<std::shared_ptr<IParsedData>> PackedDListFactory::parse(std::vecto emit(macro.words.w0, macro.words.w1); } break; case PG_SETCOMBINE_ALT: { - // Alias historique → même que MODULATERGBDECALA côté runtime N64Gfx macro = gsDPSetCombineMode(G_CC_MODULATERGBDECALA, G_CC_MODULATERGBDECALA); emit(macro.words.w0, macro.words.w1); } break; |
