mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
rename IsSingleCodeFile
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ public:
|
||||
GBIMinorVersion GetGBIMinorVersion() const { return this->gConfig.gbi.subversion; }
|
||||
std::unordered_map<std::string, std::vector<YAML::Node>> GetCourseMetadata() { return this->gCourseMetadata; }
|
||||
std::optional<std::string> GetEnumFromValue(const std::string& key, int id);
|
||||
bool IsSingleCodeFile() const { return this->gIndividualIncludes; }
|
||||
bool IsUsingIndividualIncludes() const { return this->gIndividualIncludes; }
|
||||
|
||||
std::optional<ParseResultData> GetParseDataByAddr(uint32_t addr);
|
||||
std::optional<ParseResultData> GetParseDataBySymbol(const std::string& symbol);
|
||||
|
||||
@@ -158,7 +158,7 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP
|
||||
}
|
||||
imgstream << std::endl;
|
||||
|
||||
if (Companion::Instance->IsSingleCodeFile()){
|
||||
if (!Companion::Instance->IsUsingIndividualIncludes()){
|
||||
std::ofstream file(dpath + ".inc.c", std::ios::binary);
|
||||
file << imgstream.str();
|
||||
file.close();
|
||||
@@ -178,7 +178,7 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP
|
||||
}
|
||||
|
||||
write << tab << "{\n";
|
||||
if (Companion::Instance->IsSingleCodeFile()){
|
||||
if (!Companion::Instance->IsUsingIndividualIncludes()){
|
||||
write << tab << tab << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n";
|
||||
} else {
|
||||
write << imgstream.str();
|
||||
@@ -194,7 +194,7 @@ ExportResult TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IP
|
||||
} else {
|
||||
write << GetSafeNode<std::string>(node, "ctype", "u8") << " " << symbol << "[] = {\n";
|
||||
|
||||
if (Companion::Instance->IsSingleCodeFile()){
|
||||
if (!Companion::Instance->IsUsingIndividualIncludes()){
|
||||
write << tab << "#include \"" << Companion::Instance->GetOutputPath() + "/" << *replacement << ".inc.c\"\n";
|
||||
} else {
|
||||
write << imgstream.str();
|
||||
|
||||
Reference in New Issue
Block a user