diff --git a/tools/ScriptToolGui/Config.cs b/tools/ScriptToolGui/Config.cs index 931d921..4cb386e 100644 --- a/tools/ScriptToolGui/Config.cs +++ b/tools/ScriptToolGui/Config.cs @@ -5,6 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.IO; using Newtonsoft.Json; +using ScriptTool; namespace ScriptToolGui { @@ -14,10 +15,10 @@ namespace ScriptToolGui public static Config Read(string configPath) { - if (!File.Exists(configPath)) + if (!File.Exists(Asset.GetFullPath(configPath))) return null; - return JsonConvert.DeserializeObject(File.ReadAllText(configPath)); + return JsonConvert.DeserializeObject(Asset.ReadAllText(configPath)); } } }