Commit Graph

345 Commits

Author SHA1 Message Date
Torbjörn Andersson
5bcc20cdd0 SWORD2: Fix potential allocation size mismatch. CID 1003324. 2013-04-28 14:15:29 +02:00
Willem Jan Palenstijn
617b9cf613 SWORD2: Fix reference to out-of-scope variable 2013-04-22 22:27:19 +02:00
Willem Jan Palenstijn
22d8fe9544 SWORD2: Fix (unlikely) memory leak 2013-04-22 22:22:43 +02:00
Max Horn
b791edabf7 ENGINES: Remove a bunch of unused private member variables
All instances uncovered by clang warnings.
2013-04-18 23:50:20 +02:00
Filippos Karapetis
9d7b55eb60 SWORD2: Fix bug #3049336 - "BS2: Detects games in wrong places"
We no longer detect the sword2 files inside the "clusters" folder.
Also, we now correctly distinguish between the full and the demo
version of the game
2012-11-08 01:02:12 +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
18823198ad VIDEO: Merge AdvancedVideoDecoder into VideoDecoder 2012-08-16 14:00:14 -04:00
Matthew Hoops
fb35c7f46f VIDEO: Remove setSystemPalette() 2012-08-16 13:30:32 -04:00
Matthew Hoops
3117e4a8ff VIDEO: Convert DXADecoder to the AdvancedVideoDecoder API 2012-07-24 13:24:01 -04:00
Matthew Hoops
a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
Matthew Hoops
24c97b8913 VIDEO: Move PSXStreamDecoder to the new VideoDecoder API 2012-07-21 17:31:00 -04:00
Johannes Schickel
808e41d807 SWORD2: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00
Matthew Hoops
9e330174c8 VIDEO: Change getElapsedTime() into getTime()
This name change accompanies a slight meaning change; now it means the current time position from the beginning of the video and not from starting the video.
2012-05-12 21:28:13 -04:00
Filippos Karapetis
4dc2f2d433 SWORD2: Add a custom game option to toggle object labels 2012-03-25 16:31:27 +03:00
Johannes Schickel
48efab4e5a COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream.
It actually inherits from SeekableSubReadStream, so it should be named
accordingly.
2012-03-11 00:51:20 +01:00
Max Horn
215b41b244 COMMON: Move RenderMode and GUIOptions functionality into separate files 2012-02-26 15:19:31 +01:00
Willem Jan Palenstijn
4637d55337 Merge pull request #171 from clone2727/psx-stream-2
This is a manual merge based on clone2727's merge of his branch
with the sword1 subtitle changes on master.
2012-02-23 22:49:59 +01:00
Matthew Hoops
8812f885bc SWORD2: Add support for PSX stream playback 2012-02-23 22:48:18 +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
Fabio Battaglia
57d586d598 SWORD2: Force fake transparency for PSX sprites
In PSX version blending is done through hardware transparency,
this would have to be simulated using 16-bit mode. As this is
not yet available in this engine, fake transparency is used
as a placeholder
2012-01-09 00:17:29 +01:00
Fabio Battaglia
15ea73104c SWORD2: Fix problem with the height of PSX sprites
Apparently some uncompressed PSX sprites have a wrong
height value in the datafiles, creating subtle problems
like missing lines in some graphics. Fixed by artificially
adding 1 to odd height values of uncompressed sprites.
2012-01-08 00:34:15 +01:00
Johannes Schickel
b9d1718fe1 ALL: unrecognised -> unrecognized. 2011-11-26 17:40:00 +01:00
Strangerke
dbb83da2c9 LAUNCHER: Add GUIO_NOASPECT to sword2 2011-10-24 00:43:37 +02:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Matthew Hoops
40fd9ce27c AUDIO: Remove default rate parameter from xa 2011-08-24 09:54:19 -04:00
Matthew Hoops
adb69a5a39 AUDIO: Rename Vag to XA
Vag is really an XA container, and one that we do not have a decoder for (nor need)
2011-08-24 09:54:19 -04:00
eriktorbjorn
dd7b1399f3 SWORD2: Silence "variable set but not used" GCC warnings 2011-07-03 07:20:40 +02:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Thierry Crozat
06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
D G Turner
d3b53d4c50 SWORD2: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 04:38:47 +01:00
Matthew Hoops
9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
Matthew Hoops
28301e2bd1 ALL: analyse -> analyze 2011-05-25 10:50:47 -04:00
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
Matthew Hoops
1277975c66 ALL: neighbour -> neighbor 2011-05-25 10:50:46 -04:00
Thierry Crozat
d2a55b42c9 ENGINES: Further unify engine names 2011-05-22 12:47:35 +01:00
Max Horn
4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
f0087e4608 SWORD2: Replace SafeSubReadStream with the same-name class in Common 2011-05-06 16:47:48 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Max Horn
2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
Max Horn
84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
dhewg
606ac754cb SWORD2: Cleanup syncSoundSettings() 2011-03-19 16:49:16 +01:00
md5
7c10e4e3d8 SWORD2: Silence an MSVC warning (false positive) 2011-02-28 22:23:32 +02:00
Fabio Battaglia
3550e10568 SWORD2: fix leak of previous commit properly
Memorize psx sprite buffer pointer to properly free it
2011-02-28 19:22:22 +01:00
Fabio Battaglia
33d90412c1 SWORD2: Plug a memory leak in psx version
Free buffer used to resize psx sprite in drawTextObject
2011-02-28 19:16:18 +01:00
dhewg
aa2a2e046b SWORD2: Reduce overhead 2011-02-27 10:13:18 +01:00
dhewg
1c95d47cfa SWORD2: Respect screen pitch while postprocessing
Fixes subtitles on androids
2011-02-27 10:10:44 +01:00
Johannes Schickel
74e4b5a6cd SWORD2: Adapt to setPalette/grabPalette RGBA->RGB change.
Thanks to eriktorbjorn for helping me with this.
2011-02-15 22:52:15 +01:00