Update path generation for individual include files.

This commit is contained in:
AltoXorg
2024-05-13 23:07:08 -06:00
committed by Lywx
parent f78c4525a7
commit 311638a3bf
+2 -1
View File
@@ -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());