mirror of
https://github.com/pmret/papermario.git
synced 2024-09-20 00:11:48 +02:00
3315d6010f
* all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
84 lines
3.0 KiB
C
84 lines
3.0 KiB
C
#include "common.h"
|
|
|
|
s32 D_8014F150[] = { 0x00000003, 0x00000003, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x00000003, 0x00000015,
|
|
0x00000003, 0x00000000, 0x00000009, 0x00000003, 0x00000000, 0x00000001, 0x00000003, 0x00000009,
|
|
0x0000000A, 0x00000007, 0x00000008, 0x00000003, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x0000000B, 0x0000000C, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
|
|
};
|
|
|
|
s32 D_8014F250[] = { 0x00000800, 0x0000000C, 0x00000004, 0x08000001, 0x00080000, 0x04000864, 0x00040008, 0x00000200,
|
|
0x0800B802, 0x000800FF, 0x02000C00, 0xB804000C, 0x64000000, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000,
|
|
};
|
|
|
|
s32 D_8014F298[] = { 0x32506469, 0x64000000, };
|
|
|
|
s8 D_8014F2A0[] = { 0x01, 0x01, 0x01, 0x01, };
|
|
|
|
s8 D_8014F2A4[] = { 0x00, 0x00, 0x00, 0x00, };
|
|
|
|
s32 D_8014F2A8[] = { 0x69644D39, 0x281B1008, 0x03000000, };
|
|
|
|
s8 D_8014F2B4[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 };
|
|
|
|
s8 D_8014F2BD = 0;
|
|
|
|
s32 D_8014F2C0[] = { 0x003F0809, 0x162B2C3F, 0x00000000, 0x00000000, };
|
|
|
|
// this is definitely wrong but I had issues trying to use an array accessor
|
|
void clear_windows(void) {
|
|
UIPanel* panelIt = gUIPanels;
|
|
s32 i;
|
|
|
|
for (i = 0; i < ARRAY_COUNT(gUIPanels); i++, panelIt++) {
|
|
panelIt->flags = 0;
|
|
}
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", update_windows);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", basic_window_update);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", basic_hidden_window_update);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", main_menu_window_update);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", render_windows);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", render_window_root);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", set_window_properties);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", update_window_hierarchy);
|
|
|
|
void replace_window_update(s32 panelIndex, s8 arg1, s32 arg2) {
|
|
UIPanel* panels = gUIPanels;
|
|
|
|
if (panels[panelIndex].flags & 1) {
|
|
panels[panelIndex].flags |= 0xA;
|
|
panels[panelIndex].unk_08 = arg2;
|
|
panels[panelIndex].unk_02 = arg1;
|
|
}
|
|
}
|
|
|
|
void set_window_update(s32 panelIndex, s32 arg1) {
|
|
UIPanel* panels = gUIPanels;
|
|
|
|
if (panels[panelIndex].flags & 1) {
|
|
if (arg1 == panels[panelIndex].unk_04) {
|
|
panels[panelIndex].flags &= ~0x2;
|
|
} else {
|
|
panels[panelIndex].flags |= 0xA;
|
|
panels[panelIndex].unk_08 = arg1;
|
|
}
|
|
}
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", set_windows_visible);
|
|
|
|
INCLUDE_ASM(s32, "ddaf0_len_c50", setup_pause_menu_tab);
|