Commit graph

179 commits

Author SHA1 Message Date
Strangerke
e919953073 CHEWY: renaming, add some missing breaks in flic_cut 2022-03-03 18:36:47 -08:00
Paul Gilbert
c7284144a8 CHEWY: Remove flic_cut switch cases that were unused
Double-checked in the disassembly of the release game,
and confirmed they weren't used
2022-03-03 18:36:47 -08:00
Strangerke
3b86f9e94e CHEWY: Some more renaming 2022-03-03 18:36:47 -08:00
Strangerke
d20703122d CHEWY: Renaming 2022-03-03 18:36:46 -08:00
Filippos Karapetis
c8fa3c2538 CHEWY: Remove special video cases for video IDs over 1000
These are unused throughout the engine, and are probably a leftover
2022-03-03 18:36:46 -08:00
Filippos Karapetis
b9aabf3353 CHEWY: Switch the TV videos to the new video code
This also adds handling for rewindable videos, which keep looping
until the current dialog finishes. Furthermore, events are now
correctly pushed to the engine code
2022-03-03 18:36:45 -08:00
Strangerke
56616bac2f CHEWY: Some renaming 2022-03-03 18:36:45 -08:00
Filippos Karapetis
97cde7eba9 CHEWY: Use the new video playing code for special videos 9 and 10 2022-03-03 18:36:44 -08:00
Strangerke
3fc3959f7f CHEWY: Various fixes in flic_cut() 2022-03-03 18:36:43 -08:00
Filippos Karapetis
ee46ccf2a1 CHEWY: Fix drawing overlay elements (e.g. subtitles) on videos 2022-03-03 18:36:42 -08:00
Filippos Karapetis
8e2ea2c8d5 CHEWY: Refactor text printing and font handling code 2022-03-03 18:36:42 -08:00
Strangerke
e35654ac19 CHEWY: More renaming 2022-03-03 18:36:41 -08:00
Filippos Karapetis
a805e55759 CHEWY: Remove file function wrappers 2022-03-03 18:36:39 -08:00
Strangerke
239f53a104 CHEWY: More janitorial work around CppCheck 2022-03-03 18:36:38 -08:00
Filippos Karapetis
1ea4b7bd5b Remove the modul / fcode checks
These checks were used for incorrect resources, so it's best to place
the relevant checks when loading resources instead of random places in
the code. Also, remove unused chunk IDs
2022-03-03 18:36:38 -08:00
Filippos Karapetis
3d7209f44a CHEWY: Use the new video player in more videos 2022-03-03 18:36:38 -08:00
Filippos Karapetis
cfb636c1bd CHEWY: More work on the new video player
It is now the default player for all videos except the ones with custom
callbacks. Started importing video callbacks in the new video player
2022-03-03 18:36:37 -08:00
Filippos Karapetis
7d9cd2b8ad CHEWY: Rename all movie enums so that they match their values 2022-03-03 18:36:36 -08:00
Filippos Karapetis
de38f58836 CHEWY: Use more movie enums 2022-03-03 18:36:36 -08:00
Filippos Karapetis
a085db8a7b CHEWY: Move all custom video callbacks to r_event.cpp
This will help to gather everything in a single place, in order to
aid in rewriting this functionality. This includes all videos with
custom callbacks, set_custom_user_function() and set_flic_user_function()
2022-03-03 18:36:36 -08:00
Filippos Karapetis
25ad52094d CHEWY: Remove the unused mode parameter of flic_cut()
It is always set to CFO_MODE
2022-03-03 18:36:35 -08:00
Filippos Karapetis
70b1e80bd1 CHEWY: Switch more functions to the new sound code 2022-03-03 18:36:35 -08:00
Filippos Karapetis
26139fd227 CHEWY: Rename setze_zeiger -> set_pointer 2022-03-03 18:36:34 -08:00
Filippos Karapetis
4dfc0ffeea CHEWY: Fixes regarding the video skipping flag 2022-03-03 18:36:34 -08:00
Filippos Karapetis
7da7a2781e CHEWY: Fix compilation with new video code 2022-03-03 18:36:34 -08:00
Paul Gilbert
9c15eefa80 CHEWY: Further Globals cleanup, renamed file to globals.cpp 2022-03-03 18:36:31 -08:00
Paul Gilbert
a4a0f0a009 CHEWY: Move final globals from global.cpp to Globals 2022-03-03 18:36:31 -08:00
Paul Gilbert
cf7ac0878b CHEWY: Move various array globals to Globals 2022-03-03 18:36:31 -08:00
Paul Gilbert
8d42bf7690 CHEWY: Move object pointer globals to Globals 2022-03-03 18:36:31 -08:00
Paul Gilbert
d9c6188922 CHEWY: Move spz globals to Globals 2022-03-03 18:36:30 -08:00
Paul Gilbert
546cb99e0b CHEWY: Move globals to Globals 2022-03-03 18:36:30 -08:00
Paul Gilbert
096b125379 CHEWY: Move SetupScreenFunc to Globals, remove unused life globals 2022-03-03 18:36:30 -08:00
Paul Gilbert
793e53c09a CHEWY: Moving globals to Globals 2022-03-03 18:36:30 -08:00
Paul Gilbert
75c029de78 CHEWY: Revert cleanup of #ifdef blocks 2022-03-03 18:36:30 -08:00
Paul Gilbert
69ed392124 CHEWY: Move graphics related globals to Globals 2022-03-03 18:36:29 -08:00
Strangerke
d1ac557f14 CHEWY: Use more consistently constants with start_spz 2022-03-03 18:36:29 -08:00
Paul Gilbert
6a84e1d620 CHEWY: Cleanup of #if blocks 2022-03-03 18:36:27 -08:00
Paul Gilbert
a6aa69e49c CHEWY: Remove the original's keycode constants 2022-03-03 18:36:27 -08:00
Paul Gilbert
858998106d CHEWY: Move various globals to Globals 2022-03-03 18:36:24 -08:00
Paul Gilbert
c5d0e15fd8 CHEWY: Move main.cpp globals to Globals 2022-03-03 18:36:24 -08:00
Paul Gilbert
fab4e985f1 CHEWY: Rename of Room class fields 2022-03-03 18:36:23 -08:00
Paul Gilbert
6f67f04200 CHEWY: Change ailclass to SoundPlayer 2022-03-03 18:36:18 -08:00
Paul Gilbert
206432b7a9 CHEWY: Fix gedAction indexing for room 97 2022-03-03 18:36:09 -08:00
Paul Gilbert
729735434f CHEWY: Fix another walkable area check in room 97 2022-03-03 18:36:09 -08:00
Paul Gilbert
2707dda8d4 CHEWY: Fix initial walkable areas in room 97 2022-03-03 18:36:08 -08:00
Paul Gilbert
7408afa36c CHEWY: Added a bunch of quit checks to flic playback 2022-03-03 18:36:08 -08:00
Filippos Karapetis
d0db1ee26c CHEWY: Remove more unused code 2022-03-03 18:36:07 -08:00
Filippos Karapetis
620d85c172 CHEWY: Start hooking the new video code 2022-03-03 18:36:07 -08:00
Filippos Karapetis
6aaa8ceaa6 CHEWY: Use the new sound code
This removes a lot of the stubbed voice and sound functions.
The custom music format code hasn't been updated yet
2022-03-03 18:36:06 -08:00
Strangerke
2399a8aa87 CHEWY: Fix a bug in Room 51, hopefully fix the memory reused by room 65, fi a couple of warnings 2022-03-03 18:36:03 -08:00