Commit Graph

431 Commits

Author SHA1 Message Date
Filippos Karapetis
eed9da3ea2 SWORD1: Remove trailing whitespace 2014-10-28 16:12:25 +02:00
Thierry Crozat
df04963cfd SWORD1: Update list of files that contain translatable strings 2014-10-04 01:08:12 +01:00
Thierry Crozat
b783d75f83 SWORD1: Add missing update of screen parameters when loading game from GMM
This fixes bug #6728 (crash when loading game from GMM in bull's
head scene). I am not sure the call to Logic::Engine is necessary, but
that way the same sequence of calls is done when restoring a game
from the original GUI and when restoring from GMM.
2014-09-13 18:40:46 +01:00
Thierry Crozat
4aaa74aea7 SWORD1: Avoid possible division by zero in speech endianness heuristic 2014-09-10 20:25:51 +01:00
Thierry Crozat
83bb4fdb38 I18N: Really fix speech endianness heuristic on big endian system
The previous commit was wrong because the endianness does not only
impact the data sample values but also the way the speech is uncompressed.
2014-09-08 21:42:29 +01:00
Thierry Crozat
4afb40e16f SWORD1: Fix speech endianness heuristic on big endian systems
This should fix bug #6720.
2014-09-08 09:13:52 +01:00
Thierry Crozat
62d71480c2 SWORD1: Add debugger command to set mac speech endianness 2014-09-07 19:38:52 +01:00
Thierry Crozat
72d37eeb82 SWORD1: Fix typo in comment 2014-09-07 14:59:56 +01:00
unknown
ab742d7308 SWORD1: Silence some GCC warnings.
Signed/unsigned comparison.
2014-09-07 11:06:20 +02:00
Thierry Crozat
5450870326 SWORD1: Improve speech endianess detection in mac version
Because of the way the speech is compressed with duplicate samples
being stored with a negative size and a single value, when reading the
data with the wrong endianess we can end up with a lot of duplicate
samples which biased the result with the way the old heuristic was
coded. Hopefully this change to skip duplicate samples will make it
more robust.
2014-09-05 22:57:36 +01:00
Thierry Crozat
8eb82fd6c1 SWORD1: Fix heuristic to determine the endianess of the speech in mac version
Because the data is compressed (a repeated sample is coded as a
negative length followed by the value), when the length is read with
the wrong endianess we get completely wrong data. So to get the BE
data we cannot just read them assuming LE and byteswap afterward.
2014-09-05 07:46:42 +01:00
Ben Castricum
fd2ee7921f SWORD1: Change "no DXA support" message.
It's "without zlib" or "without DXA support". WJP prefers the first.
2014-08-22 06:43:02 +02:00
Thierry Crozat
c4d685b0ac SWORD1: Tweak MPEG-2 cutscenes error message
Beside making the message slightly better imho, it is also now
identical to the same message in BS2 and also more coherent with
the DXA message.
2014-07-05 13:56:47 +01:00
Strangerke
9a22da6573 SWORD1: Some British to American English 2014-02-19 21:45:24 +01:00
Johannes Schickel
f4724e7a46 SWORD1: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Strangerke
e370716c18 SWORD1: Janitorial - Remove trailing spaces 2014-02-16 18:45:53 +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
Matthew Hoops
55583214ad Revert "SWORD1: Let the XA audio use its own looping"
This reverts commit 481a5e0e7c.

Turns out that not all the sounds have the built-in loop flag, such as the piano in the Hotel Ubu.
2013-11-20 21:36:16 -05:00
Eugene Sandulenko
a08af2952e SWORD1: Fix unitialized variables. CID 1002991 2013-10-30 09:18:14 +02:00
Eugene Sandulenko
cf6771c5d5 SWORD1: Fix unitialized variables. CID 1002989 2013-10-30 09:14:06 +02:00
Johannes Schickel
378387c903 I18N: Move specification of engine specific files to enginedir/POTFILES.
This allows to keep the engines to specfiy the files for translation close to
the engine sources itself.

Thanks to criezy for his suggestion on this approach.
2013-08-12 17:54:31 +02:00
Johannes Schickel
54b30d8e5d SWORD1: Take advantage of Surface::getPixels. 2013-08-03 04:02:52 +02:00
Johannes Schickel
338c4e2bce SWORD1: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:33 +02:00
Matthew Hoops
69a1e8ac36 SWORD1: Add back MPEG-2 video support 2013-06-20 19:49:28 -04:00
Thierry Crozat
32c3de61e1 SWORD1: Removed unused class variable 2013-05-14 21:51:25 +01:00
Thierry Crozat
2e7d06b670 SWORD1: Initialize class variables in constructor
CID 1002998.
2013-05-14 21:51:25 +01:00
Thierry Crozat
5fc59f9bd8 SWORD1: Error our in case the resource handle is not found in lockScript
This should never happen, so as per wjp suggestion makes this an error.
2013-04-24 21:55:34 +01:00
Thierry Crozat
ff1bdc7f58 SWORD1: Avoid possible dereferencing of a null pointer
CID 1003605
2013-04-24 21:24:58 +01:00
Willem Jan Palenstijn
3943d34034 SWORD1: Remove dead code 2013-04-22 22:18:52 +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
Filippos Karapetis
f915daad6d SWORD1: Fix bug #3049346 - "BS1: Detects games in wrong places"
We no longer detect the sword1 files inside the "clusters" folder
2012-11-07 21:56:26 +02:00
Torbjörn Andersson
e8ad4df1fa SWORD1: Enable American ("Circle of Blood") panel
If the language is explicitly set to American English, use the
American version of the panel for the main control panel. In all
other aspects, American English will behave as British English,
so it shouldn't break anything.
2012-10-06 16:24:00 +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
857b92f8ff Merge pull request #268 from clone2727/video-rewrite
VideoDecoder upgrade & partial rewrite
2012-08-26 15:41:56 -04: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
Johannes Schickel
155118dc1e SWORD1: Fix delete[] formatting. 2012-07-25 21:11:04 +02: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
89b8f6bb56 SWORD1: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Thierry Crozat
57e84b9632 SWORD1: Add source of the translations for the missing subtitles
This adds a few comment to explain were the translations come from
for the missing subtitle workaround (and give credits were they are
due).
2012-06-26 21:31:12 +01:00
Thierry Crozat
7705c13cc4 SWORD1: Add workaround for missing subtitles in the demo 2012-06-26 21:20:24 +01:00
Thierry Crozat
54fba98347 SWORD1: Add warning for untranslated subtitles
This should help adding workarounds for those by providing all the
needed information (textId and english text).
2012-06-24 18:00:20 +01:00
Johannes Schickel
d8aff72402 SWORD1: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00
Thierry Crozat
ac76994781 SWORD1: Use _missingSubTitleStr when asking for an out of bound textId
It was using textId 0, which is not the subtitle we want anyway. So
instead of using the wrong subtitle, it is probably better to not display
a subtitle at all. A test case for this is with the demo when using
non-english language as several subtitles are missing toward the end.
2012-06-05 22:35:36 +01:00