Fixed GlobalStatsReceived not added to debug list

This commit is contained in:
Garry Newman 2020-02-28 13:26:06 +00:00
parent 773ea24aa4
commit e9978ec55b
2 changed files with 5 additions and 4 deletions

View File

@ -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 )},

View File

@ -26,7 +26,10 @@ namespace Generator
StartBlock( "internal static System.Collections.Generic.Dictionary<CallbackType, System.Type> All = new System.Collections.Generic.Dictionary<CallbackType, System.Type>" );
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)} )}}," );