mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
refactor(thunderbrew): use static size members instead of null-termination to delimit FrameScript_Method arrays
This commit is contained in:
parent
32cfe08d0b
commit
2fb754a83a
7 changed files with 19 additions and 21 deletions
|
|
@ -122,6 +122,7 @@ FrameScript_Method SI2::s_ScriptFunctions[] = {
|
|||
{ "VoiceChat_IsRecordingLoopbackSound", &Script_VoiceChat_IsRecordingLoopbackSound },
|
||||
{ "VoiceChat_IsPlayingLoopbackSound", &Script_VoiceChat_IsPlayingLoopbackSound },
|
||||
{ "VoiceChat_GetCurrentMicrophoneSignalLevel", &Script_VoiceChat_GetCurrentMicrophoneSignalLevel },
|
||||
{ "VoiceChat_ActivatePrimaryCaptureCallback", &Script_VoiceChat_ActivatePrimaryCaptureCallback },
|
||||
{ nullptr, nullptr }
|
||||
{ "VoiceChat_ActivatePrimaryCaptureCallback", &Script_VoiceChat_ActivatePrimaryCaptureCallback }
|
||||
};
|
||||
|
||||
size_t SI2::s_NumScriptFunctions = sizeof(SI2::s_ScriptFunctions) / sizeof(FrameScript_Method);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue