Add some level commands to make porting HackerSM64 levels easier
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run

This commit is contained in:
Agent X 2025-04-14 19:25:05 -04:00
parent 467b22e939
commit 0cb0b41c07
2 changed files with 14 additions and 0 deletions

View file

@ -672,8 +672,10 @@ static void ParseLevelScriptSymbol(GfxData* aGfxData, DataNode<LevelScript>* aNo
lvl_symbol_3(FIXED_LOAD, 1, 2, 3);
lvl_symbol_noop_3(LOAD_RAW);
lvl_symbol_noop_3(LOAD_MIO0);
lvl_symbol_noop_3(LOAD_YAY0);
lvl_symbol_1(LOAD_MARIO_HEAD, 0);
lvl_symbol_noop_3(LOAD_MIO0_TEXTURE);
lvl_symbol_noop_3(LOAD_YAY0_TEXTURE);
// levels
lvl_symbol_0(INIT_LEVEL);

View file

@ -134,6 +134,12 @@
CMD_PTR(NULL), \
CMD_PTR(NULL)
// same as LOAD_MIO0, neither do anything
#define LOAD_YAY0(seg, romStart, romEnd) \
CMD_BBH(0x18, 0x0C, 0x0000), \
CMD_PTR(NULL), \
CMD_PTR(NULL)
#define LOAD_MARIO_HEAD(sethead) \
CMD_BBH(0x19, 0x04, sethead)
@ -142,6 +148,12 @@
CMD_PTR(NULL), \
CMD_PTR(NULL)
// same as LOAD_MIO0_TEXTURE, neither do anything
#define LOAD_YAY0_TEXTURE(seg, romStart, romEnd) \
CMD_BBH(0x1A, 0x0C, 0x0000), \
CMD_PTR(NULL), \
CMD_PTR(NULL)
#define INIT_LEVEL() \
CMD_BBH(0x1B, 0x04, 0x0000)