mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
config.json editor
This commit is contained in:
19
AppApi.cs
19
AppApi.cs
@@ -54,6 +54,25 @@ namespace VRCX
|
||||
return fileData.Length.ToString();
|
||||
}
|
||||
|
||||
public string ReadConfigFile()
|
||||
{
|
||||
var logPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"Low\VRChat\VRChat\";
|
||||
var configFile = Path.Combine(logPath, @"config.json");
|
||||
if (!Directory.Exists(logPath) || !File.Exists(configFile))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
var json = System.IO.File.ReadAllText(configFile);
|
||||
return json;
|
||||
}
|
||||
|
||||
public void WriteConfigFile(string json)
|
||||
{
|
||||
var logPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"Low\VRChat\VRChat\";
|
||||
var configFile = Path.Combine(logPath, @"config.json");
|
||||
System.IO.File.WriteAllText(configFile, json);
|
||||
}
|
||||
|
||||
public void ShowDevTools()
|
||||
{
|
||||
MainForm.Instance.Browser.ShowDevTools();
|
||||
|
||||
Reference in New Issue
Block a user