diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-05-26 01:48:04 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-05-26 01:48:04 -0600 |
| commit | 06bc15d535b3cd623814be3b51d7a916cee8cb59 (patch) | |
| tree | 2ea340592e53afe7d6718c6bc665fb54eea0973c /src/factories/TextureFactory.cpp | |
| parent | afd800afc0bad0dd034eb732354ed25c81621d2e (diff) | |
Fixed tab define conflicting with imgui
Diffstat (limited to 'src/factories/TextureFactory.cpp')
| -rw-r--r-- | src/factories/TextureFactory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp index 7de095a..34a6362 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -104,7 +104,7 @@ ExportResult TextureHeaderExporter::Export(std::ostream &write, std::shared_ptr< if(end == offset){ write << "static const char* " << name << "[] = {\n"; for(auto& entry : tableEntries){ - write << tab << entry << ",\n"; + write << tab_t << entry << ",\n"; } write << "};\n\n"; tableEntries.clear(); @@ -181,13 +181,13 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP write << GetSafeNode<std::string>(node, "ctype", "u8") << " " << name << "[][" << isize << "] = {\n"; } - write << tab << "{\n"; + write << tab_t << "{\n"; if (!Companion::Instance->IsUsingIndividualIncludes()){ - write << tab << tab << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; + write << tab_t << tab_t << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; } else { write << imgstream.str(); } - write << tab << "},\n"; + write << tab_t << "},\n"; if(end == offset){ write << "};\n"; @@ -199,7 +199,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 << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; + write << tab_t << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n"; } else { write << imgstream.str(); } |
