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

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