From 4a6a7bc60f8c4f32879fcdc053bfc5fff0ae7699 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 26 Sep 2020 23:03:54 +0200 Subject: [PATCH] Configuration file is now closed and parsed into JSON and set as the runtime config --- source/app.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/app.d b/source/app.d index be32e96..725b86f 100644 --- a/source/app.d +++ b/source/app.d @@ -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); } \ No newline at end of file