Commit Graph
39 Commits
Author SHA1 Message Date
Filippos Karapetis 6b670fba62 CHEWY: Cleanup 2022-07-07 13:06:54 +03:00
Filippos Karapetis 788467beb5 CHEWY: Rename class members to conform to our style 2022-05-21 23:20:04 +03:00
Filippos Karapetis c11f089402 CHEWY: Remove the Data class
Its functionality is included in the Resource class
2022-04-10 21:26:59 +03:00
Strangerke 9cd7694d07 CHEWY: Remove unused structure, some renaming 2022-03-03 18:36:50 -08:00
Strangerke 3b86f9e94e CHEWY: Some more renaming 2022-03-03 18:36:47 -08:00
Filippos Karapetis 8e2ea2c8d5 CHEWY: Refactor text printing and font handling code 2022-03-03 18:36:42 -08:00
Filippos Karapetis 62b70a5add CHEWY: Simplify loading of blende.rnd 2022-03-03 18:36:39 -08:00
Filippos Karapetis 4009fd7a6a CHEWY: Finish refactoring taf_seq_adr()
The sprite corrections table was not set correctly.
This allows us to remove related code that is now unused.
2022-03-03 18:36:39 -08:00
Filippos Karapetis 8ba4c1b29c CHEWY: Start rewriting taf_seq_adr()
Still not 100% correct, as sprites are drawn with wrong offsets
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
Strangerke 883664cf00 CHEWY: More work on CppCheck, Fix an endianness issue (one of maaaaany) 2022-03-03 18:36:35 -08:00
Paul Gilbert d349d46776 CHEWY: Capitalize classes in ngstypes.h 2022-03-03 18:36:32 -08:00
Paul Gilbert 9c15eefa80 CHEWY: Further Globals cleanup, renamed file to globals.cpp 2022-03-03 18:36:31 -08:00
Paul Gilbert 640b101e5d CHEWY: Capitalize class names 2022-03-03 18:36:27 -08:00
Paul Gilbert c5d0e15fd8 CHEWY: Move main.cpp globals to Globals 2022-03-03 18:36:24 -08:00
Paul Gilbert 3f0d86d88b CHEWY: Cleanup of memory class 2022-03-03 18:36:23 -08:00
Paul Gilbert 9b437b227a CHEWY: Initialize the file property when creating memory class 2022-03-03 18:36:21 -08:00
Filippos Karapetis 3471cecbf0 CHEWY: Switch to the new sprite loading code 2022-03-03 18:36:17 -08:00
Paul Gilbert 3691054963 CHEWY: In progress proper implementation of Files dialog 2022-03-03 18:36:14 -08:00
Filippos Karapetis 748bbf12d2 CHEWY: Remove more unused resource handling code 2022-03-03 18:36:10 -08:00
Filippos Karapetis 7e1e2188a2 CHEWY: Remove obsolete palette code 2022-03-03 18:36:09 -08:00
Filippos Karapetis 666565dae9 CHEWY: Use the new TAF sprite loading code 2022-03-03 18:36:08 -08:00
Filippos Karapetis f512718281 CHEWY: Use error() instead of returning a global error flag
The error messages are temporary, and all error checking for
resources will be eventually moved into the resource handling
code
2022-03-03 18:35:58 -08:00
Paul Gilbert 81b17afa4d CHEWY: Update headers to GPL3 2022-03-03 18:35:19 -08:00
Paul Gilbert e2400e81fb CHEWY: Change structures from using variable length arrays
The original used a variable length array at the end of
structures. But since that trips up memory overrun checks,
I've changed them to being a raw pointer that points to
just after the structure instead.

Also changed some hardcoded values of 4 bytes for pointers
to be a proper sizeof(pointer)
2022-03-03 18:35:17 -08:00
Paul Gilbert ddd0c298f4 CHEWY: Change mallocs to a wrapper that initializes the memory 2022-03-03 18:35:17 -08:00
Paul Gilbert 3deb7e2396 CHEWY: Changing calloc calls to malloc 2022-03-03 18:35:16 -08:00
Paul Gilbert 12e1bf8a0e CHEWY: Endian fix for loading sprite correction offsets 2022-03-03 18:35:09 -08:00
Paul Gilbert 21867e4b86 CHEWY: Janitorial 2022-03-03 18:35:07 -08:00
Paul Gilbert b9fc77462b CHEWY: Further loading cleanup 2022-03-03 18:34:56 -08:00
Paul Gilbert be8ff3bcb2 CHEWY: Cleaned up file loading 2022-03-03 18:34:51 -08:00
Paul Gilbert d7ff6e3a2a CHEWY: Cleanup of size method 2022-03-03 18:34:51 -08:00
Paul Gilbert 8768d044a0 CHEWY: Fix taf_info image field 2022-03-03 18:34:50 -08:00
Paul Gilbert 598ab91667 CHEWY: Create C file replacement methods to use ScummVM files 2022-03-03 18:34:45 -08:00
Paul Gilbert 006ee720de CHEWY: Added Chewy namespace back in 2022-03-03 18:34:42 -08:00
Paul Gilbert a417d3e23a CHEWY: Convert char * pointers to byte * 2022-03-03 18:34:41 -08:00
Paul Gilbert 507538a6a4 CHEWY: Fix compiler warnings 2022-03-03 18:34:40 -08:00
Paul Gilbert b655cd5a3f CHEWY: Fix relative engine paths 2022-03-03 18:34:39 -08:00
Eugene Sandulenko 165ea7c29f CHEWY: Initial commit 2022-03-03 18:34:39 -08:00