RichieSams
4c64f7e194
SWORD25: Remove unused code
...
The original idea was to keep the code variation and pick the best one. However,
these two methods we're portable enough for our needs.
2015-01-07 07:00:13 -06:00
Eugene Sandulenko
baacf0be61
SWORD25: Commend unused and unportable functions
2015-01-04 22:16:50 +01:00
Eugene Sandulenko
17fe53a34c
SWORD25: Hopefully fix compilation errors
2015-01-04 22:10:17 +01:00
Eugene Sandulenko
ce45caaf83
SWORD25: Fix warning
2015-01-04 21:06:49 +01:00
RichieSams
e4f74b6c34
SWORD25: Remove the option to persist a double as a string
...
Since the current method *should* be more accurate
2014-12-30 18:28:14 -06:00
RichieSams
9a4d62e76a
SWORD25: Change function names to use persist instead of serialize
...
Same argument as in 97c35714ce
.
To match the rest of the SWORD25 code base
2014-12-30 18:26:59 -06:00
RichieSams
8ee75e1dc5
SWORD25: Add Pluto copyright message to new persistence code
...
Since the code is based off the Pluto code
2014-12-30 18:22:15 -06:00
RichieSams
eaff6a40f6
SWORD25: Correct include guards to reflect the changes to the file names
2014-12-30 18:21:43 -06:00
RichieSams
67114c3e7e
SWORD25: Remove old lua persistence files
2014-12-30 15:40:33 -06:00
RichieSams
8668707f16
SWORD25: Fix how nils are persisted
...
The unpersist code expects nils to be represented as an index with value 0.
The persist code incorrectly wrote out this data
2014-12-30 15:40:33 -06:00
RichieSams
08e3f21a8d
SWORD25: Rename double serialization file to better represent what it is
...
AKA functions, rather than a class
2014-12-30 15:40:33 -06:00
RichieSams
97c35714ce
SWORD25: Rename lua serialization functions to use 'persist' in order to match the rest of the engine
2014-12-30 15:40:29 -06:00
RichieSams
a188b31d15
SWORD25: Use new lua serialization functions to persist state
2014-12-30 13:42:45 -06:00
RichieSams
0b8482b55f
SWORD25: Update module.mk with lua serialization changes
2014-12-30 13:42:02 -06:00
RichieSams
2fb116f10e
SWORD25: Move all lua serialization helper functions to their own file
2014-12-30 13:41:24 -06:00
Adrian Astley
2c7a87a4e3
SWORD25: Fix code formatting
...
... with AStyle
2014-12-19 14:51:00 -06:00
Adrian Astley
de20880d9d
SWORD25: Re-write the pluto unserializing function(s)
2014-12-19 13:41:58 -06:00
Adrian Astley
dedfd7aa84
SWORD25: Move common functions to their own set of files so they can be shared
2014-12-19 13:38:56 -06:00
Adrian Astley
efcd6196ee
SWORD25: Create a function for serializing lua objects
...
This function is very similar to the Pluto function. However, this code
is much cleaner and is endian-safe
2014-12-19 11:29:22 -06:00
Adrian Astley
ff35d7118c
SWORD25: Create a set of functions for manually serializing a double
...
Since we can't assume IEEE.
2014-12-19 11:29:22 -06:00
Filippos Karapetis
fa9e2f7b29
SWORD25: Disable unused code
...
Thanks to fingolfin for pointing out this unused code
2014-12-07 17:49:52 +02:00
Filippos Karapetis
e938ddcef7
SWORD25: Remove trailing whitespace
2014-10-28 16:13:07 +02:00
Adrian Astley
91571387d1
SWORD25: Bump the save file version number
...
Since the previous commit breaks saves for 32 bit binaries
2014-09-12 17:05:53 -05:00
Adrian Astley
2ec3adfad5
SWORD25: Make save files x32/x64 agnostic
2014-09-12 16:07:06 -05:00
Eugene Sandulenko
5da1a45307
SWORD25: Fix sprite flipping
2014-06-24 00:48:52 +03:00
Eugene Sandulenko
5c706dde27
SWORD25: Switch to common TransparentSurface
2014-06-15 15:43:25 +03:00
Johannes Schickel
59d0874ca9
SWORD25: Use float constant values in expressions which result in float.
...
This silences some float conversion warnings.
2014-06-02 01:00:15 +02:00
Eugene Sandulenko
c3ffbd884a
Merge pull request #426 from sunmax/master
...
PS2: Pull request to master for latest PS2 code
2014-04-28 21:20:42 +03:00
Matthew Hoops
740b6e8fbd
IMAGE: Move all ImageDecoders to image/
2014-02-28 00:27:28 -05:00
Johannes Schickel
bad7cdd3a6
SWORD25: Make GPL headers consistent in themselves.
2014-02-18 02:39:38 +01:00
Max Lingua
001e3f7658
PS2: modified sword25 loslib.cpp to support PS2
2014-01-19 00:51:02 -05:00
Johannes Schickel
0e017f007a
Merge pull request #375 from digitall/engineAutoPlug
...
RFC: Pluggable Engines #2 (No Python, just evolution of current configure shell and make code)
2013-11-26 02:27:11 -08:00
Strangerke
622dfcf950
SWORD25: Janitorial - Fix spacing errors
2013-11-24 18:52:48 +01:00
D G Turner
ef85456859
BUILD: Remove need for engine.mk in each engine directory.
...
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333
BUILD: Remove need for engine-plugin.h in engines.
...
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9
BUILD: Split engines/plugins_table header down to a file per engine.
...
This is the third and final commit enabling fully pluggable engines.
Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18
BUILD: Split engines.mk down to a single file per engine.
...
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474
BUILD: Split configure.engines down to a single file per engine.
...
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Willem Jan Palenstijn
34169a817c
SWORD25: Revert "Fix compilation on some 32-bit systems"
...
This reverts commit 6dc3768faa
.
This commit was the wrong fix to the compilation problem later
fixed by 8e9aefbf6e
.
2013-11-04 21:25:00 +01:00
Eugene Sandulenko
ae6f205b93
SWORD25: Fix potential buffer overrun. CID 1003865
2013-10-08 00:11:18 +03:00
Thierry Crozat
cdbee9972a
SWORD25: Fix possible error in sound engine when loading a savegame
...
The error occurred when the save game was saved early in the game
before all the sound handles had been used. The unused handles only had
the handle type initialised (as kFreeHandle) so all the other fields had
random values. After loading the game the sound engine could erroneously
try to play one of these sound handle resulting in an error.
2013-10-05 00:25:04 +01:00
Thierry Crozat
f55259e3b1
SWORD25: Fix regression in persistence code
...
The regression was introduced by commit e6ba26ff0d
which wrote
coordinates of a rect as unsigned int when they were before written
as signed int. Since the load code was not modified it still expected
signed int. They are now again written as signed int. Any gamed saved
between commit e6ba26ff0d
and this commit will therefore be corrupted.
2013-10-05 00:25:04 +01:00
Willem Jan Palenstijn
4591bd6eb6
SWORD25: Fix alpha/colormod blitting
...
This is a backport to sword25 of the wintermute commits
e9cbda135b
and 2141ad285e
Thanks to eriktorbjorn for noticing and testing.
2013-09-29 20:18:54 +02:00
Eugene Sandulenko
118da76068
SWORD25: int -> int32 correctness
2013-09-29 10:44:41 +03:00
Eugene Sandulenko
c73904c978
SWORD25: Fix compilation
2013-09-29 10:30:39 +03:00
Eugene Sandulenko
2333041fdf
SWORD25: Specify integer size
2013-09-29 10:15:24 +03:00
Eugene Sandulenko
e6ba26ff0d
SWORD25: int -> int32 correctness
2013-09-29 10:02:34 +03:00
Eugene Sandulenko
7a669b770f
SWORD25: Specifying int size to make Amiga happy
2013-09-29 09:45:16 +03:00
Eugene Sandulenko
2a2a5e51c6
SWORD25: Fix Amiga compilation
2013-09-29 09:30:23 +03:00
D G Turner
befa99ca77
SWORD25: Some more fixes for Amiga OS 4 compilation.
2013-09-29 03:21:55 +01:00