diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-03-19 14:52:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-19 14:52:04 -0400 |
| commit | 1675f20955dca5f94fdf4b6b1f28532da9c83665 (patch) | |
| tree | ed80703d09b11b416c0f81cc09708ebcb10d0479 /ZAPD/ZCutscene.cpp | |
| parent | 50122b91242734ebf893af9f64b674127b73d831 (diff) | |
Fix all warnings output by Clang++ (#94)
* started on basic type errors
* Done. For now
* remove libgfxd binary
* Fix Clang Warnings
* Fix2
* Fix rollback of #92 and missed warning in ZCutscene.cpp
* ?
* add stdexcept to ZResource
* Fix make clean
* PR fixes
* Fix make file stuff
* Remove many more errors and remove -Wall
* Turns out Globals was used
Co-authored-by: Fig02 <fig02srl@gmail.com>
Diffstat (limited to 'ZAPD/ZCutscene.cpp')
| -rw-r--r-- | ZAPD/ZCutscene.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ZAPD/ZCutscene.cpp b/ZAPD/ZCutscene.cpp index 1edbda3..746c99d 100644 --- a/ZAPD/ZCutscene.cpp +++ b/ZAPD/ZCutscene.cpp @@ -39,14 +39,17 @@ ZCutscene::ZCutscene(std::vector<uint8_t> nRawData, int rawDataIndex, int rawDat switch (cmdID) { + case CutsceneCommands::Cmd00: break; case CutsceneCommands::SetCameraPos: cmd = new CutsceneCommandSetCameraPos(rawData, currentPtr); break; case CutsceneCommands::SetCameraFocus: cmd = new CutsceneCommandSetCameraPos(rawData, currentPtr); break; case CutsceneCommands::SpecialAction: cmd = new CutsceneCommandSpecialAction(rawData, currentPtr); break; case CutsceneCommands::SetLighting: cmd = new CutsceneCommandEnvLighting(rawData, currentPtr); break; case CutsceneCommands::SetCameraPosLink: cmd = new CutsceneCommandSetCameraPos(rawData, currentPtr); break; case CutsceneCommands::SetCameraFocusLink: cmd = new CutsceneCommandSetCameraPos(rawData, currentPtr); break; - case CutsceneCommands::Textbox: cmd = new CutsceneCommandTextbox(rawData, currentPtr); break; + case CutsceneCommands::Cmd07: break; + case CutsceneCommands::Cmd08: break; case CutsceneCommands::Cmd09: cmd = new CutsceneCommandUnknown9(rawData, currentPtr); break; + case CutsceneCommands::Textbox: cmd = new CutsceneCommandTextbox(rawData, currentPtr); break; case CutsceneCommands::Unknown: cmd = new CutsceneCommandUnknown(rawData, currentPtr); break; case CutsceneCommands::SetActorAction0: case CutsceneCommands::SetActorAction1: @@ -67,6 +70,7 @@ ZCutscene::ZCutscene(std::vector<uint8_t> nRawData, int rawDataIndex, int rawDat case CutsceneCommands::SetTime: cmd = new CutsceneCommandDayTime(rawData, currentPtr); break; case CutsceneCommands::Terminator: cmd = new CutsceneCommandTerminator(rawData, currentPtr); break; case CutsceneCommands::End: cmd = new CutsceneCommandEnd(rawData, currentPtr); break; + case CutsceneCommands::Error: fprintf(stderr, "Cutscene command error %d %s %d\n", (int)cmdID, __FILE__,__LINE__); break; } cmd->commandIndex = i; |
