mirror of
https://github.com/YohannDR/mzm.git
synced 2025-02-18 20:48:19 +00:00
Match unk_7f60c
This commit is contained in:
parent
3518008d93
commit
80c996515c
@ -2,7 +2,7 @@
|
||||
|
||||
This is a work in progress decompilation of Metroid - Zero Mission.
|
||||
|
||||
2595/2721 functions decompiled (95.37%, 126 left)
|
||||
2596/2721 functions decompiled (95.41%, 125 left)
|
||||
|
||||
0x350773/0x76b014 bytes of data not in blobs (44.68%, 0x41a8a1 left)
|
||||
|
||||
|
@ -378,24 +378,32 @@ void CheckUnlockTimeAttack(void)
|
||||
gFileScreenOptionsUnlocked.timeAttack = result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 7f60c | 88 | To document
|
||||
*
|
||||
* @param param_1 To document
|
||||
* @return u8 To document
|
||||
*/
|
||||
u8 unk_7f60c(u8* param_1)
|
||||
{
|
||||
// https://decomp.me/scratch/JPI7a
|
||||
|
||||
u8 i;
|
||||
u32 sum;
|
||||
u8 mask;
|
||||
u32 unk_0;
|
||||
u32 j;
|
||||
u32 flags;
|
||||
|
||||
do {
|
||||
if (!(gFileScreenOptionsUnlocked.timeAttack & 1))
|
||||
return FALSE;
|
||||
flags = gFileScreenOptionsUnlocked.timeAttack;
|
||||
}while(0);
|
||||
|
||||
sum = 0;
|
||||
mask = 31;
|
||||
for (i = 0; i < 32; i++)
|
||||
{
|
||||
sum += (gFileScreenOptionsUnlocked.timeAttack >> i & 1) << mask;
|
||||
sum += (flags >> i & 1) << mask;
|
||||
mask--;
|
||||
}
|
||||
|
||||
@ -594,6 +602,8 @@ void TimeAttackRandomizeSeed(u8* pSeed, u32 rng)
|
||||
|
||||
u8 TimeAttackGenerateSeed(struct TimeAttackData* pTimeAttack)
|
||||
{
|
||||
// https://decomp.me/scratch/D8huk
|
||||
|
||||
u8 seed[16];
|
||||
i32 i;
|
||||
i32 j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user