Commit Graph
193 Commits
Author SHA1 Message Date
Le Philousophe f25c8239b1 CRYO: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 158cf7734b CRYO: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Cameron Cawley e022d80447 CRYO: Support Return to Launcher 2021-09-03 00:41:58 +03:00
Cameron Cawley a8cbad4c2e CRYO: Fix memory leaks 2021-09-03 00:41:58 +03:00
Cameron Cawley 5df9601e18 CRYO: Add const to all static tables 2021-09-03 00:41:58 +03:00
Strangerke 40f097e2c5 CRYO: Initialize uninitialized variables in eden.cpp 2021-06-09 23:17:27 +01:00
Strangerke d06c4696a9 CRYO: Remove useless includes 2021-06-09 21:49:35 +01:00
Strangerke 43098ca47b CRYO: Save Preferred Subtitle Language to config, load it in InitPrefs instead of using the default language 2021-06-02 21:33:08 +01:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Cameron Cawley 46e696d417 CRYO: Use the common HNM decoder 2021-04-17 21:48:46 +03:00
Cameron Cawley 4714d67188 CRYO: Avoid packing structures containing objects or function pointers 2021-04-07 15:42:38 +01:00
Cameron Cawley 16b2b3ac8f CRYO: Remove dead code 2020-01-03 10:37:26 +02:00
D G Turner 9bc03dc117 CRYO: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-17 15:47:32 +01:00
David Fioramonti 1ed2cd40f3 CRYO: EDEN: Move graphics into a separate class
Eden game object now contains a graphics object with which to
delegate graphics operations and store states of the graphics.

Much of the video playing is done in the graphics class
so I have moved a lot of the video state into there.

Some graphics related variables were moved out of eden and into
graphics, but many are still in eden.

Since they are still coupled there are lots of getters and setters.
For example both eden_graphics and eden share a handle to the same
video object.

I have made a few more things public than desirable.

I changed graphics to eden_graphics since it is specialized to eden
and not just cryo.
2019-09-11 12:28:28 +03:00
Filippos Karapetis 5724a1f385 CRYO: Fix MSVC warnings
- Add missing default switch cases
- Specify packing for structs with pointers to complex objects
- Change literal suffixes to uppercase
- Replace uses of malloc() with new []
2019-05-27 14:53:38 +03:00
D G Turner 733cb7dcc7 CRYO: Fix Debug Statement Format String Compiler Warnings.
Some of the debug statements in the engine compute values or sizes of
various items by pointer subtraction (which is probably not recommended;
I am not sure if this is why some of the structs were previous packed as
noted and removed by snover).

In any case, the subtractions should result in relatively small integer
values, but using these into debug() calls with printf style format
strings can cause warnings from the compiler with the format specifier
depending on the underlying pointer sizes.

To avoid these, have recast these to int. If this does cause any issues,
they should be limited to debug() value changes and thus not a
functional issue with the engine, which can be corrected by the engine
developers.
2018-07-29 03:32:40 +01:00
Bastien Bouclet 779f2f549a CRYO: Push down the AD includes 2018-05-01 12:48:05 +02:00
Adrian Frühwirth a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Colin Snover 10f1eab3c9 CRYO: Stop packing struct containing pointers
This struct packing causes the pointer-to-member-function to become
unaligned, and does not seem necessary in any way.

Closes gh-1081.
2018-01-12 00:44:48 -06:00
Strangerke e4b7f699be CRYO: Fix crash when restarting the game 2017-02-27 00:59:17 +01:00
Willem Jan Palenstijn a8cbc03acc CRYO: Improve macro safety 2017-02-26 22:45:03 +01:00
Eugene Sandulenko 2168ac1ef0 CRYO: Fix warning 2017-02-26 22:34:25 +01:00
Strangerke e12a25cb75 CRYO: Improve syncTapePointers 2017-02-26 20:54:35 +01:00
Strangerke 32965e44e3 CRYO: Some renaming 2017-02-24 23:55:11 +01:00
Strangerke e878332cc4 CRYO: Fix a bug in syncTapePointers 2017-02-21 00:44:38 +01:00
Strangerke 9f6ffed6ff CRYO: Rename sync functions 2017-02-19 21:34:19 +01:00
Strangerke 6c4635ac7d CRYO: Rewrite save/load game functions 2017-02-19 21:34:16 +01:00
Strangerke 70f1cd6efe CRYO: Remove some more dead code, remove _keyboardHeld 2017-02-12 18:10:25 +01:00
Strangerke 2adc84e728 CRYO: Some code simplification, remove dead code 2017-02-12 17:44:07 +01:00
Filippos Karapetis a7d681764f CRYO: Merge spriteOnSubtitle() into drawSprite() 2017-02-12 00:54:39 +02:00
Filippos Karapetis d3d5ff2a88 CRYO: Split graphics and resource-related functions into separate files 2017-02-12 00:54:39 +02:00
Filippos Karapetis c40b74bb28 CRYO: Merge the two noclipax() methods and rename to drawSprite() 2017-02-12 00:54:38 +02:00
Filippos Karapetis 8eb38c0933 CRYO: Rename variables to conform to our code formatting guidelines 2017-02-11 21:53:10 +02:00
Filippos Karapetis e95ed8eb90 CRYO: Clean up and document some variables 2017-02-11 21:51:36 +02:00
Filippos Karapetis 5d119b6038 CRYO: Add cryo.dat to all messages related to it 2017-02-11 20:48:52 +02:00
Filippos Karapetis 01e7b4edcf CRYO: Fix typos in some sizeof() values 2017-02-11 20:42:07 +02:00
Filippos Karapetis deb0857f68 CRYO: Change the version of cryo.dat to be a 32-bit integer (2/2)
Though it's unlikely that we'll ever have that many changes, it's
better to provision for more space now, for versioning
2017-02-11 18:05:07 +02:00
Filippos Karapetis 24a4c231da CRYO: Rename variables to conform to our formatting guidelines 2017-02-11 17:20:54 +02:00
Filippos Karapetis 05c99c5b0d CRYO: Move more static data to cryo.dat (2/2) 2017-02-11 17:16:45 +02:00
Filippos Karapetis fed7341481 CRYO: Use hardcoded values for structs instead of sizeof() 2017-02-11 17:10:26 +02:00
Filippos Karapetis 77f1194586 CRYO: Move all static data for Lost Eden to cryo.dat (2/2) 2017-02-10 11:51:58 +02:00
Filippos Karapetis 130dfccfc1 CRYO: Use cryo.dat for all game versions
All the static data will be eventually moved into this file
2017-02-10 10:12:05 +02:00
Filippos Karapetis 248e5d3c59 CRYO: Add handling for the cryo.dat aux data file 2017-02-10 10:12:05 +02:00
Filippos Karapetis 79e774b806 Revert "CRYO: Add handling for the cryo.dat aux data file"
This reverts commit 01e072fbbc.
2017-02-10 10:08:04 +02:00
Filippos Karapetis 3e4710bb20 Revert "CRYO: Use cryo.dat for all game versions"
This reverts commit 6ff7ef95d7.
2017-02-10 10:07:51 +02:00
Filippos Karapetis 6ff7ef95d7 CRYO: Use cryo.dat for all game versions
All the static data will be eventually moved into this file
2017-02-10 04:33:36 +02:00
Filippos Karapetis 01e072fbbc CRYO: Add handling for the cryo.dat aux data file 2017-02-10 04:33:36 +02:00
Strangerke c2e0e001a7 CRYO: Fix some more GCC warnings 2017-02-08 16:30:52 +01:00