rename files

This commit is contained in:
theo3
2021-12-28 23:33:10 -08:00
parent 4d04c1c920
commit cbd0b7e6c9
65 changed files with 4442 additions and 4629 deletions
+29
View File
@@ -1,10 +1,16 @@
#include "entity.h"
#include "sound.h"
#include "functions.h"
#include "utils.h"
#include "message.h"
#include "save.h"
extern void (*const gUnk_0811B9D8[])(Entity*);
void sub_080704FC(Entity*);
extern void sub_080A4D88(void);
extern u8 gUnk_02034490[0x18];
void PlayerItemPacciCane(Entity* this) {
gUnk_0811B9D8[this->action](this);
@@ -19,3 +25,26 @@ void sub_080704D4(Entity* this) {
}
ASM_FUNC("asm/non_matching/playerItemPacciCane/sub_080704FC.inc", void sub_080704FC(Entity* this))
void sub_0807059C() {
MemClear(gUnk_02034490, sizeof(gUnk_02034490));
}
NONMATCH("asm/non_matching/playerItemPacciCane/sub_080705AC.inc", u32 sub_080705AC(void)) {
if (!((gInput.newKeys & 8) == 0 || gFadeControl.active || gUnk_02034490[0] || (gMessage.doTextBox & 0x7F) != 0 ||
!gSave.stats.health || !gSave.fillerD0[34] || gPlayerState.controlMode || gPriorityHandler.priority_timer)) {
u32 tmp = gPlayerState.framestate ? gPlayerState.framestate : gPlayerState.framestate_last;
switch (tmp) {
case 18:
case 19:
case 21:
case 22:
case 28:
return 0;
}
sub_080A4D88();
return 1;
}
return 0;
}
END_NONMATCH