Skip to content

Commit

Permalink
Vtx now uses decimals and inc files add a new line at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Feb 19, 2024
1 parent 298b3ff commit 56ade56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Companion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ void Companion::Process() {
break;
}
case ExportType::Code: {
fsout /= this->gCurrentDirectory / "bin.c";
fsout /= this->gCurrentDirectory / (filename + ".c");
break;
}
default: break;
Expand Down
1 change: 1 addition & 0 deletions src/factories/TextureFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/factories/VtxFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56ade56

Please sign in to comment.