RNG header

This commit is contained in:
YamaArashi 2016-07-24 23:06:43 -07:00
parent 8459f924d1
commit 74957cfce6
4 changed files with 12 additions and 6 deletions

9
include/rng.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef GUARD_RNG_H
#define GUARD_RNG_H
extern u32 gRngValue;
u16 Random(void);
void SeedRng(u16 seed);
#endif // GUARD_RNG_H

View File

@ -6,6 +6,7 @@
#include "songs.h"
#include "link.h"
#include "palette.h"
#include "rng.h"
#define SIO_MULTI_CNT ((struct SioMultiCnt *)REG_ADDR_SIOCNT)
@ -27,8 +28,6 @@ struct LinkTestBGInfo
};
extern void sub_8071C4C(const struct WindowConfig *);
extern u16 Random(void);
extern void SeedRng(u16);
extern void sub_80516C4(u8, u16);
extern u8 unk_2000000[];

View File

@ -5,6 +5,7 @@
#include "main.h"
#include "rtc.h"
#include "link.h"
#include "rng.h"
extern struct SoundInfo gSoundInfo;
extern u32 gUnknown_3004820;
@ -56,8 +57,6 @@ COMM_2(u8 gPcmDmaCounter)
EWRAM_DATA void (*gFlashTimerIntrFunc)(void) = NULL;
extern void sub_800C35C(void);
extern u16 Random(void);
extern void SeedRng(u16);
extern void remove_some_task(void);
extern void c2_copyright_1();
extern u32 sub_80558AC(void);

View File

@ -1,6 +1,5 @@
#include "global.h"
extern u32 gRngValue;
#include "rng.h"
u16 Random(void)
{