コード例 #1
0
        public static bool LoadSteam()
        {
            try
            {
                if (Definitions.Global.Steam.IsStateChanging || Definitions.Global.Steam.Loaded)
                {
                    return(false);
                }

                Definitions.Global.Steam.IsStateChanging = true;

                Steam.UpdateSteamInstallationPathAsync();
                Steam.PopulateLibraryCMenuItems();
                Steam.PopulateAppCMenuItems();

                Steam.Library.GenerateLibraryList();

                Library.GenerateLibraryList();

                Definitions.Global.Steam.IsStateChanging = false;
                Definitions.Global.Steam.Loaded          = true;
                return(true);
            }
            catch (Exception ex)
            {
                Logger.Fatal(ex);
                Definitions.Global.Steam.IsStateChanging = false;
                return(false);
            }
        }
コード例 #2
0
        public static void LoadSteam()
        {
            try
            {
                Steam.UpdateSteamInstallationPathAsync();
                Steam.PopulateLibraryCMenuItems();
                Steam.PopulateAppCMenuItems();

                Steam.Library.GenerateLibraryList();
            }
            catch (Exception ex)
            {
                logger.Fatal(ex);
            }
        }