mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-30 03:28:55 -07:00
hopefully fix compilation for everythign
This commit is contained in:
parent
aaf1632951
commit
2b29dbbc42
8 changed files with 22 additions and 14 deletions
|
@ -801,9 +801,11 @@ void ZFile::GenerateSourceHeaderFiles()
|
|||
OutputFormatter formatter;
|
||||
|
||||
formatter.Write("#pragma once\n");
|
||||
bool first = true;
|
||||
for (ZResource* res : resources)
|
||||
{
|
||||
std::string resSrc = res->GetSourceOutputHeader("");
|
||||
std::string resSrc = res->GetSourceOutputHeader("", first);
|
||||
first = false;
|
||||
formatter.Write(resSrc);
|
||||
|
||||
if (resSrc != "")
|
||||
|
@ -812,7 +814,7 @@ void ZFile::GenerateSourceHeaderFiles()
|
|||
|
||||
for (auto& sym : symbolResources)
|
||||
{
|
||||
formatter.Write(sym.second->GetSourceOutputHeader(""));
|
||||
formatter.Write(sym.second->GetSourceOutputHeader("", first));
|
||||
}
|
||||
|
||||
formatter.Write(ProcessExterns());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue