match and link m420dll/rand.c

This commit is contained in:
Rainchus 2024-09-15 11:32:49 -05:00
parent 4b8bd84020
commit e501678f5d
2 changed files with 12 additions and 1 deletions

View file

@ -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
View 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;
}