aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util
AgeCommit message (Collapse)Author
2017-08-06JANITORIAL: Silence some more GCC 7 fall through warningsTorbjörn Andersson
I think these are the last one that were already flagged as being deliberate.
2017-08-06SWORD25: Increase buffer length to silence GCC 7 warningTorbjörn Andersson
2017-08-06JANITORIAL: Silence GCC 7 fall through warningTorbjörn Andersson
2017-01-28SWORD25: Use direct integer index into indexTblWillem Jan Palenstijn
This matches the behaviour of the Pluto rewrite Eris, and avoids casting the integer indices to void *. I verified this code by running this method in parallel with the current lightuserdata/void* approach and asserting the retrieved objects were identical when loading a savegame.
2016-02-19SWORD25: Fixing bug #7041: SWORD25: Crash in final sceneEugene Sandulenko
The original was ignoring Lua errors in that scene and was restoring the state with longjmp. We are yet to see the platform compatibility, but Lua's code is too tangled to make simple replacement with error() work. Another possible alternative would be to rework the original game scripts. We will do it if this commit is problematic.
2016-02-15JANITORIAL: Typos detected with lintian & grepAlexandre Detiste
2016-02-02SWORD25: Remove now unused functionWillem Jan Palenstijn
2016-02-02SWORD25: Use more appropriate function for growing the stackWillem Jan Palenstijn
The call to lua_growstack in unpersistThread would unconditionally at least double the size of the stack. This caused memory usage to grow exponentially (literally) with the number of serialized threads. Bugs #6977, #6999.
2015-11-19SWORD25: Fix Hungarian version supportEugene Sandulenko
2015-04-11SWORD25: Use fabs for absolute value of doublesMatthew Hoops
2015-01-07SWORD25: Remove unused codeRichieSams
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-04SWORD25: Commend unused and unportable functionsEugene Sandulenko
2015-01-04SWORD25: Hopefully fix compilation errorsEugene Sandulenko
2015-01-04SWORD25: Fix warningEugene Sandulenko
2014-12-30SWORD25: Remove the option to persist a double as a stringRichieSams
Since the current method *should* be more accurate
2014-12-30SWORD25: Change function names to use persist instead of serializeRichieSams
Same argument as in 97c35714ce3986b99848a780f6b195a63f8910b7. To match the rest of the SWORD25 code base
2014-12-30SWORD25: Add Pluto copyright message to new persistence codeRichieSams
Since the code is based off the Pluto code
2014-12-30SWORD25: Correct include guards to reflect the changes to the file namesRichieSams
2014-12-30SWORD25: Remove old lua persistence filesRichieSams
2014-12-30SWORD25: Fix how nils are persistedRichieSams
The unpersist code expects nils to be represented as an index with value 0. The persist code incorrectly wrote out this data
2014-12-30SWORD25: Rename double serialization file to better represent what it isRichieSams
AKA functions, rather than a class
2014-12-30SWORD25: Rename lua serialization functions to use 'persist' in order to ↵RichieSams
match the rest of the engine
2014-12-30SWORD25: Move all lua serialization helper functions to their own fileRichieSams
2014-12-19SWORD25: Fix code formattingAdrian Astley
... with AStyle
2014-12-19SWORD25: Re-write the pluto unserializing function(s)Adrian Astley
2014-12-19SWORD25: Move common functions to their own set of files so they can be sharedAdrian Astley
2014-12-19SWORD25: Create a function for serializing lua objectsAdrian Astley
This function is very similar to the Pluto function. However, this code is much cleaner and is endian-safe
2014-12-19SWORD25: Create a set of functions for manually serializing a doubleAdrian Astley
Since we can't assume IEEE.
2014-12-07SWORD25: Disable unused codeFilippos Karapetis
Thanks to fingolfin for pointing out this unused code
2014-10-28SWORD25: Remove trailing whitespaceFilippos Karapetis
2014-09-12SWORD25: Make save files x32/x64 agnosticAdrian Astley
2014-04-28Merge pull request #426 from sunmax/masterEugene Sandulenko
PS2: Pull request to master for latest PS2 code
2014-02-18SWORD25: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-19PS2: modified sword25 loslib.cpp to support PS2Max Lingua
2013-11-24SWORD25: Janitorial - Fix spacing errorsStrangerke
2013-11-04SWORD25: Revert "Fix compilation on some 32-bit systems"Willem Jan Palenstijn
This reverts commit 6dc3768faaa272a12e3c6e7ce0965905338132ad. This commit was the wrong fix to the compilation problem later fixed by 8e9aefbf6edafa9eed41bd90e5579e5bcde34b03.
2013-09-27SWORD25: Remove explictit #includesEugene Sandulenko
Makes Coverity happier.
2013-07-15SWORD25: Fix compilation on some 32-bit systemsEugene Sandulenko
2013-07-15SWORD25: Replace Pluto with Tamed Pluto for increased compatibilityEugene Sandulenko
Still saves are incompatible but at least this now has enhanced debugging capabilities.
2013-04-18SWORD25: Silence warning in the Lua codeMax Horn
This fixes warnings like this that crop up when compiling sword25 with Apple clang 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
2013-02-03SWORD25: Fix some spacing in LUAFilippos Karapetis
2013-02-03SWORD25: Replace calls to LUAI_THROW() with error() in LUAFilippos Karapetis
This removes one of the uses of setjmp(), but its use in LUAI_TRY still remains
2012-12-13COMMON: Forbid symbols for the rest of is* from ctype.h.Johannes Schickel
I also moved the isprint case to the correct position. This adds a FIXME to our lua code from sword25, which uses iscntrl directly.
2012-08-20SWORD25: Fix loading savegames on 64-bit archs.upthorn
2012-03-17ALL: Use GCC_ATLEAST().Christoph Mallon
2012-02-26COMMON: Move Language and Platform functionality into separate filesMax Horn
2012-02-21Merge pull request #182 from fingolfin/forbid-ctypeWillem Jan Palenstijn
ALL: Avoid using is* macros from ctype.h
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.