mirror of
https://github.com/NexusForever/NexusForever
synced 2026-08-14 00:26:05 -04:00
* Added Client Connector * Updated Client Connector * Style changes because Rawaho is picky * More changes to the client launcher * Fixed Compiling Error
16 lines
413 B
C#
16 lines
413 B
C#
using System.IO;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NexusForever.ClientConnector.Configuration
|
|
{
|
|
public static class ConfigurationManager<T>
|
|
{
|
|
public static T Config { get; private set; }
|
|
|
|
public static void Initialise(string file)
|
|
{
|
|
string fileContents = File.ReadAllText(file);
|
|
Config = JsonConvert.DeserializeObject<T>(fileContents);
|
|
}
|
|
}
|
|
}
|