Replace int64_t with long, int32_t with int

This commit is contained in:
Garry Newman 2020-09-04 09:55:06 +01:00
parent 73b5c9ceb6
commit 6291c8f117
4 changed files with 5 additions and 3 deletions

View File

@ -257,7 +257,7 @@ internal bool SetConnectionConfigValueFloat( Connection hConn, NetConfig eValue,
var returnValue = _SetConnectionConfigValueFloat( Self, hConn, eValue, val );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueString", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]

View File

@ -91,10 +91,10 @@ internal partial struct SteamIPAddress
internal partial struct NetKeyValue
{
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetInt32", CallingConvention = Platform.CC)]
internal static extern void InternalSetInt32( ref NetKeyValue self, NetConfig eVal, int32_t data );
internal static extern void InternalSetInt32( ref NetKeyValue self, NetConfig eVal, int data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetInt64", CallingConvention = Platform.CC)]
internal static extern void InternalSetInt64( ref NetKeyValue self, NetConfig eVal, int64_t data );
internal static extern void InternalSetInt64( ref NetKeyValue self, NetConfig eVal, long data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetFloat", CallingConvention = Platform.CC)]
internal static extern void InternalSetFloat( ref NetKeyValue self, NetConfig eVal, float data );

View File

@ -16,6 +16,8 @@ public static string ConvertType( string type )
type = type.Replace( "unsigned long long", "uint64" );
type = type.Replace( "unsigned int", "uint" );
type = type.Replace( "uint32", "uint" );
type = type.Replace( "int32_t", "int" );
type = type.Replace( "int64_t", "long" );
type = type.Replace( "CSteamID", "SteamId" );
type = type.Replace( "CGameID", "GameId" );