Skip to content

Commit

Permalink
Merge PR mumble-voip#5679: FIX(positional-audio): Update GTAV plugin …
Browse files Browse the repository at this point in the history
…to version 1.59.2612
  • Loading branch information
Krzmbrzl authored May 17, 2022
2 parents e90736b + 36b58eb commit 8eeb20c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions plugins/gtav/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ Mumble_PositionalDataErrorCode Game::init() {

// Check if we can get meaningful data from it
const std::string expected_name = "Grand Theft Auto V";
if (m_proc.peekString(m_moduleBase + 0x1E264D3, expected_name.length()) == expected_name) {
if (m_proc.peekString(m_moduleBase + 0x192D120, expected_name.length()) == expected_name) {
// Steam version
m_stateAddr = m_moduleBase + 0x296F830;
m_avatarPosAddr = m_moduleBase + 0x1D57310;
m_cameraPosAddr = m_moduleBase + 0x1DA5FA0;
m_avatarDirAddr = m_moduleBase + 0x204FB70;
m_avatarAxisAddr = m_moduleBase + 0x204FB60;
m_cameraDirAddr = m_moduleBase + 0x1FDA9F0;
m_cameraAxisAddr = m_moduleBase + 0x1FDA9E0;
m_playerAddr = m_moduleBase + 0x297CBB4;
m_stateAddr = m_moduleBase + 0x2970F70;
m_avatarPosAddr = m_moduleBase + 0x1FDCD70;
m_cameraPosAddr = m_moduleBase + 0x1FDCD80;
m_avatarDirAddr = m_moduleBase + 0x20510E0;
m_avatarAxisAddr = m_moduleBase + 0x20510D0;
m_cameraDirAddr = m_moduleBase + 0x20510A0;
m_cameraAxisAddr = m_moduleBase + 0x20510B0;
m_playerAddr = m_moduleBase + 0x297E2F4;
} else if (m_proc.peekString(0x180D4D8, expected_name.length()) == expected_name) {
// Retail version
m_stateAddr = m_moduleBase + 0x2733490;
Expand Down
4 changes: 2 additions & 2 deletions plugins/gtav/gtav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void mumble_releaseResource(const void *) {

mumble_version_t mumble_getVersion() {
// we reuse the GTA version as plugin version
return { 1, 58, 2545 };
return { 1, 59, 2612 };
}

MumbleStringWrapper mumble_getAuthor() {
Expand All @@ -59,7 +59,7 @@ MumbleStringWrapper mumble_getAuthor() {

MumbleStringWrapper mumble_getDescription() {
static const char description[] = "Provides positional audio functionality for GTA V. "
"Supports GTA V version 1.58 Build 2545 (Steam) and 1.38 (Retail). "
"Supports GTA V version 1.59 Build 2612 (Steam) and 1.38 (Retail). "
"Also provides identity based on username.";

MumbleStringWrapper wrapper;
Expand Down

0 comments on commit 8eeb20c

Please sign in to comment.