public static App[] GetSubscribedApps(ReturnCriteria rc) { List <App> appList = new List <App>(); uint[] appIDs; if (!GetAppIds(out appIDs)) { return(null); } foreach (uint appID in appIDs) { if (!IsAppSubscribed(appID)) { continue; } TSteamApp steamApp; if (!GetAppInternal(appID, out steamApp)) { continue; } if (rc != null) { if (!rc(steamApp)) { continue; } } string icon = GetAppData(appID, "logo"); App stmApp = new App() { Name = steamApp.szName, AppID = appID, Icon = icon, }; appList.Add(stmApp); } return(appList.ToArray()); }
public static App[] GetSubscribedApps( ReturnCriteria rc ) { List<App> appList = new List<App>(); uint[] appIDs; if ( !GetAppIds( out appIDs ) ) return null; foreach ( uint appID in appIDs ) { if ( !IsAppSubscribed( appID ) ) continue; TSteamApp steamApp; if ( !GetAppInternal( appID, out steamApp ) ) continue; if ( rc != null ) { if ( !rc( steamApp ) ) continue; } string icon = GetAppData( appID, "logo" ); App stmApp = new App() { Name = steamApp.szName, AppID = appID, Icon = icon, }; appList.Add( stmApp ); } return appList.ToArray(); }