Skip to content

Commit

Permalink
fix(rdr3/audio): add pattern offset for asynchronousAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
3 people committed Jan 17, 2024
1 parent c18c321 commit 2a85635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/gta-core-five/src/GameAudioState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static HookFunction hookFunction([]()
static auto asynchronousAudio = hook::get_address<bool*>(hook::get_pattern("E8 ? ? ? ? 40 38 35 ? ? ? ? 75 05", 8));
static auto audioTimeout = hook::get_address<int*>(hook::get_pattern("8B 15 ? ? ? ? 41 03 D6 3B", 2));
#elif IS_RDR3
static auto asynchronousAudio = hook::get_address<bool*>(hook::get_pattern("80 3D ? ? ? ? ? 74 38 33 DB 40 84 FF 74 19"));
static auto asynchronousAudio = hook::get_address<bool*>(hook::get_pattern("80 3D ? ? ? ? ? 74 38 33 DB 40 84 FF 74 19", 2));
static auto audioTimeout = hook::get_address<int*>(hook::get_pattern("8B 15 ? ? ? ? 41 03 D6 3B", 2));
#endif
// See https://github.com/citizenfx/fivem/issues/1446 comments for a more viable solution:
Expand Down

0 comments on commit 2a85635

Please sign in to comment.