Configuration now loads up prior to the files being accessed.
This commit is contained in:
parent
ea18dec857
commit
95c1710b55
2 changed files with 12 additions and 8 deletions
|
|
@ -66,6 +66,10 @@ namespace TShockAPI
|
|||
|
||||
public static void WriteJsonConfiguration()
|
||||
{
|
||||
if (!System.IO.Directory.Exists(FileTools.SaveDir))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(FileTools.SaveDir);
|
||||
}
|
||||
if (System.IO.File.Exists(FileTools.SaveDir + "config.json"))
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue