mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
SyncStatusMenu and another
This commit is contained in:
parent
97f1f96662
commit
8a95d84a82
@ -1,12 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel func_8024137C_C9F29C
|
|
||||||
/* C9F29C 8024137C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* C9F2A0 80241380 AFBF0010 */ sw $ra, 0x10($sp)
|
|
||||||
/* C9F2A4 80241384 0C03A6DB */ jal sync_status_menu
|
|
||||||
/* C9F2A8 80241388 00000000 */ nop
|
|
||||||
/* C9F2AC 8024138C 8FBF0010 */ lw $ra, 0x10($sp)
|
|
||||||
/* C9F2B0 80241390 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* C9F2B4 80241394 03E00008 */ jr $ra
|
|
||||||
/* C9F2B8 80241398 27BD0018 */ addiu $sp, $sp, 0x18
|
|
@ -1,12 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel func_8024293C_8B29AC
|
|
||||||
/* 8B29AC 8024293C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 8B29B0 80242940 AFBF0010 */ sw $ra, 0x10($sp)
|
|
||||||
/* 8B29B4 80242944 0C03A6DB */ jal sync_status_menu
|
|
||||||
/* 8B29B8 80242948 00000000 */ nop
|
|
||||||
/* 8B29BC 8024294C 8FBF0010 */ lw $ra, 0x10($sp)
|
|
||||||
/* 8B29C0 80242950 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 8B29C4 80242954 03E00008 */ jr $ra
|
|
||||||
/* 8B29C8 80242958 27BD0018 */ addiu $sp, $sp, 0x18
|
|
@ -1,27 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel func_80240578_99A1E8
|
|
||||||
/* 99A1E8 80240578 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 99A1EC 8024057C AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 99A1F0 80240580 0080802D */ daddu $s0, $a0, $zero
|
|
||||||
/* 99A1F4 80240584 AFBF0014 */ sw $ra, 0x14($sp)
|
|
||||||
/* 99A1F8 80240588 8E02000C */ lw $v0, 0xc($s0)
|
|
||||||
/* 99A1FC 8024058C 0C0B1EAF */ jal get_variable
|
|
||||||
/* 99A200 80240590 8C450000 */ lw $a1, ($v0)
|
|
||||||
/* 99A204 80240594 00021140 */ sll $v0, $v0, 5
|
|
||||||
/* 99A208 80240598 AE000084 */ sw $zero, 0x84($s0)
|
|
||||||
/* 99A20C 8024059C 3C018008 */ lui $at, 0x8008
|
|
||||||
/* 99A210 802405A0 00220821 */ addu $at, $at, $v0
|
|
||||||
/* 99A214 802405A4 942278F8 */ lhu $v0, 0x78f8($at)
|
|
||||||
/* 99A218 802405A8 30420040 */ andi $v0, $v0, 0x40
|
|
||||||
/* 99A21C 802405AC 10400002 */ beqz $v0, .L802405B8
|
|
||||||
/* 99A220 802405B0 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 99A224 802405B4 AE020084 */ sw $v0, 0x84($s0)
|
|
||||||
.L802405B8:
|
|
||||||
/* 99A228 802405B8 8FBF0014 */ lw $ra, 0x14($sp)
|
|
||||||
/* 99A22C 802405BC 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 99A230 802405C0 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 99A234 802405C4 03E00008 */ jr $ra
|
|
||||||
/* 99A238 802405C8 27BD0018 */ addiu $sp, $sp, 0x18
|
|
||||||
/* 99A23C 802405CC 00000000 */ nop
|
|
@ -1,13 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel func_8024060C_99A27C
|
|
||||||
/* 99A27C 8024060C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 99A280 80240610 AFBF0010 */ sw $ra, 0x10($sp)
|
|
||||||
/* 99A284 80240614 0C03A6DB */ jal sync_status_menu
|
|
||||||
/* 99A288 80240618 00000000 */ nop
|
|
||||||
/* 99A28C 8024061C 8FBF0010 */ lw $ra, 0x10($sp)
|
|
||||||
/* 99A290 80240620 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 99A294 80240624 03E00008 */ jr $ra
|
|
||||||
/* 99A298 80240628 27BD0018 */ addiu $sp, $sp, 0x18
|
|
||||||
/* 99A29C 8024062C 00000000 */ nop
|
|
@ -8,7 +8,7 @@ INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_802410B4_C9EFD4);
|
|||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_802411EC_C9F10C);
|
INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_802411EC_C9F10C);
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_8024137C_C9F29C);
|
#include "world/common/SyncStatusMenu.inc.c"
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_8024139C_C9F2BC);
|
INCLUDE_ASM(s32, "world/area_flo/flo_00/C9EE30", func_8024139C_C9F2BC);
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_8024280C_8B287C);
|
|||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_80242860_8B28D0);
|
INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_80242860_8B28D0);
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_8024293C_8B29AC);
|
#include "world/common/SyncStatusMenu.inc.c"
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_8024295C_8B29CC);
|
INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_8024295C_8B29CC);
|
||||||
|
|
||||||
|
@ -6,4 +6,13 @@ INCLUDE_ASM(s32, "world/area_trd/trd_00/999F80", func_80240310_999F80);
|
|||||||
|
|
||||||
#include "world/common/SomeItemEntityFunc.inc.c"
|
#include "world/common/SomeItemEntityFunc.inc.c"
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_trd/trd_00/999F80", func_80240578_99A1E8);
|
static ApiStatus func_80240578_99A1E8(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
s32 itemIndex = get_variable(script, *script->ptrReadPos);
|
||||||
|
|
||||||
|
script->varTable[0] = 0;
|
||||||
|
if (gItemTable[itemIndex].typeFlags & 0x40) {
|
||||||
|
script->varTable[0] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
@ -10,4 +10,4 @@ static ApiStatus PostChapter1StatUpdate(ScriptInstance* script, s32 isInitialCal
|
|||||||
return ApiStatus_DONE2;
|
return ApiStatus_DONE2;
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "world/area_trd/trd_00/99A240", func_8024060C_99A27C);
|
#include "world/common/SyncStatusMenu.inc.c"
|
||||||
|
6
src/world/common/SyncStatusMenu.inc.c
Normal file
6
src/world/common/SyncStatusMenu.inc.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
static ApiStatus SyncStatusMenu(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
sync_status_menu();
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user