#pragma warning restore 0649

        public static OpenVrPaths Read()
        {
            OpenVrPaths temp = JsonFile.Read <OpenVrPaths>(path);

            if (temp.external_drivers == null)
            {
                temp.external_drivers = new List <string>();
            }

            return(temp);
        }
Esempio n. 2
0
#pragma warning restore 0649

        public static AppConfig Read()
        {
            AppConfig appConfig = null;

            try
            {
                appConfig = JsonFile.Read <AppConfig>(path);
            }
            catch (FileNotFoundException) { }
            if (appConfig == null)
            {
                appConfig = new AppConfig()
                {
                    manifest_paths = new List <string>
                    {
                        Path.Combine(App.state.steamPath, "config", "steamapps.vrmanifest")
                    }
                };
            }
            return(appConfig);
        }
Esempio n. 3
0
#pragma warning restore 0649

        public static AppConfig Read()
        {
            return(JsonFile.Read <AppConfig>(path));
        }