[Slackbuilds-users] Mumble gtav plugin compile error on Slackware 32-bit
KB_SBo
sbo at linuxgalaxy.org
Tue Mar 19 01:57:44 UTC 2024
Hello
Seems there was some sort of omission or regression (or "Who still uses
32-bit?") when the gtav plugin is compiled for mumble. This was fixed
previously in mumble-master but somehow did not end up in mumble-1.4.287
I've posted the fix to my branch for the next update. However, other
than a qemu VM (not set up for audio), I'm not able to test fully.
https://github.com/mumble-voip/mumble/issues/5849
https://github.com/mumble-voip/mumble/pull/5850
------------8<------------
From 13c051b36b387356815cff5d685bc628b74ba136 Mon Sep 17 00:00:00 2001
From: Davide Beatrici <git at davidebeatrici.dev>
Date: Thu, 1 Sep 2022 23:32:57 +0200
Subject: [PATCH] FIX(positional-audio): Force 8 bytes alignment for
CCameraAngles in GTAV plugin
https://en.cppreference.com/w/cpp/language/alignas
This fixes compilation when the implicit alignment is not 8 bytes.
It can be the case with 32 bit targets.
---
plugins/gtav/structs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/gtav/structs.h b/plugins/gtav/structs.h
index 2829dc11e1..0e4f76edab 100644
--- a/plugins/gtav/structs.h
+++ b/plugins/gtav/structs.h
@@ -118,7 +118,7 @@ struct CCameraManagerAngles {
ptr_t cameraAngles; // CCameraAngles *
};
-struct CCameraAngles {
+struct alignas(8) CCameraAngles {
uint8_t pad1[960];
ptr_t playerAngles; // CPlayerAngles *
uint8_t pad2[60];
------------------->8---------------------
-kb
More information about the SlackBuilds-users
mailing list