Commit Graph

1036 Commits

Author SHA1 Message Date
Johannes Schickel
c1be2aedbb SAGA: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01: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
cfbe557bdc SAGA: Janitorial - Fix spacing errors 2013-11-24 19:14:45 +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
Eugene Sandulenko
9faa5d66b7 SAGA: Remove unused assignment. CID 1002506 2013-10-08 00:11:18 +03:00
Eugene Sandulenko
067ce95965 SAGA: Remove unused assignment. CID 1002505 2013-10-08 00:11:18 +03:00
Willem Jan Palenstijn
9bbbcf268d SAGA: Clean up variable scope 2013-10-02 10:52:40 +02:00
Rodrigo Rebello
2fdb99d819 SAGA: Silent Cppcheck warning in Sprite::loadList(). 2013-10-02 04:33:54 -03:00
Johannes Schickel
e30cb84210 SAGA: Take advantage of Sufrace::getPixels. 2013-08-03 04:02:52 +02:00
Johannes Schickel
8617edea04 SAGA: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:33 +02:00
Eugene Sandulenko
7ae3386090 SAGA: Fix CID 1002507. Unused pointer value. 2013-07-15 11:29:46 +03:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Filippos Karapetis
72a523059f SAGA: Fix odd memcmp() conditions, as reported by clang
Thanks to LordHoto for pointing those out - they followed the incorrect
paradigm of previous code
2013-07-02 03:53:09 +03:00
Torbjörn Andersson
3dfe25504a SAGA: Add "fallthrough" comments to switch. CID 1003742, 1003743
I'm almost certain these are intentional fallthroughs. It makes
sense to handle the little-endian cases like the big-endian ones,
with the added FLAG_LITTLE_ENDIAN.
2013-06-08 23:51:29 +02:00
Torbjörn Andersson
c4b3f113d3 SAGA: Add missing "break"s
It seems pretty clear to me that these fallthroughs were not
intentional, seeing how one of them could cause ITE to fall through
to IHNM-specific code.

CID 1003744, 1003745
2013-06-01 22:16:32 +02:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Filippos Karapetis
0d53b7f628 SAGA: Fix some non-initialized variables in the Music class - CID 1003131 2013-05-01 02:01:23 +03:00
Eugene Sandulenko
0f9f268314 SAGA: Null terminate string. CID 1003869 2013-04-28 23:59:20 +03:00
Eugene Sandulenko
759dc8e978 SAGA: Fix potentially unitialized pointer. CID 1003186, CID 1003187, CID 1003188, CID 1003189 2013-04-28 23:59:20 +03:00
Eugene Sandulenko
aa8638db6a SAGA: Null terminate string. CID 1003870 2013-04-28 23:59:20 +03:00
Eugene Sandulenko
e2cd02bb5e SAGA: Null terminate string. CID 1003868 2013-04-28 23:59:20 +03:00
Torbjörn Andersson
b77a516414 SAGA: Fix memory leak in Mac version of IHNM
CID 1004123. Unfortunately, I do not have this version of the game
so I cannot verify that this fix is correct, but it should be.
2013-04-27 06:38:48 +02:00
Johannes Schickel
3d9d7ab4f8 SAGA: Silence C++11 narrowing warnings. 2013-01-09 07:24:37 +01:00
Tomas Jakobsson
fe10773ac3 SAGA: Update to new IFFDecoder for PBM images 2013-01-06 20:04:50 +01:00
clone2727
91317c3630 Merge pull request #293 from clone2727/qtmidi
Add support for QuickTime Music playback
2012-12-13 15:49:40 -08:00
Filippos Karapetis
faa7579241 SAGA: Add support for played time 2012-11-11 23:32:07 +02:00
Filippos Karapetis
1b5e96f429 SAGA: Fix bug #3564919 - "SAGA: IHNM Spanish: Spiritual Barometer doesn't change"
The Spanish version uses different colors for portrait
backgrounds. Also, portrait colors are now set correctly when
loading games directly from the launcher.
2012-11-11 23:31:25 +02: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
Matthew Hoops
b996a6a270 SAGA: Add support for IHNM Mac music 2012-09-12 19:31:29 -04:00
Matthew Hoops
857b92f8ff Merge pull request #268 from clone2727/video-rewrite
VideoDecoder upgrade & partial rewrite
2012-08-26 15:41:56 -04:00
Filippos Karapetis
23db3cd9f2 SAGA: Remove incorrect free() in loadShortenFromStream()
This removes a warning and fixes bug #3558052 - "SAGA: use-after-free warning"
2012-08-20 03:28:02 +03:00
Matthew Hoops
fb35c7f46f VIDEO: Remove setSystemPalette() 2012-08-16 13:30:32 -04:00
Matthew Hoops
a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
Johannes Schickel
48e6b80253 SAGA: Slight cleanup in querySaveMetaInfos implementation.
Saves are writable and deletable by default, there is no need to mark them
explicitly as such.
2012-07-03 18:39:46 +02:00
Johannes Schickel
4fb9bceabc Merge pull request #246 from lordhoto/osystem-void-buffers
OSYSTEM: Use void buffers for screen/overlay/mouse buffers and proper pitch values for overlay code
2012-06-20 08:02:26 -07:00
D G Turner
c825cc41a5 SAGA: Workaround fix for IHNM pathfinding glitches.
This fixes bug #3360396 - "IHNM: Can't use right monitor with ellen".
Have done a full playtest of IHNM to ensure this fixes the issue
without any other regressions.
Thanks to eriktorbjorn for creating this patch.
2012-06-17 02:10:04 +01:00
Johannes Schickel
ebb5cb7e4c SAGA: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00
Filippos Karapetis
8c1ca6548d SAGA: Fix bug #3528338 - "ITE: Subtitles always shown in introduction" 2012-05-20 20:16:16 +03:00
Christoph Mallon
bc238a5ff3 JANITORIAL: Use appropriate type for loop counter. 2012-03-13 15:42:53 +01:00
Christoph Mallon
e618e6794d JANITORIAL: Remove unnecessary empty default constructors/destructors. 2012-03-13 15:42:30 +01:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
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-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Max Horn
658080deed ALL: Avoid using is* macros from ctype.h
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.
2012-02-15 16:51:37 +01:00
Matthew Hoops
d876dddd45 SAGA: Rework the way audio is buffered
The streams that are created are now used directly instead of SAGA creating its own RawStream after decoding it. In addition, this should fix ADPCM-compressed sounds on big endian systems (as the code was treating the result of readBuffer() to always be LE, whereas it's actual native endian).

I've also clarified the bugfix to bug #1256701. It only applies to 16-bit PCM data and the size for other data is no longer truncated too ;)
2011-12-24 11:09:54 -05:00