diff options
| author | Kenix3 <kenixwhisperwind@gmail.com> | 2021-01-01 18:31:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-01 18:31:05 -0500 |
| commit | 1a71d7020ee7a601232cc4a422101061703bf3c6 (patch) | |
| tree | 584549dcaa01578e9240c89334e8c77ee7886443 /ZAPD/ZCutscene.cpp | |
| parent | a8430341a143a40d31874b6659dff89aa58959da (diff) | |
No longer using snake case name variables and segment offsets now print to 6 characters (#39)
Diffstat (limited to 'ZAPD/ZCutscene.cpp')
| -rw-r--r-- | ZAPD/ZCutscene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZCutscene.cpp b/ZAPD/ZCutscene.cpp index 9a5fd07..3130771 100644 --- a/ZAPD/ZCutscene.cpp +++ b/ZAPD/ZCutscene.cpp @@ -172,7 +172,7 @@ string CutsceneCommand::GetCName(string prefix) string CutsceneCommand::GenerateSourceCode(string roomName, int baseAddress) { - return StringHelper::Sprintf("%s _%s_cutsceneData_%04X_cmd%02X = { 0x%02X,", GetCName(roomName).c_str(), roomName.c_str(), baseAddress, commandIndex, commandID); + return StringHelper::Sprintf("%s %sCutsceneData%04XCmd%02X = { 0x%02X,", GetCName(roomName).c_str(), roomName.c_str(), baseAddress, commandIndex, commandID); } size_t CutsceneCommand::GetCommandSize() @@ -261,7 +261,7 @@ string CutsceneCommandSetCameraPos::GenerateSourceCode(string roomName, int base for (int i = 0; i < entries.size(); i++) { - result += StringHelper::Sprintf("\t\t%s(%i, %i, %i, 0x%08X, %i, %i, %i, %i),\n", posStr.c_str(), entries[i]->continueFlag, entries[i]->cameraRoll, entries[i]->nextPointFrame, + result += StringHelper::Sprintf("\t\t%s(%i, %i, %i, 0x%06X, %i, %i, %i, %i),\n", posStr.c_str(), entries[i]->continueFlag, entries[i]->cameraRoll, entries[i]->nextPointFrame, *(uint32_t*)&entries[i]->viewAngle, entries[i]->posX, entries[i]->posY, entries[i]->posZ, entries[i]->unused); } |
