diff options
| author | AltoXorg <atrl101@yahoo.com> | 2024-05-12 15:55:27 +0800 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-05-13 23:07:08 -0600 |
| commit | 311638a3bff9ea8af6799dc20ae4abf8c8a52ad1 (patch) | |
| tree | 32255bd286fa403452cdb78418a74aba9803b70a /src/Companion.cpp | |
| parent | f78c4525a702f110a70118316ce6d113f24aca4d (diff) | |
Update path generation for individual include files.
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 0ca56f6..99ca2a7 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -853,7 +853,8 @@ void Companion::ProcessFile(YAML::Node root) { } if (this->gConfig.exporterType == ExportType::Code && this->gIndividualIncludes) { - fs::path outinc = fs::path(this->gConfig.outputPath) / this->gCurrentDirectory.parent_path() / (result.name + ".inc.c"); + fs::path outinc = fs::path(this->gConfig.outputPath) / this->gCurrentDirectory.parent_path() / + fs::relative(fs::path(result.name + ".inc.c"), this->gCurrentDirectory.parent_path()); if(!exists(outinc.parent_path())){ create_directories(outinc.parent_path()); |
