forked from pret/pokestadium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pret#129 from Kelebek1/various
various
- Loading branch information
Showing
26 changed files
with
1,588 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,64 @@ | ||
#include "global.h" | ||
#include "20330.h" | ||
|
||
#pragma GLOBAL_ASM("asm/us/nonmatchings/20330/func_8001F730.s") | ||
static s32 pad_D_800AC880[0x2]; | ||
static s32 D_800AC888; | ||
static unk_D_80068BA0* D_800AC88C; | ||
|
||
#pragma GLOBAL_ASM("asm/us/nonmatchings/20330/func_8001F738.s") | ||
void func_8001F730(void) { | ||
} | ||
|
||
#pragma GLOBAL_ASM("asm/us/nonmatchings/20330/func_8001F750.s") | ||
void func_8001F738(unk_D_80068BA0* arg0) { | ||
D_800AC888 = 0xA; | ||
D_800AC88C = arg0; | ||
} | ||
|
||
s32 func_8001F750(void) { | ||
if (D_800AC88C->unk_08 & 0x800) { | ||
D_800AC888 = 0xA; | ||
return 0x800; | ||
} | ||
|
||
if (D_800AC88C->unk_08 & 0x400) { | ||
D_800AC888 = 0xA; | ||
return 0x400; | ||
} | ||
|
||
if (D_800AC88C->unk_08 & 0x200) { | ||
D_800AC888 = 0xA; | ||
return 0x200; | ||
} | ||
|
||
if (D_800AC88C->unk_08 & 0x100) { | ||
D_800AC888 = 0xA; | ||
return 0x100; | ||
} | ||
|
||
D_800AC888--; | ||
if (D_800AC888 <= 0) { | ||
D_800AC888 = 0; | ||
|
||
// clang-format off | ||
if (D_800AC88C->unk_06 & 0x800) { | ||
D_800AC888 = 2; return 0x800; | ||
} | ||
// clang-format on | ||
|
||
if (D_800AC88C->unk_06 & 0x400) { | ||
D_800AC888 = 2; | ||
return 0x400; | ||
} | ||
|
||
if (D_800AC88C->unk_06 & 0x200) { | ||
D_800AC888 = 2; | ||
return 0x200; | ||
} | ||
|
||
if (D_800AC88C->unk_06 & 0x100) { | ||
D_800AC888 = 2; | ||
return 0x100; | ||
} | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.