diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-02-18 19:03:58 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-02-18 19:03:58 -0600 |
| commit | 56ade56c1236adcefddf1e97fffee0b1555c0877 (patch) | |
| tree | 70a3900ba9d3fa9b38e499999746c1c8159e78c6 | |
| parent | 298b3ff0d09ac94b5c826aa9e33337e89c6ff194 (diff) | |
Vtx now uses decimals and inc files add a new line at the end
| -rw-r--r-- | src/Companion.cpp | 2 | ||||
| -rw-r--r-- | src/factories/TextureFactory.cpp | 1 | ||||
| -rw-r--r-- | src/factories/VtxFactory.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index fa52f92..3b2b99f 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -413,7 +413,7 @@ void Companion::Process() { break; } case ExportType::Code: { - fsout /= this->gCurrentDirectory / "bin.c"; + fsout /= this->gCurrentDirectory / (filename + ".c"); break; } default: break; diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp index cef79c1..5a0caad 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -110,6 +110,7 @@ void TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedDat file << "0x" << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(data[i]) << ", "; } + file << std::endl; file.close(); diff --git a/src/factories/VtxFactory.cpp b/src/factories/VtxFactory.cpp index e3ec716..f283aec 100644 --- a/src/factories/VtxFactory.cpp +++ b/src/factories/VtxFactory.cpp @@ -4,7 +4,7 @@ #include "utils/Decompressor.h" #define NUM(x) std::dec << std::setfill(' ') << std::setw(6) << x -#define COL(c) "0x" << std::hex << std::setw(2) << std::setfill('0') << c +#define COL(c) std::dec << std::setfill(' ') << std::setw(3) << c void VtxHeaderExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement) { const auto symbol = GetSafeNode(node, "symbol", entryName); |
