mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 02:27:21 -07:00
Ensures MQ and Vanilla title Logos are saved with different names. (#1788)
This way either one can be loaded according to which OTR/whether or not MQ is enabled.
This commit is contained in:
parent
fc1a009953
commit
60c9e869e3
3 changed files with 33 additions and 2 deletions
|
@ -362,6 +362,28 @@ static const char %s[] __attribute__((aligned (2))) = d%s;
|
|||
}
|
||||
}
|
||||
|
||||
if (name == "gTitleZeldaShieldLogoMQTex")
|
||||
{
|
||||
std::string addName = "gTitleZeldaShieldLogoTex";
|
||||
nameStr = StringHelper::Strip(StringHelper::Strip(addName, "\n"), "\r");
|
||||
str += StringHelper::Sprintf("\n#define d%s \"__OTR__%s/%s/%s\"", addName.c_str(), prefix.c_str(), outName.c_str(), nameStr.c_str());
|
||||
if (nameSet && nameSet->find(addName) == nameSet->end())
|
||||
{
|
||||
str += StringHelper::Sprintf(R"(
|
||||
#ifdef _WIN32
|
||||
static const __declspec(align(2)) char %s[] = d%s;
|
||||
#else
|
||||
static const char %s[] __attribute__((aligned (2))) = d%s;
|
||||
#endif
|
||||
)", addName.c_str(), addName.c_str(), addName.c_str(), addName.c_str());
|
||||
|
||||
if (nameSet)
|
||||
{
|
||||
nameSet->insert(addName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue