Configuration file is now closed and parsed into JSON and set as the runtime config

This commit is contained in:
Tristan B. Kildaire 2020-09-26 23:03:54 +02:00
parent ad71724cb2
commit 4a6a7bc60f
1 changed files with 3 additions and 0 deletions

View File

@ -188,4 +188,7 @@ void loadConfig(string configPath)
byte[] buffer;
buffer.length = file.size();
buffer = file.rawRead(buffer);
file.close();
config = parseJSON(cast(string)buffer);
}