Exemplo n.º 1
0
#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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
#pragma warning restore 0649

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