summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetObjectList.cpp
diff options
context:
space:
mode:
authorKenix3 <kenixwhisperwind@gmail.com>2021-01-01 18:31:05 -0500
committerGitHub <noreply@github.com>2021-01-01 18:31:05 -0500
commit1a71d7020ee7a601232cc4a422101061703bf3c6 (patch)
tree584549dcaa01578e9240c89334e8c77ee7886443 /ZAPD/ZRoom/Commands/SetObjectList.cpp
parenta8430341a143a40d31874b6659dff89aa58959da (diff)
No longer using snake case name variables and segment offsets now print to 6 characters (#39)
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetObjectList.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetObjectList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ZAPD/ZRoom/Commands/SetObjectList.cpp b/ZAPD/ZRoom/Commands/SetObjectList.cpp
index cbbb37d..bec341f 100644
--- a/ZAPD/ZRoom/Commands/SetObjectList.cpp
+++ b/ZAPD/ZRoom/Commands/SetObjectList.cpp
@@ -27,14 +27,14 @@ SetObjectList::SetObjectList(ZRoom* nZRoom, std::vector<uint8_t> rawData, int ra
string SetObjectList::GenerateExterns()
{
- return StringHelper::Sprintf("s16 _%s_objectList_%08X[];\n", zRoom->GetName().c_str(), segmentOffset);
+ return StringHelper::Sprintf("s16 %sObjectList0x%06X[];\n", zRoom->GetName().c_str(), segmentOffset);
}
string SetObjectList::GenerateSourceCodePass1(string roomName, int baseAddress)
{
string sourceOutput = "";
- sourceOutput += StringHelper::Sprintf("%s 0x%02X, (u32)_%s_objectList_%08X", ZRoomCommand::GenerateSourceCodePass1(roomName, baseAddress).c_str(), objects.size(), zRoom->GetName().c_str(), segmentOffset);
+ sourceOutput += StringHelper::Sprintf("%s 0x%02X, (u32)%sObjectList0x%06X", ZRoomCommand::GenerateSourceCodePass1(roomName, baseAddress).c_str(), objects.size(), zRoom->GetName().c_str(), segmentOffset);
string declaration = "";
@@ -48,7 +48,7 @@ string SetObjectList::GenerateSourceCodePass1(string roomName, int baseAddress)
}
zRoom->parent->AddDeclarationArray(segmentOffset, DeclarationAlignment::None, objects.size() * 2, "s16",
- StringHelper::Sprintf("_%s_objectList_%08X", zRoom->GetName().c_str(), segmentOffset), objects.size(), declaration);
+ StringHelper::Sprintf("%sObjectList0x%06X", zRoom->GetName().c_str(), segmentOffset), objects.size(), declaration);
return sourceOutput;
}