30 lines
787 B
C#
30 lines
787 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BeatSaber_Versions.controller.helper
|
|||
|
{
|
|||
|
internal class ConfigFile
|
|||
|
{
|
|||
|
static public bool isConfigFileThere(string path)
|
|||
|
{
|
|||
|
return File.Exists(path);
|
|||
|
}
|
|||
|
static public VersionConfigDict createEmptyConfig()
|
|||
|
{
|
|||
|
VersionConfig tmp = new VersionConfig();
|
|||
|
VersionConfigDict conf = new VersionConfigDict();
|
|||
|
|
|||
|
tmp.name = "Example";
|
|||
|
tmp.path = "C:\\Steam\\Beat Saber";
|
|||
|
tmp.version = "1.21.0";
|
|||
|
conf.versions = new Dictionary<string, VersionConfig>();
|
|||
|
conf.versions.Add(tmp.version, tmp);
|
|||
|
|
|||
|
return conf;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|