diff options
| author | AltoXorg <56553686+Alto1772@users.noreply.github.com> | 2025-07-24 12:58:05 +0800 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-07-25 09:59:11 -0600 |
| commit | a81b16b01fdda0dc82e26cb37f19e3e54b275cf4 (patch) | |
| tree | ead1fbdd790ec44e5f5f0742839ebbe30ef9d27f /src/factories/TextureFactory.cpp | |
| parent | 87c6faae7e8fb00eba9b6d96d5ca1ae0e938e5b1 (diff) | |
Expand the src dest feature to every mode
Diffstat (limited to 'src/factories/TextureFactory.cpp')
| -rw-r--r-- | src/factories/TextureFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp index 75b6796..8e9d53c 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -137,7 +137,7 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP write << tab_t << "{\n"; if (!Companion::Instance->IsUsingIndividualIncludes()){ - write << tab_t << tab_t << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; + write << tab_t << tab_t << "#include \"" << Companion::Instance->GetDestRelativeOutputPath() + "/" << *replacement << ".inc.c\"\n"; } else { write << imgstream.str(); } @@ -153,7 +153,7 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP write << GetSafeNode<std::string>(node, "ctype", "u8") << " " << symbol << "[] = {\n"; if (!Companion::Instance->IsUsingIndividualIncludes()){ - write << tab_t << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; + write << tab_t << "#include \"" << Companion::Instance->GetDestRelativeOutputPath() + "/" << *replacement << ".inc.c\"\n"; } else { write << imgstream.str(); } |
