diff --git a/Facepunch.Steamworks/Generated/CustomEnums.cs b/Facepunch.Steamworks/Generated/CustomEnums.cs index 00928cc..6fc8707 100644 --- a/Facepunch.Steamworks/Generated/CustomEnums.cs +++ b/Facepunch.Steamworks/Generated/CustomEnums.cs @@ -296,9 +296,7 @@ namespace Steamworks { CallbackType.UserAchievementIconFetched, typeof( UserAchievementIconFetched_t )}, { CallbackType.GlobalAchievementPercentagesReady, typeof( GlobalAchievementPercentagesReady_t )}, { CallbackType.LeaderboardUGCSet, typeof( LeaderboardUGCSet_t )}, - // { CallbackType.PS3TrophiesInstalled, typeof( PS3TrophiesInstalled_t )}, - // { CallbackType.GlobalStatsReceived, typeof( GlobalStatsReceived_t )}, - // { CallbackType.SocketStatusCallback, typeof( SocketStatusCallback_t )}, + { CallbackType.GlobalStatsReceived, typeof( GlobalStatsReceived_t )}, { CallbackType.P2PSessionRequest, typeof( P2PSessionRequest_t )}, { CallbackType.P2PSessionConnectFail, typeof( P2PSessionConnectFail_t )}, { CallbackType.SteamNetConnectionStatusChangedCallback, typeof( SteamNetConnectionStatusChangedCallback_t )}, diff --git a/Generator/CodeWriter/CustomEnums.cs b/Generator/CodeWriter/CustomEnums.cs index c8c92e4..55e5844 100644 --- a/Generator/CodeWriter/CustomEnums.cs +++ b/Generator/CodeWriter/CustomEnums.cs @@ -26,7 +26,10 @@ namespace Generator StartBlock( "internal static System.Collections.Generic.Dictionary All = new System.Collections.Generic.Dictionary" ); foreach ( var c in def.callback_structs.OrderBy( x => x.CallbackId ) ) { - if ( Cleanup.IsDeprecated( c.Name ) || last == c.CallbackId ) + if ( Cleanup.IsDeprecated( c.Name ) ) + continue; + + if ( last == c.CallbackId ) Write( "// " ); WriteLine( $"{{ CallbackType.{c.Name.Replace( "_t", "" ) }, typeof( {Cleanup.ConvertType(c.Name)} )}}," );