feat: add PALETTE_CONTEXT_MAP_COLOR and DISPLAYGFX_VTABLE addresses
Browse files
crates/openwa-core/src/address.rs
CHANGED
|
@@ -191,6 +191,8 @@ pub mod va {
|
|
| 191 |
fn/Usercall LOAD_SPRITE_FROM_VFS = 0x004F_AAF0;
|
| 192 |
/// ProcessSprite — parses .spr binary format
|
| 193 |
fn/Usercall PROCESS_SPRITE = 0x004F_AB80;
|
|
|
|
|
|
|
| 194 |
}
|
| 195 |
|
| 196 |
class "GfxHandler" {
|
|
@@ -454,6 +456,8 @@ pub mod va {
|
|
| 454 |
fn GFX_RESOURCE_CREATE = 0x004F_6300;
|
| 455 |
/// PaletteContext__Init
|
| 456 |
fn/Usercall PALETTE_CONTEXT_INIT = 0x0054_11A0;
|
|
|
|
|
|
|
| 457 |
/// SpriteGfxTable__Init
|
| 458 |
fn/Fastcall SPRITE_GFX_TABLE_INIT = 0x0054_1620;
|
| 459 |
/// RingBuffer__Init
|
|
|
|
| 191 |
fn/Usercall LOAD_SPRITE_FROM_VFS = 0x004F_AAF0;
|
| 192 |
/// ProcessSprite — parses .spr binary format
|
| 193 |
fn/Usercall PROCESS_SPRITE = 0x004F_AB80;
|
| 194 |
+
/// DisplayGfx vtable (embedded in Sprite at +0x34)
|
| 195 |
+
vtable DISPLAYGFX_VTABLE = 0x0066_4144;
|
| 196 |
}
|
| 197 |
|
| 198 |
class "GfxHandler" {
|
|
|
|
| 456 |
fn GFX_RESOURCE_CREATE = 0x004F_6300;
|
| 457 |
/// PaletteContext__Init
|
| 458 |
fn/Usercall PALETTE_CONTEXT_INIT = 0x0054_11A0;
|
| 459 |
+
/// PaletteContext__MapColor — thiscall(palette_ctx, rgb_u32), returns nearest palette index
|
| 460 |
+
fn/Thiscall PALETTE_CONTEXT_MAP_COLOR = 0x0054_12B0;
|
| 461 |
/// SpriteGfxTable__Init
|
| 462 |
fn/Fastcall SPRITE_GFX_TABLE_INIT = 0x0054_1620;
|
| 463 |
/// RingBuffer__Init
|