From 9fb07c67657d5f4e6993c03fe18ba04ad0c2d416 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 31 Aug 2023 17:23:39 -0400 Subject: lua config file improvements (#379) - Bugfix: All options given on command line now overrides lua config file settings - Improvement: All options available from command line can now be configured in the lua config file (with a few exceptions such as `owner-pid`, `install` and `uninstall`) We can now also generate a Lua config (just string so far) that includes all options given on command line together with any optional Lua input config file. The idea here is to be able to save config options in the future. --- src/zencore/filesystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/zencore/filesystem.cpp') diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp index daf668290..e17d83895 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -207,6 +207,10 @@ CleanDirectory(const wchar_t* DirPath) bool CreateDirectories(const std::filesystem::path& Dir) { + if (Dir.string().ends_with(":")) + { + return false; + } while (!std::filesystem::is_directory(Dir)) { if (Dir.has_parent_path()) -- cgit v1.2.3