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: {