Callback fix

This commit is contained in:
Garry Newman 2020-02-22 21:13:47 +00:00
parent abb749078b
commit 4b10d72d12
3 changed files with 4 additions and 6 deletions

View File

@ -1479,7 +1479,7 @@ namespace Steamworks.Data
#endregion #endregion
} }
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )] [StructLayout( LayoutKind.Sequential, Pack = Platform.StructPackSize )]
internal struct UserAchievementIconFetched_t : ICallbackData internal struct UserAchievementIconFetched_t : ICallbackData
{ {
internal GameId GameID; // m_nGameID CGameID internal GameId GameID; // m_nGameID CGameID

View File

@ -17,11 +17,6 @@ namespace Generator
private Dictionary<string, TypeDef> TypeDefs = new Dictionary<string, TypeDef>(); private Dictionary<string, TypeDef> TypeDefs = new Dictionary<string, TypeDef>();
public readonly static string[] ForceLargePackStructs = new string[]
{
"LeaderboardEntry_t"
};
void Structs() void Structs()
{ {
foreach ( var c in def.structs ) foreach ( var c in def.structs )

View File

@ -108,6 +108,9 @@ namespace Generator
if ( Fields.Any( x => x.Type.Contains( "CSteamID" ) ) ) if ( Fields.Any( x => x.Type.Contains( "CSteamID" ) ) )
return true; return true;
if ( Fields.Any( x => x.Type.Contains( "CGameID" ) ) )
return true;
return false; return false;
} }
} }