예제 #1
0
파일: Steam.cs 프로젝트: bmk10/hl2sb-src-1
        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());
        }
예제 #2
0
        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();
        }