diff --git a/Utilities/bin_patch.cpp b/Utilities/bin_patch.cpp index 60661074fd..9c35920e78 100644 --- a/Utilities/bin_patch.cpp +++ b/Utilities/bin_patch.cpp @@ -65,7 +65,15 @@ patch_engine::patch_engine() std::string patch_engine::get_patch_config_path() { #ifdef _WIN32 - return fs::get_config_dir() + "config/patch_config.yml"; + const std::string config_dir = fs::get_config_dir() + "config/"; + const std::string patch_path = config_dir + "patch_config.yml"; + + if (!fs::create_path(config_dir)) + { + patch_log.error("Could not create path: %s", patch_path); + } + + return patch_path; #else return fs::get_config_dir() + "patch_config.yml"; #endif