fix(orbis): better fix for orbis voicechat crash

This most likely can be fixed a more proper way but this is what works and is better then the previous method
This commit is contained in:
2026-07-18 01:19:10 -04:00
parent 388626dbba
commit 6ee614dfda
2 changed files with 6 additions and 7 deletions
@@ -8,6 +8,7 @@
static const int sc_maxVoiceDataSize = 2048;
#define VOICE_INVALID_PORT_ID 0xff // str1k3r - use of SCE_VOICE_INVALID_PORT_ID causes a crash when loading / making worlds.
class VoicePacket
{
@@ -87,9 +88,9 @@ public:
public:
SQRLocalVoiceDevice()
: m_headsetPort(SCE_VOICE_INVALID_PORT_ID)
, m_microphonePort(SCE_VOICE_INVALID_PORT_ID)
, m_localUserID(SCE_USER_SERVICE_USER_ID_INVALID)
: m_headsetPort(VOICE_INVALID_PORT_ID)
, m_microphonePort(VOICE_INVALID_PORT_ID)
{
for(int i=0;i<4;i++)
m_localConnections[i] = 0;