From 111495100fba629e5d93c646b4f099b6b3ba10c0 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Sun, 25 Jun 2017 20:22:33 +0100 Subject: [PATCH] Get applist --- Facepunch.Steamworks/Interop/Native.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Facepunch.Steamworks/Interop/Native.cs b/Facepunch.Steamworks/Interop/Native.cs index c59902f..24c0a1c 100644 --- a/Facepunch.Steamworks/Interop/Native.cs +++ b/Facepunch.Steamworks/Interop/Native.cs @@ -12,6 +12,7 @@ namespace Facepunch.Steamworks.Interop internal SteamNative.SteamClient client; internal SteamNative.SteamUser user; internal SteamNative.SteamApps apps; + internal SteamNative.SteamAppList applist; internal SteamNative.SteamFriends friends; internal SteamNative.SteamMatchmakingServers servers; internal SteamNative.SteamMatchmaking matchmaking; @@ -110,6 +111,7 @@ namespace Facepunch.Steamworks.Interop screenshots = client.GetISteamScreenshots( huser, hpipe, SteamNative.Defines.STEAMSCREENSHOTS_INTERFACE_VERSION ); remoteStorage = client.GetISteamRemoteStorage( huser, hpipe, SteamNative.Defines.STEAMREMOTESTORAGE_INTERFACE_VERSION ); matchmaking = client.GetISteamMatchmaking( huser, hpipe, SteamNative.Defines.STEAMMATCHMAKING_INTERFACE_VERSION ); + applist = client.GetISteamAppList( huser, hpipe, SteamNative.Defines.STEAMAPPLIST_INTERFACE_VERSION ); } public void Dispose() @@ -224,6 +226,12 @@ namespace Facepunch.Steamworks.Interop remoteStorage = null; } + if ( applist != null ) + { + applist.Dispose(); + applist = null; + } + if ( api != null ) { if ( isServer )