mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed pad using hex generation sometimes
This commit is contained in:
+1
-1
@@ -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, ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user