mirror of
https://github.com/halpz/re3.git
synced 2025-06-30 06:46:17 +00:00
Merge with upstream
This commit is contained in:
17
src/audio/AudioManager.cpp
Normal file
17
src/audio/AudioManager.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "AudioManager.h"
|
||||
|
||||
cAudioManager &AudioManager = *(cAudioManager*)0x880FC0;
|
||||
|
||||
void
|
||||
cAudioManager::PlayerJustLeftCar(void)
|
||||
{
|
||||
// UNUSED: This is a perfectly empty function.
|
||||
}
|
||||
|
||||
WRAPPER void cAudioManager::Service() { EAXJMP(0x57A2A0); }
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP);
|
||||
ENDPATCHES
|
9
src/audio/AudioManager.h
Normal file
9
src/audio/AudioManager.h
Normal file
@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
class cAudioManager {
|
||||
public:
|
||||
void PlayerJustLeftCar(void);
|
||||
void Service();
|
||||
};
|
||||
|
||||
extern cAudioManager &AudioManager;
|
@ -195,5 +195,7 @@ public:
|
||||
int32 CreateEntity(int, void*);
|
||||
void SetEntityStatus(int32, int8);
|
||||
void SetRadioInCar(int32);
|
||||
uint8 IsMP3RadioChannelAvailable();
|
||||
|
||||
};
|
||||
extern cDMAudio &DMAudio;
|
||||
|
@ -16,6 +16,8 @@ int32 &gNumRetunePresses = *(int32*)0x650B80;
|
||||
wchar *pCurrentStation = (wchar*)0x650B9C;
|
||||
uint8 &cDisplay = *(uint8*)0x650BA1;
|
||||
|
||||
WRAPPER char* cMusicManager::Get3DProviderName(char) { EAXJMP(0x57A8C0); }
|
||||
|
||||
bool cMusicManager::PlayerInCar()
|
||||
{
|
||||
if (!FindPlayerVehicle())
|
||||
|
@ -264,6 +264,7 @@ public:
|
||||
uint8 field_2395;
|
||||
|
||||
public:
|
||||
char *Get3DProviderName(char);
|
||||
bool PlayerInCar();
|
||||
void DisplayRadioStationName();
|
||||
};
|
||||
|
Reference in New Issue
Block a user