@@ -165,6 +165,7 @@ public unsafe interface ISharedLibrary
165165 public delegate * unmanaged[ Cdecl] < nint , int * , nint > Core_GetVersion { get ; }
166166 public delegate * unmanaged[ Cdecl] < nint , ulong * , nint > Core_GetVirtualEntities { get ; }
167167 public delegate * unmanaged[ Cdecl] < nint , ulong * , nint > Core_GetVirtualEntityGroups { get ; }
168+ public delegate * unmanaged[ Cdecl] < nint , byte > Core_GetVoiceConnectionState { get ; }
168169 public delegate * unmanaged[ Cdecl] < nint , nint , byte > Core_HasMetaData { get ; }
169170 public delegate * unmanaged[ Cdecl] < nint , nint , byte > Core_HasSyncedMetaData { get ; }
170171 public delegate * unmanaged[ Cdecl] < nint , byte > Core_IsDebug { get ; }
@@ -364,7 +365,7 @@ public unsafe interface ISharedLibrary
364365
365366 public unsafe class SharedLibrary : ISharedLibrary
366367 {
367- public readonly uint Methods = 1625 ;
368+ public readonly uint Methods = 1626 ;
368369 public delegate * unmanaged[ Cdecl] < nint , uint > Audio_GetID { get ; }
369370 public delegate * unmanaged[ Cdecl] < nint , uint > AudioAttachedOutput_GetID { get ; }
370371 public delegate * unmanaged[ Cdecl] < nint , uint > AudioFilter_GetID { get ; }
@@ -520,6 +521,7 @@ public unsafe class SharedLibrary : ISharedLibrary
520521 public delegate * unmanaged[ Cdecl] < nint , int * , nint > Core_GetVersion { get ; }
521522 public delegate * unmanaged[ Cdecl] < nint , ulong * , nint > Core_GetVirtualEntities { get ; }
522523 public delegate * unmanaged[ Cdecl] < nint , ulong * , nint > Core_GetVirtualEntityGroups { get ; }
524+ public delegate * unmanaged[ Cdecl] < nint , byte > Core_GetVoiceConnectionState { get ; }
523525 public delegate * unmanaged[ Cdecl] < nint , nint , byte > Core_HasMetaData { get ; }
524526 public delegate * unmanaged[ Cdecl] < nint , nint , byte > Core_HasSyncedMetaData { get ; }
525527 public delegate * unmanaged[ Cdecl] < nint , byte > Core_IsDebug { get ; }
@@ -1025,6 +1027,8 @@ public unsafe class SharedLibrary : ISharedLibrary
10251027 private static nint Core_GetVirtualEntitiesFallback ( nint _core , ulong * _size ) => throw new Exceptions . OutdatedSdkException ( "Core_GetVirtualEntities" , "Core_GetVirtualEntities SDK method is outdated. Please update your module nuget" ) ;
10261028 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate nint Core_GetVirtualEntityGroupsDelegate ( nint _core , ulong * _size ) ;
10271029 private static nint Core_GetVirtualEntityGroupsFallback ( nint _core , ulong * _size ) => throw new Exceptions . OutdatedSdkException ( "Core_GetVirtualEntityGroups" , "Core_GetVirtualEntityGroups SDK method is outdated. Please update your module nuget" ) ;
1030+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate byte Core_GetVoiceConnectionStateDelegate ( nint _core ) ;
1031+ private static byte Core_GetVoiceConnectionStateFallback ( nint _core ) => throw new Exceptions . OutdatedSdkException ( "Core_GetVoiceConnectionState" , "Core_GetVoiceConnectionState SDK method is outdated. Please update your module nuget" ) ;
10281032 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate byte Core_HasMetaDataDelegate ( nint _core , nint _key ) ;
10291033 private static byte Core_HasMetaDataFallback ( nint _core , nint _key ) => throw new Exceptions . OutdatedSdkException ( "Core_HasMetaData" , "Core_HasMetaData SDK method is outdated. Please update your module nuget" ) ;
10301034 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate byte Core_HasSyncedMetaDataDelegate ( nint _core , nint _key ) ;
@@ -1424,7 +1428,7 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
14241428 public SharedLibrary ( Dictionary < ulong , IntPtr > funcTable )
14251429 {
14261430 if ( ! funcTable . TryGetValue ( 0 , out var capiHash ) ) Outdated = true ;
1427- else if ( capiHash == IntPtr . Zero || * ( ulong * ) capiHash != 620890210989099442UL ) Outdated = true ;
1431+ else if ( capiHash == IntPtr . Zero || * ( ulong * ) capiHash != 9326924779181455521UL ) Outdated = true ;
14281432 Audio_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < Audio_GetIDDelegate > ( funcTable , 4464042055475980737UL , Audio_GetIDFallback ) ;
14291433 AudioAttachedOutput_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioAttachedOutput_GetIDDelegate > ( funcTable , 17725794901805112189UL , AudioAttachedOutput_GetIDFallback ) ;
14301434 AudioFilter_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioFilter_GetIDDelegate > ( funcTable , 8824535635529306325UL , AudioFilter_GetIDFallback ) ;
@@ -1580,6 +1584,7 @@ public SharedLibrary(Dictionary<ulong, IntPtr> funcTable)
15801584 Core_GetVersion = ( delegate * unmanaged[ Cdecl] < nint , int * , nint > ) GetUnmanagedPtr < Core_GetVersionDelegate > ( funcTable , 7504892851555999456UL , Core_GetVersionFallback ) ;
15811585 Core_GetVirtualEntities = ( delegate * unmanaged[ Cdecl] < nint , ulong * , nint > ) GetUnmanagedPtr < Core_GetVirtualEntitiesDelegate > ( funcTable , 4476532196756880454UL , Core_GetVirtualEntitiesFallback ) ;
15821586 Core_GetVirtualEntityGroups = ( delegate * unmanaged[ Cdecl] < nint , ulong * , nint > ) GetUnmanagedPtr < Core_GetVirtualEntityGroupsDelegate > ( funcTable , 17770187578627250877UL , Core_GetVirtualEntityGroupsFallback ) ;
1587+ Core_GetVoiceConnectionState = ( delegate * unmanaged[ Cdecl] < nint , byte > ) GetUnmanagedPtr < Core_GetVoiceConnectionStateDelegate > ( funcTable , 4278537667856004336UL , Core_GetVoiceConnectionStateFallback ) ;
15831588 Core_HasMetaData = ( delegate * unmanaged[ Cdecl] < nint , nint , byte > ) GetUnmanagedPtr < Core_HasMetaDataDelegate > ( funcTable , 11163152091545864047UL , Core_HasMetaDataFallback ) ;
15841589 Core_HasSyncedMetaData = ( delegate * unmanaged[ Cdecl] < nint , nint , byte > ) GetUnmanagedPtr < Core_HasSyncedMetaDataDelegate > ( funcTable , 11681507067991184733UL , Core_HasSyncedMetaDataFallback ) ;
15851590 Core_IsDebug = ( delegate * unmanaged[ Cdecl] < nint , byte > ) GetUnmanagedPtr < Core_IsDebugDelegate > ( funcTable , 14872081069683452488UL , Core_IsDebugFallback ) ;
0 commit comments