40445 Commits

Author SHA1 Message Date
Matthew Hoops
649e275ca6 MOHAWK: Implement xbookclick
It is now possible to trap Gehn in the trap book. Side note: Riven is now completable from the beginning provided you know the D'ni number system already (and the marble puzzle is just hacked to always work).

svn-id: r52482
2010-09-01 13:28:12 +00:00
Yotam Barnoy
43bbfa5ca8 PSP: removed strict-aliasing
It's no longer needed after adding __may_alias__ flag in endian.h.

svn-id: r52481
2010-09-01 12:56:34 +00:00
Yotam Barnoy
cdd27ca943 COMMON: changed read/write endian function to use __may_alias__ attribute
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading.

svn-id: r52480
2010-09-01 12:41:16 +00:00
Martin Kiewitz
81eb3cfba1 SCI: disable dialog replacement for jones
fixes odd crash right at the start, although you can't save/restore in jones o_O (fixes bug #3057080)

svn-id: r52479
2010-09-01 09:48:00 +00:00
Filippos Karapetis
5666df7b38 SCI: Added the Italian version of QFG3 (bug #3053457)
svn-id: r52478
2010-08-31 21:22:52 +00:00
Filippos Karapetis
7dffcf43c2 SCI: Added a workaround for bug #3056811 - "SQ5: Game crashes while playing "Battle Cruiser""
svn-id: r52477
2010-08-31 21:18:20 +00:00
Matthew Hoops
cfbbc3928a MOHAWK: Implement functionality for the dome sliders
The sliders are now movable and reset properly. The combination defined in the lab journal works on all the domes too.

svn-id: r52476
2010-08-31 20:05:00 +00:00
Thierry Crozat
25d267888f I18N: Add "lowres" context in one place for the Add Game button
svn-id: r52475
2010-08-31 20:03:47 +00:00
Martin Kiewitz
fa7c6a9969 SCI: adding workaround for platform-specific
incompatibility with some sierra games. Some games open a new menu, set mouse cursor within that menu and expect the mouse cursor to be in there and will close it, if it's outside. In case of Wiimote/touch interfaces this logic won't work of course. Fixes island of dr. brain and QfG1VGA on Wii and touch-interface platforms

svn-id: r52474
2010-08-31 15:50:46 +00:00
Yotam Barnoy
b5a17ca628 PSP: fix BS2 crash by disabling strict aliasing
The problem that caused the crash in BS2 had to do with GCC making improper assumptions about our code. Specifically, the alignment trick we use for READ_UINT32/16 allows some targets(e.g. MIPS) to generate better code, but it also goes against ANSI C aliasing rules, which prohibit the sharing of addresses between a struct and another variable value. Using -fno-strict-aliasing tells GCC not to assume strict ANSI C aliasing and also unfortunately prevents it from making some good optimizations.

This change is probably needed for other platforms as well -- the crash on the PSP was simply a very rare coincidence.

svn-id: r52473
2010-08-31 15:24:08 +00:00
Martin Kiewitz
c0b119feda SCI: still set game cursor, when mouse outside
of ScummVM window. Just don't change actual mouse position

svn-id: r52472
2010-08-31 13:05:15 +00:00
Martin Kiewitz
4ecb2b6047 SCI: renaming fb01-enable to "native_fb01"
svn-id: r52471
2010-08-31 11:51:43 +00:00
Martin Kiewitz
55f8415187 SCI: forgot one rename of "enable_fb01"
svn-id: r52470
2010-08-31 11:43:56 +00:00
Martin Kiewitz
aae0d9284e SCI: renaming config-variables
"sci_dither" got removed, "undither" renamed to "sci_undither". Also changed logic for handling "sci_originalsaveload"

svn-id: r52469
2010-08-31 11:38:07 +00:00
Johannes Schickel
737b9bc632 SCI: Remove duplicate comment line.
svn-id: r52468
2010-08-31 11:27:01 +00:00
Martin Kiewitz
839945795e SCI: enable new kDoBresen/InitBresen
enable replacement of save/load dialogs per default
add config-var "sci_originalsaveload" for not replacing dialogs
add config-var "sci_dither" for enabling dithering in EGA games
new kDoBresen fix qfg2 walk against wall bug (#3053131) and hoyle3 unreadable dice bug (#3036922)

svn-id: r52467
2010-08-31 10:53:27 +00:00
Filippos Karapetis
7e6141dcfa SCI: Added automatic detection of some static selectors
which keep changing location in each game

svn-id: r52466
2010-08-31 10:12:35 +00:00
Filippos Karapetis
07e4fe9fdc SCI: Disabled some debug related GC code, which effectively
wastes cycles if we're not debugging the GC

svn-id: r52465
2010-08-31 09:45:36 +00:00
Travis Howell
ffb414d265 AGOS: Add Polish version of Swampy Adventures.
svn-id: r52464
2010-08-31 05:18:38 +00:00
Thierry Crozat
3c7a068682 I18N: Update translation template and all translations.
svn-id: r52462
2010-08-30 22:27:51 +00:00
Thierry Crozat
37027d6531 I18N: Add "lowres" context for several GUI strings when in 1x mode.
This enables translators to use a different translation for these strings in
1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes.

svn-id: r52461
2010-08-30 22:24:40 +00:00
Thierry Crozat
bf9404485e I18N: Add a macro to define a context for a translatable string.
Currently static strings are marked with the _s() macro so that xgettext knows
the string needs to be translated. But there was no way to tell xgettext that
the string could get translated in different contexts. This is the role of this new
macro.

svn-id: r52460
2010-08-30 22:20:16 +00:00
Thierry Crozat
fc05e8a4ff I18N: Modify create-translations tool to remove duplicate translations
The TranslationManager in ScummVM will pick up the translation associated
to no context if present and if a translation could not be found for a specific
context. Based on this, the create_translations tool will now remove the
translation associated to a specific context if the same message has the
same translation associated to no context. This generate a smaller
translation.dat file, and this should also slightly improve performances (less
strings to load from the file and smaller list in which to look for a translated
message).

svn-id: r52459
2010-08-30 22:10:32 +00:00
Thierry Crozat
8ee7867831 README: Improve formulation for Reporting Bugs paragraph
svn-id: r52458
2010-08-30 17:12:41 +00:00
Martin Kiewitz
4f70b6814b SCI: fix warning
svn-id: r52457
2010-08-30 17:06:11 +00:00
Andre Heider
2f3edeedc9 WII: Abuse pollEvent() to update the screen of skipped frames.
updateScreen() itself skips redraws when called too frequently. With
the right timing and number of consecutive calls this can result in
missing gfx updates, so lets abuse pollEvent() to check for overdue
redraws.

svn-id: r52456
2010-08-30 16:52:23 +00:00
Martin Kiewitz
6d09028607 SCI: ability to ignore movecount for new DoBresen
fixes later sci games, when using new kDoBresen/kInitBresen

svn-id: r52454
2010-08-30 14:36:37 +00:00
Martin Kiewitz
d02628a0dc SCI: freshly reversed kDoBresen/kInitBresen
fixes qfg2 walking against wall, etc. BUT its currently disabled by default. You need to comment out the #define USE_OLD_BRESEN line in kmovement.cpp

svn-id: r52453
2010-08-30 14:06:18 +00:00
Martin Kiewitz
80b405ecb4 SCI: adding comments for kDoBresen
svn-id: r52452
2010-08-30 10:49:32 +00:00
Martin Kiewitz
1067a72769 SCI: adding comments for r52450
svn-id: r52451
2010-08-30 10:18:31 +00:00
Martin Kiewitz
154099d0a4 SCI: check filesize of qfg import files
filter out files that are larger than 1k, actually removes real saved games from the list

svn-id: r52450
2010-08-30 10:14:50 +00:00
Martin Kiewitz
6d7d0ee940 SCI: reverting r52448
broke importing, also savedgames are named "qfg1.0xx", so they werent showed before anyway and ".sav" is not mandatory for exported character files.

svn-id: r52449
2010-08-30 08:47:57 +00:00
Filippos Karapetis
3e6d55aee7 SCI: Only show exported characters in the QFG import screens.
QFG can't import saved games, thus there is no point in including them in the
character import screens.

svn-id: r52448
2010-08-29 23:35:23 +00:00
Filippos Karapetis
e004831576 SCI: Fixed bug #3038767 - "SCI Fanmade - Cascade Quest: Crash when restoring a game"
svn-id: r52447
2010-08-29 23:25:30 +00:00
Martin Kiewitz
b53d4dcd96 SCI: cleanup kDoBresen (no real code change)
svn-id: r52446
2010-08-29 21:11:36 +00:00
Martin Kiewitz
4f8daaf596 SCI: fix typo in comment
svn-id: r52445
2010-08-29 20:26:30 +00:00
Martin Kiewitz
fc3dfd1bf7 SCI: adding comment about invalid rect return val
svn-id: r52444
2010-08-29 18:19:11 +00:00
Martin Kiewitz
2fb722056c SCI: fix warning (thx wjp, thank you not msvc)
svn-id: r52443
2010-08-29 15:23:08 +00:00
Martin Kiewitz
357fb5c604 SCI: fix build
svn-id: r52442
2010-08-29 15:18:24 +00:00
Martin Kiewitz
ff7476d9f1 SCI: adding virtual lists for qfg-import rooms
now lists import files of all possible games, adds game title before that, removes game prefixes for all files

svn-id: r52441
2010-08-29 15:13:25 +00:00
Filippos Karapetis
8ba02169f8 SCI: Properly fixed bug #3053268 - "QFG1 VGA: Fetch spell crashes game"
svn-id: r52440
2010-08-29 12:54:15 +00:00
Filippos Karapetis
99d2f23ab3 SCI: fixed debug output
svn-id: r52438
2010-08-29 11:10:18 +00:00
Filippos Karapetis
6a058892fb SCI: Throw a warning in QFG import screens for unmatched files
The original SCI games supported up to 12 characters for file names, thus we
use the file name returned as a mask to find the actual file, as we don't
wrap/unwrap save file names in these screens. If no files match, or if more
than 1 files match, throw a warning.

svn-id: r52437
2010-08-29 11:08:27 +00:00
Martin Kiewitz
9e9db758fb SCI: changing scroll transition behaviour
makes scroll smooth on linux (and maybe others too)

svn-id: r52436
2010-08-29 10:39:34 +00:00
Lars Persson
33886e22af Build a couple of different variant to split engines in two.
svn-id: r52435
2010-08-29 08:26:59 +00:00
Filippos Karapetis
a32926147c SCI: Fixed bug #3051475 - "MOTHERGOOSE CD: Crash after giving the pipe to the king"
svn-id: r52433
2010-08-29 02:31:18 +00:00
Filippos Karapetis
b0b4ddcc52 SCI: Fixed bug #3037874 - "SCI1.1: High cpu usage when a textbox is displayed"
svn-id: r52432
2010-08-29 00:58:27 +00:00
Filippos Karapetis
9096848e4b SCI: Throttle the invocations of Engine::shouldQuit()
SCI constantly invoked Engine::shouldQuit(), which in
turn called 2 virtual functions. This added a significant
overhead, as this was called constantly without any
throttling whatsoever. Now, the invocation of shouldQuit()
is throttled to be on each frame update (i.e. at a rate of
60fps). Thanks to wjp for profiling this.

svn-id: r52431
2010-08-29 00:39:33 +00:00
Filippos Karapetis
3f1f894e8e SCI: Added proper handling of QFG exported character files.
Now, QFG2, 3 and 4 may read exported characters from all
other QFG games, like the originals did. Fixes bug
#3054692 - "QFG2/QFG3 Import issues".

svn-id: r52430
2010-08-29 00:17:56 +00:00
Thierry Crozat
a2a3073562 I18N: Look for translations data file in Themes path
If the translations.dat file is not found using the SearchMan, it now looks
for that file into the themepath directory and sub-directories (if the path is
defined).

svn-id: r52428
2010-08-28 15:51:23 +00:00