diff --git a/src/Companion.cpp b/src/Companion.cpp index fa52f92a..3b2b99f1 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 cef79c1f..5a0caade 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -110,6 +110,7 @@ void TextureCodeExporter::Export(std::ostream &write, std::shared_ptr(data[i]) << ", "; } + file << std::endl; file.close(); diff --git a/src/factories/VtxFactory.cpp b/src/factories/VtxFactory.cpp index e3ec7164..f283aecf 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 raw, std::string& entryName, YAML::Node &node, std::string* replacement) { const auto symbol = GetSafeNode(node, "symbol", entryName);