Example #1
0
        KeyValue TryGetConfigByAppId(uint appId)
        {
            KeyValue apps = null;

            try {
                apps = Config.GetKeyValue("Software", "Valve", "Steam", "apps");
            } catch (KeyNotFoundException ex) {
                if (Common.Flags.Verbose)
                {
                    MainLog.Logger.FormattedWarnException(ex, "Config Store Invalid");
                }
                return(null);
            }
            try {
                return(apps.GetKeyValue(appId.ToString()));
            } catch (Exception) {
                return(null);
            }
        }