III: Fix pattern for IsAudioInitialised failing with a Steam version

This commit is contained in:
Silent 2019-09-25 21:02:11 +02:00
parent a9903ac922
commit ad842130d3
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -469,7 +469,7 @@ namespace Localization
// ============= Call cDMAudio::IsAudioInitialised before adding one shot sounds, like in VC =============
namespace AudioInitializedFix
{
auto IsAudioInitialised = (bool(*)())Memory::ReadCallFrom( hook::get_pattern( "E8 ? ? ? ? 84 C0 74 6C 0F B7 47 10" ) );
auto IsAudioInitialised = static_cast<bool(*)()>(Memory::ReadCallFrom( hook::get_pattern( "E8 ? ? ? ? 84 C0 74 ? 0F B7 47 10" ) ));
void* (*operatorNew)(size_t size);
void* operatorNew_InitializedCheck( size_t size )