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
Adrian Frühwirth
bc949250de
JANITORIAL: Convert line endings from CRLF/mixed to LF
2018-05-24 15:30:55 +02: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
Colin Snover
432fd522d2
ENGINES: Remove default1x scaler flag
...
This flag is removed for a few reasons:
* Engines universally set this flag to true for widths > 320,
which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
since its behaviour was almost completely undocumented and users
would need to figure out that they'd need an explicit non-default
scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
deciding how the backend may choose to render its virtual screen.
The choice of rendering behaviour belongs to the user, and the
backend, in that order.
A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Torbjörn Andersson
6cda47ca3d
JANITORIAL: Remove superfluous semicolons
2017-04-18 06:49:14 +02: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
aa56958b8e
CRYO: Add explicit sizes to some static data arrays
...
Makes it easier to move them to a data file
2017-02-10 10:12:06 +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
95feec2aa6
Revert "CRYO: Add explicit sizes to some static data arrays"
...
This reverts commit 2fd2eeed1c
.
2017-02-10 10:07:37 +02:00
Filippos Karapetis
2fd2eeed1c
CRYO: Add explicit sizes to some static data arrays
...
Makes it easier to move them to a data file
2017-02-10 04:33:37 +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
Filippos Karapetis
fdc3baeeff
CRYO: Move unrelated Common::File include out of platdefs.h
2017-02-10 04:33:35 +02:00
Filippos Karapetis
d895d23087
CRYO: Remove leftover example engine code
2017-02-10 04:33:34 +02:00
Filippos Karapetis
8eae295172
CRYO: Move readme.txt to wiki
2017-02-10 04:33:34 +02:00
Filippos Karapetis
0591689bc0
CRYO: Move gameflow.txt to wiki
2017-02-10 04:33:34 +02:00
Filippos Karapetis
c7b86856fa
CRYO: Move bugs.txt to wiki
2017-02-10 04:33:33 +02:00
Filippos Karapetis
a331cea358
CRYO: Remove the unused ResourceManager class
2017-02-10 04:33:33 +02:00
Strangerke
c2e0e001a7
CRYO: Fix some more GCC warnings
2017-02-08 16:30:52 +01:00
Strangerke
c55e8f9544
CRYO: Fix some shadowed member
2017-02-08 16:11:20 +01:00
Strangerke
46260fdf41
CRYO: Fix a GCC warning
2017-02-08 15:47:25 +01:00
Strangerke
18c1f2f6e4
CRYO: Fix several issues reported by coverity
2017-02-08 15:33:51 +01:00
Strangerke
de11872686
CRYO: Fix a null pointer
2017-02-06 00:04:49 +01:00