From 8db2b4672949645972a1ad91421e5b8749bbe727 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Thu, 27 Feb 2020 09:49:58 +0000 Subject: [PATCH] Hide structs starting with "PS3" --- Facepunch.Steamworks/Generated/SteamCallbacks.cs | 14 -------------- Generator/Cleanup.cs | 4 +++- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Facepunch.Steamworks/Generated/SteamCallbacks.cs b/Facepunch.Steamworks/Generated/SteamCallbacks.cs index ac7b005..c6af5a2 100644 --- a/Facepunch.Steamworks/Generated/SteamCallbacks.cs +++ b/Facepunch.Steamworks/Generated/SteamCallbacks.cs @@ -1523,20 +1523,6 @@ namespace Steamworks.Data #endregion } - [StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )] - internal struct PS3TrophiesInstalled_t : ICallbackData - { - internal ulong GameID; // m_nGameID uint64 - internal Result Result; // m_eResult EResult - internal ulong RequiredDiskSpace; // m_ulRequiredDiskSpace uint64 - - #region SteamCallback - public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(PS3TrophiesInstalled_t) ); - public int DataSize => _datasize; - public CallbackType CallbackType => CallbackType.PS3TrophiesInstalled; - #endregion - } - [StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )] internal struct GlobalStatsReceived_t : ICallbackData { diff --git a/Generator/Cleanup.cs b/Generator/Cleanup.cs index d027708..3a6f24f 100644 --- a/Generator/Cleanup.cs +++ b/Generator/Cleanup.cs @@ -143,10 +143,12 @@ public static class Cleanup internal static bool IsDeprecated( string name ) { + if ( name.StartsWith( "PS3" ) ) return true; + if ( name == "SocketStatusCallback_t" ) return true; if ( name == "SNetSocketConnectionType" ) return true; if ( name == "SNetSocketState" ) return true; - + if ( name.StartsWith( "ISteamRemoteStorage." ) ) { if ( name.Contains( "Publish" ) ) return true;