match and link m420dll/rand.c
This commit is contained in:
parent
4b8bd84020
commit
e501678f5d
2 changed files with 12 additions and 1 deletions
|
|
@ -955,7 +955,7 @@ config.libs = [
|
|||
Object(NonMatching, "REL/m420dll/main.c"),
|
||||
Object(NonMatching, "REL/m420dll/player.c"),
|
||||
Object(NonMatching, "REL/m420dll/map.c"),
|
||||
Object(NonMatching, "REL/m420dll/rand.c"),
|
||||
Object(Matching, "REL/m420dll/rand.c"),
|
||||
},
|
||||
),
|
||||
Rel(
|
||||
|
|
|
|||
11
src/REL/m420dll/rand.c
Normal file
11
src/REL/m420dll/rand.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "dolphin/types.h"
|
||||
|
||||
u32 lbl_1_bss_A48;
|
||||
|
||||
void fn_1_8934 (u32 seed) {
|
||||
lbl_1_bss_A48 = seed;
|
||||
}
|
||||
|
||||
s32 fn_1_8944(void) {
|
||||
return (lbl_1_bss_A48 = (lbl_1_bss_A48 * 0x41C64E6D) + 0x3039) / 65536 & 0x7FFF;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue