From 8489465e983085946bc270001fbaf839ab870c73 Mon Sep 17 00:00:00 2001 From: jeffman Date: Tue, 8 Jan 2019 20:48:20 -0500 Subject: [PATCH] Config uses Asset --- tools/ScriptToolGui/Config.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); } } }