Config uses Asset

This commit is contained in:
jeffman 2019-01-08 20:48:20 -05:00
parent b182e95013
commit 8489465e98
1 changed files with 3 additions and 2 deletions

View File

@ -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<Config>(File.ReadAllText(configPath));
return JsonConvert.DeserializeObject<Config>(Asset.ReadAllText(configPath));
}
}
}