Fixed pad using hex generation sometimes

This commit is contained in:
KiritoDv
2024-03-05 00:57:56 -06:00
parent a20e0a3550
commit cfd2ec35ce
+1 -1
View File
@@ -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, ";
}