mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 13:45:37 +03:00
Handle AppId_t arrays
This commit is contained in:
parent
01e7d1d378
commit
59f7e0ca0a
@ -24800,7 +24800,8 @@ internal struct GetAppDependenciesResult_t
|
||||
public const int CallbackId = CallbackIdentifiers.ClientUGC + 16;
|
||||
public Result Result; // m_eResult enum EResult
|
||||
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
||||
public AppId_t [32] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.U4)]
|
||||
public AppId_t[] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
||||
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
||||
|
||||
@ -24818,7 +24819,8 @@ internal struct PackSmall
|
||||
{
|
||||
public Result Result; // m_eResult enum EResult
|
||||
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
||||
public AppId_t [32] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.U4)]
|
||||
public AppId_t[] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
||||
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
||||
|
||||
|
@ -192,6 +192,13 @@ private void StructFields( SteamApiDefinition.StructDef.StructFields[] fields )
|
||||
t = "IntPtr";
|
||||
}
|
||||
|
||||
if (t.StartsWith("AppId_t ") && t.Contains("["))
|
||||
{
|
||||
var num = t.Replace("AppId_t", "").Trim('[', ']', ' ');
|
||||
t = $"AppId_t[]";
|
||||
WriteLine($"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]");
|
||||
}
|
||||
|
||||
WriteLine( $"public {t} {CleanMemberName( m.Name )}; // {m.Name} {m.Type}" );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user