Commit Graph

560 Commits

Author SHA1 Message Date
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
D G Turner
7e62442376 SWORD25: And even more fixes for Amiga OS 4 compilation. 2013-09-29 02:33:02 +01:00
D G Turner
03965ba855 SWORD25: Even more fixes for Amiga OS 4 compilation. 2013-09-29 00:45:43 +01:00
Eugene Sandulenko
9220d331e2 SWORD25: Make Amiga compiler happier 2013-09-28 23:57:39 +03:00
Eugene Sandulenko
5cb881be12 SWORD25: More int->int32 fixes 2013-09-28 23:45:31 +03:00
Eugene Sandulenko
86550cdc3c SWORD25: Further fixes for Amiga 2013-09-28 23:28:19 +03:00
Eugene Sandulenko
9a1ddf0dee SWORD25: More int <-> int32 corrections 2013-09-28 23:17:02 +03:00
Eugene Sandulenko
08c010b8df SWORD25: Further fixes for Amiga compilation 2013-09-28 22:58:10 +03:00
Eugene Sandulenko
4552f5196b SWORD25: Fix Amiga compilation 2013-09-28 22:26:54 +03:00
Eugene Sandulenko
8053989dd1 SWORD25: Remove explictit #includes
Makes Coverity happier.
2013-09-27 11:07:25 +03:00
Eugene Sandulenko
03911e6505 SWORD25: Fix copy-paste error. CID 1004130 2013-09-26 22:58:46 +03:00
Eugene Sandulenko
4f0d37d2f8 SWORD25: Remove unused variable 2013-09-09 00:48:02 +03:00
Johannes Schickel
eb22417639 SWORD25: Do not set Surface::pixels directly anymore. 2013-08-03 04:14:08 +02:00
Johannes Schickel
1550e9804b SWORD25: Take advantage of Surface::getPixels. 2013-08-03 04:02:52 +02:00
Johannes Schickel
5afa6f97f4 SWORD25: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:33 +02:00
Eugene Sandulenko
6dc3768faa SWORD25: Fix compilation on some 32-bit systems 2013-07-15 19:19:45 +03:00
Eugene Sandulenko
b7e3d52abc SWORD25: Replace Pluto with Tamed Pluto for increased compatibility
Still saves are incompatible but at least this now has enhanced
debugging capabilities.
2013-07-15 19:02:34 +03:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Eugene Sandulenko
f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03:00
Eugene Sandulenko
4a62d6c25a Merge pull request #320 from johndoe123/sword25-gfx
SWORD25: Optimized graphics drawing
2013-05-06 03:49:21 -07:00
Eugene Sandulenko
3c0c6a5cb1 SWORD25: Plug memory leak. CID 1003589 2013-04-24 01:23:31 +03:00
johndoe123
4fc57dac8f SWORD25: Fix blitting code
- Rename collectRenderQueue to preRender
- Only do forceRefresh() in Panel::setColor() and Text::setText() if the new values are different
- Move child object resorting from RenderObject::render() into RenderObject::preRender()
2013-04-20 00:34:32 +02:00
Max Horn
cdfd5f85c8 ENGINES: Silence clang warning about unused private member _vm
This affects the Console / debugger classes of multiple engines.
An alternative solution would have been to remove the unused _vm
member vars. However, it seems likely that in the future, the _vm
member could be useful for methods added to the console. So instead,
we add a simple assert(_vm) to silence the clang warning.
2013-04-18 23:50:19 +02:00
johndoe123
176a3babc5 Merge branch 'master' of github.com:scummvm/scummvm into sword25-gfx 2013-04-18 19:08:22 +02:00
Max Horn
4a55f52818 SWORD25: Silence warning in the Lua code
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-04-18 17:09:32 +02:00
johndoe123
e935f85366 SWORD25: Change absolute Z calculation to match that of absolute x/y; remove old comment 2013-04-17 19:54:39 +02:00
johndoe123
0a0b2f397b SWORD25: Optimize graphics drawing code 2013-04-17 12:41:49 +02:00
Filippos Karapetis
6286779d0a SWORD25: Fix some spacing in LUA 2013-02-03 18:18:43 +02:00
Filippos Karapetis
afdb28b4e9 SWORD25: Replace calls to LUAI_THROW() with error() in LUA
This removes one of the uses of setjmp(), but its use in LUAI_TRY still
remains
2013-02-03 18:17:02 +02:00
Johannes Schickel
fe1a779441 SWORD25: Silence C++11 narrowing warnings. 2013-01-09 07:24:37 +01:00
Johannes Schickel
2773f5d7af COMMON: Forbid symbols for the rest of is* from ctype.h.
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-12-13 21:08:48 +01:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00