summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index 3b2b99f..2372116 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -119,6 +119,18 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar
}
default: {
exporter->get()->Export(stream, result.value(), name, node, &name);
+
+ if(this->gConfig.exporterType == ExportType::Code) {
+ if(node["pad"]){
+ auto pad = GetSafeNode<uint32_t>(node, "pad");
+ stream << "char pad_" << gCurrentPad++ << "[] = {\n";
+ for(int i = 0; i < pad; i++){
+ stream << "0x00, ";
+ }
+ stream << "};\n\n";
+ }
+ }
+
break;
}
}