Skip to content

Commit

Permalink
Fixed pad using hex generation sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Mar 5, 2024
1 parent a20e0a3 commit cfd2ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Companion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar
if(node["pad"]){
auto filename = this->gCurrentDirectory.filename().string();
auto pad = GetSafeNode<uint32_t>(node, "pad");
stream << "char pad_" << filename << "_" << gCurrentPad++ << "[] = {\n" << tab;
stream << "char pad_" << filename << "_" << std::to_string(gCurrentPad++) << "[] = {\n" << tab;
for(int i = 0; i < pad; i++){
stream << "0x00, ";
}
Expand Down

0 comments on commit cfd2ec3

Please sign in to comment.