mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
GenerateIntegerRandomNumberTable
This commit is contained in:
parent
e0eb0d991f
commit
c6256aab4f
@ -9,6 +9,12 @@
|
|||||||
|
|
||||||
cAudioManager &AudioManager = *(cAudioManager *)0x880FC0;
|
cAudioManager &AudioManager = *(cAudioManager *)0x880FC0;
|
||||||
|
|
||||||
|
void
|
||||||
|
cAudioManager::GenerateIntegerRandomNumberTable()
|
||||||
|
{
|
||||||
|
for(int32 i = 0; i < 5; i++) { m_anRandomTable[i] = rand(); }
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioManager::PlayerJustLeftCar(void)
|
cAudioManager::PlayerJustLeftCar(void)
|
||||||
{
|
{
|
||||||
@ -2682,6 +2688,7 @@ cAudioManager::Service()
|
|||||||
}
|
}
|
||||||
|
|
||||||
STARTPATCHES
|
STARTPATCHES
|
||||||
|
InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, PATCH_JUMP);
|
||||||
InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP);
|
InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP);
|
||||||
InjectHook(0x570DB0, &cAudioManager::GetPhrase, PATCH_JUMP);
|
InjectHook(0x570DB0, &cAudioManager::GetPhrase, PATCH_JUMP);
|
||||||
|
|
||||||
|
@ -216,6 +216,8 @@ public:
|
|||||||
char field_19195;
|
char field_19195;
|
||||||
int m_nTimeOfRecentCrime;
|
int m_nTimeOfRecentCrime;
|
||||||
|
|
||||||
|
void GenerateIntegerRandomNumberTable();
|
||||||
|
|
||||||
void PlayerJustLeftCar(void);
|
void PlayerJustLeftCar(void);
|
||||||
void Service();
|
void Service();
|
||||||
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
||||||
|
Loading…
Reference in New Issue
Block a user