From f78c4525a702f110a70118316ce6d113f24aca4d Mon Sep 17 00:00:00 2001 From: AltoXorg Date: Sun, 28 Apr 2024 19:24:12 +0800 Subject: [PATCH] header path must match yaml path with subdirs --- src/Companion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Companion.cpp b/src/Companion.cpp index 021597f..0ca56f6 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -765,7 +765,7 @@ void Companion::ProcessFile(YAML::Node root) { switch (this->gConfig.exporterType) { case ExportType::Header: { - fsout /= filename + ".h"; + fsout /= this->gCurrentDirectory.parent_path() / (filename + ".h"); break; } case ExportType::Code: {