Mother2GbaTranslation/ScriptTool/ScriptToolGui/Config.cs

24 lines
501 B
C#
Raw Normal View History

2015-05-04 19:50:53 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using Newtonsoft.Json;
namespace ScriptToolGui
{
class Config
{
public string WorkingFolder { get; set; }
public static Config Read(string configPath)
{
if (!File.Exists(configPath))
return null;
return JsonConvert.DeserializeObject<Config>(File.ReadAllText(configPath));
}
}
}