mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
restore SeedRngWithRtc comment and declaration of GF oversight.
This commit is contained in:
parent
ed02120062
commit
468793e34a
11
src/main.c
11
src/main.c
@ -75,7 +75,7 @@ static EWRAM_DATA u16 gTrainerId = 0;
|
|||||||
static void UpdateLinkAndCallCallbacks(void);
|
static void UpdateLinkAndCallCallbacks(void);
|
||||||
static void InitMainCallbacks(void);
|
static void InitMainCallbacks(void);
|
||||||
static void CallCallbacks(void);
|
static void CallCallbacks(void);
|
||||||
static void SeedRngWithRtc(void);
|
//static void SeedRngWithRtc(void);
|
||||||
static void ReadKeys(void);
|
static void ReadKeys(void);
|
||||||
void InitIntrHandlers(void);
|
void InitIntrHandlers(void);
|
||||||
static void WaitForVBlank(void);
|
static void WaitForVBlank(void);
|
||||||
@ -118,6 +118,7 @@ void AgbMain()
|
|||||||
CheckForFlashMemory();
|
CheckForFlashMemory();
|
||||||
InitMainCallbacks();
|
InitMainCallbacks();
|
||||||
InitMapMusic();
|
InitMapMusic();
|
||||||
|
//SeedRngWithRtc(); see comment at SeedRngWithRtc declaration below
|
||||||
ClearDma3Requests();
|
ClearDma3Requests();
|
||||||
ResetBgs();
|
ResetBgs();
|
||||||
SetDefaultFontsPointer();
|
SetDefaultFontsPointer();
|
||||||
@ -228,6 +229,14 @@ void EnableVCountIntrAtLine150(void)
|
|||||||
EnableInterrupts(INTR_FLAG_VCOUNT);
|
EnableInterrupts(INTR_FLAG_VCOUNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// oops! FRLG commented this out to remove RTC, however Emerald didnt undo this!
|
||||||
|
//static void SeedRngWithRtc(void)
|
||||||
|
//{
|
||||||
|
// u32 seed = RtcGetMinuteCount();
|
||||||
|
// seed = (seed >> 16) ^ (seed & 0xFFFF);
|
||||||
|
// SeedRng(seed);
|
||||||
|
//}
|
||||||
|
|
||||||
void InitKeys(void)
|
void InitKeys(void)
|
||||||
{
|
{
|
||||||
gKeyRepeatContinueDelay = 5;
|
gKeyRepeatContinueDelay = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user