From 74f2cc8a078cfc6a2c7df09100c24c6fe0becf0c Mon Sep 17 00:00:00 2001 From: poetic android Date: Sun, 8 Sep 2019 17:19:18 +0200 Subject: [PATCH] making sure the config folder exists!! --- source/app.d | 2 ++ source/machine.d | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app.d b/source/app.d index bcf535d..582c486 100644 --- a/source/app.d +++ b/source/app.d @@ -107,6 +107,8 @@ int main(string[] args) } if (writeConfig) { + if (!exists(dirName(configFileName))) + mkdirRecurse(dirName(configFileName)); auto configFile = File(configFileName, "w"); configFile.write(toJSON(config, true)); configFile.close(); diff --git a/source/machine.d b/source/machine.d index f87e70f..9f326f1 100644 --- a/source/machine.d +++ b/source/machine.d @@ -20,7 +20,7 @@ import pixmap; import image_loader; import network; -const VERSION = "0.5.0"; /// version of the software +const VERSION = "0.5.1"; /// version of the software /** Class representing "the machine"!