From 70beea634ed671ad68dc7f67f005a5b4bb1838b4 Mon Sep 17 00:00:00 2001 From: Dominicentek Date: Mon, 22 Jun 2026 01:22:06 +0200 Subject: [PATCH] [voice chat] fix autogen config --- autogen/exposed_lists.py | 2 +- autogen/lua_definitions/structs.lua | 3 --- docs/lua/structs.md | 11 ----------- src/pc/lua/smlua_cobject_autogen.c | 9 --------- src/pc/lua/smlua_cobject_autogen.h | 1 - 5 files changed, 1 insertion(+), 25 deletions(-) diff --git a/autogen/exposed_lists.py b/autogen/exposed_lists.py index 57e05279c..93378e073 100644 --- a/autogen/exposed_lists.py +++ b/autogen/exposed_lists.py @@ -335,7 +335,7 @@ structs_whitelist = { "__name__": "structs_whitelist", "src/game/player_palette.h": [ "PlayerPalette" ], "src/game/ingame_menu.h" : [ "DialogEntry" ], "include/PR/gbi.h": [ "Gfx", "^Vtx$" ], - "src/pc/voice_chat.h": [ "VoicePlayer" ], + "src/pc/voice_chat.h": [ "^VoicePlayer$" ], } # For each file, do not expose these structs diff --git a/autogen/lua_definitions/structs.lua b/autogen/lua_definitions/structs.lua index 181a4b736..ae1afe218 100644 --- a/autogen/lua_definitions/structs.lua +++ b/autogen/lua_definitions/structs.lua @@ -2267,9 +2267,6 @@ --- @field public clientMutedState VoiceChatMuteState --- @field public playerMutedState VoiceChatMuteState ---- @class VoicePlayerInternal ---- @field public buffer VoiceBuffer - --- @class Vtx --- @field public x number --- @field public y number diff --git a/docs/lua/structs.md b/docs/lua/structs.md index 394d71734..0d0f136c6 100644 --- a/docs/lua/structs.md +++ b/docs/lua/structs.md @@ -95,7 +95,6 @@ - [Vec4i](#Vec4i) - [Vec4s](#Vec4s) - [VoicePlayer](#VoicePlayer) -- [VoicePlayerInternal](#VoicePlayerInternal) - [Vtx](#Vtx) - [WallCollisionData](#WallCollisionData) - [WarpNode](#WarpNode) @@ -3116,16 +3115,6 @@
-## [VoicePlayerInternal](#VoicePlayerInternal) - -| Field | Type | Access | -| ----- | ---- | ------ | -| buffer | [VoiceBuffer](structs.md#VoiceBuffer) | read-only | - -[:arrow_up_small:](#) - -
- ## [Vtx](#Vtx) | Field | Type | Access | diff --git a/src/pc/lua/smlua_cobject_autogen.c b/src/pc/lua/smlua_cobject_autogen.c index c4384e85a..349001988 100644 --- a/src/pc/lua/smlua_cobject_autogen.c +++ b/src/pc/lua/smlua_cobject_autogen.c @@ -2636,13 +2636,6 @@ static struct LuaObjectField sVoicePlayerFields[LUA_VOICE_PLAYER_FIELD_COUNT] = { "volume", LVT_U32, offsetof(struct VoicePlayer, volume), false, LOT_NONE }, }; -#define LUA_VOICE_PLAYER_INTERNAL_FIELD_COUNT 1 -static struct LuaObjectField sVoicePlayerInternalFields[LUA_VOICE_PLAYER_INTERNAL_FIELD_COUNT] = { - { "buffer", LVT_COBJECT, offsetof(struct VoicePlayerInternal, buffer), true, LOT_VOICEBUFFER }, -// { "decoder", LVT_???, offsetof(struct VoicePlayerInternal, decoder), false, LOT_??? }, <--- UNIMPLEMENTED -// { "encoder", LVT_???, offsetof(struct VoicePlayerInternal, encoder), false, LOT_??? }, <--- UNIMPLEMENTED -}; - #define LUA_VTX_FIELD_COUNT 13 static struct LuaObjectField sVtxFields[LUA_VTX_FIELD_COUNT] = { { "a", LVT_U8, offsetof(Vtx_L, a), false, LOT_NONE }, @@ -2793,7 +2786,6 @@ struct LuaObjectTable sLuaObjectAutogenTable[LOT_AUTOGEN_MAX - LOT_AUTOGEN_MIN] { LOT_SURFACE, sSurfaceFields, LUA_SURFACE_FIELD_COUNT }, { LOT_TEXTUREINFO, sTextureInfoFields, LUA_TEXTURE_INFO_FIELD_COUNT }, { LOT_VOICEPLAYER, sVoicePlayerFields, LUA_VOICE_PLAYER_FIELD_COUNT }, - { LOT_VOICEPLAYERINTERNAL, sVoicePlayerInternalFields, LUA_VOICE_PLAYER_INTERNAL_FIELD_COUNT }, { LOT_VTX, sVtxFields, LUA_VTX_FIELD_COUNT }, { LOT_WALLCOLLISIONDATA, sWallCollisionDataFields, LUA_WALL_COLLISION_DATA_FIELD_COUNT }, { LOT_WARPNODE, sWarpNodeFields, LUA_WARP_NODE_FIELD_COUNT }, @@ -2901,7 +2893,6 @@ const char *sLuaLotNames[] = { [LOT_SURFACE] = "Surface", [LOT_TEXTUREINFO] = "TextureInfo", [LOT_VOICEPLAYER] = "VoicePlayer", - [LOT_VOICEPLAYERINTERNAL] = "VoicePlayerInternal", [LOT_VTX] = "Vtx", [LOT_WALLCOLLISIONDATA] = "WallCollisionData", [LOT_WARPNODE] = "WarpNode", diff --git a/src/pc/lua/smlua_cobject_autogen.h b/src/pc/lua/smlua_cobject_autogen.h index f6a2c3edf..1998d39f1 100644 --- a/src/pc/lua/smlua_cobject_autogen.h +++ b/src/pc/lua/smlua_cobject_autogen.h @@ -106,7 +106,6 @@ enum LuaObjectAutogenType { LOT_SURFACE, LOT_TEXTUREINFO, LOT_VOICEPLAYER, - LOT_VOICEPLAYERINTERNAL, LOT_VTX, LOT_WALLCOLLISIONDATA, LOT_WARPNODE,