Fixes data file loading (#145)
This commit is contained in:
parent
eb0f960be6
commit
5ea11cef11
10 changed files with 70 additions and 100 deletions
|
|
@ -147,9 +147,9 @@ namespace Server
|
|||
|
||||
if (m_Settings == null)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Utility.PushColor(ConsoleColor.Red);
|
||||
Console.WriteLine("failed");
|
||||
Console.ResetColor();
|
||||
Utility.PopColor();
|
||||
throw new Exception("Core: Server configuration failed to deserialize.");
|
||||
}
|
||||
|
||||
|
|
@ -174,9 +174,9 @@ namespace Server
|
|||
if (updated)
|
||||
{
|
||||
Save();
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Utility.PushColor(ConsoleColor.Green);
|
||||
Console.WriteLine($"Core: Configuration saved to {m_RelPath}.");
|
||||
Console.ResetColor();
|
||||
Utility.PopColor();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue