Skip to content

Commit

Permalink
making sure the config folder exists!!
Browse files Browse the repository at this point in the history
  • Loading branch information
poeticAndroid committed Sep 8, 2019
1 parent 9ef21ef commit 74f2cc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion source/machine.d
Original file line number Diff line number Diff line change
Expand Up @@ -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"!
Expand Down

0 comments on commit 74f2cc8

Please sign in to comment.