#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);
        }
Exemple #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);
        }
 public void Write()
 {
     JsonFile.Write(path, this, 3, ' ');
 }
#pragma warning restore 0649

        public static AppConfig Read()
        {
            return(JsonFile.Read <AppConfig>(path));
        }
 public void Write()
 {
     JsonFile.Write(path, this, 1, '\t');
 }