summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
authorAltoXorg <56553686+Alto1772@users.noreply.github.com>2024-04-19 19:26:39 +0800
committerLywx <kiritodev01@gmail.com>2024-04-20 10:25:02 -0600
commitee04f056c4b5c55249a0be42b69021bb967b30bf (patch)
tree41ad6262d27fc22e35f0399501538853af9b572a /src/Companion.cpp
parenta2c0ff739266850357f4ccda04b5f23ac501fba4 (diff)
rename to gIndividualIncludes
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index bd8ef32..bef1667 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -354,7 +354,7 @@ void Companion::ParseCurrentFileConfig(YAML::Node node) {
this->gEnablePadGen = GetSafeNode<bool>(node, "autopads", true);
this->gNodeForceProcessing = GetSafeNode<bool>(node, "force", false);
- this->gSingleCodeFile = !GetSafeNode<bool>(node, "individual_data_incs", false);
+ this->gIndividualIncludes = GetSafeNode<bool>(node, "individual_data_incs", false);
}
void Companion::ParseHash() {
@@ -953,7 +953,7 @@ void Companion::Process() {
stream << "// 0x" << std::hex << std::uppercase << ASSET_PTR(result.endptr.value()) << "\n\n";
}
- if(hasSize && i < entries.size() - 1 && this->gConfig.exporterType == ExportType::Code && this->gSingleCodeFile){
+ if(hasSize && i < entries.size() - 1 && this->gConfig.exporterType == ExportType::Code && !this->gIndividualIncludes){
int32_t startptr = ASSET_PTR(result.endptr.value());
int32_t end = ASSET_PTR(entries[i + 1].addr);
@@ -986,7 +986,7 @@ void Companion::Process() {
}
}
- if (this->gConfig.exporterType == ExportType::Code && !this->gSingleCodeFile) {
+ if (this->gConfig.exporterType == ExportType::Code && this->gIndividualIncludes) {
fs::path outinc = fs::path(this->gConfig.outputPath) / this->gCurrentDirectory.parent_path() / (result.name + ".inc.c");
if(!exists(outinc.parent_path())){
@@ -1007,7 +1007,7 @@ void Companion::Process() {
this->gWriteMap.clear();
- if (this->gConfig.exporterType != ExportType::Code || this->gSingleCodeFile) {
+ if (this->gConfig.exporterType != ExportType::Code || !this->gIndividualIncludes) {
std::string buffer = stream.str();
if(buffer.empty()) {