Commit Graph

4944 Commits

Author SHA1 Message Date
Filippos Karapetis
b6488818a5 SCI: Bugfix for rev #52688.
We can't just set the lockers of script 0 to 1, as at that point
the objects associated with the script are marked to be deleted,
thus we need to reload the script

svn-id: r52693
2010-09-12 21:50:52 +00:00
Lars Skovlund
de6555663d Workaround for bug #038837: HOYLE3: EGA/VGA Crashes. Needs further
investigation and a proper fix post-release

svn-id: r52688
2010-09-12 18:13:14 +00:00
Johannes Schickel
8bc65ccdc7 SCI: Add 1.2M version of KQ5 EGA (0.000.055).
svn-id: r52679
2010-09-11 21:23:22 +00:00
Lars Skovlund
b2be003722 SCI: In kFormat, handle arguments pointing to text resource 0 correctly.
Fixes Colonel's Bequest inventory formatting.

svn-id: r52676
2010-09-11 13:30:42 +00:00
Martin Kiewitz
446aa6be8a SCI: adding patch for castle brain cipher puzzle
reinitializes puzzle each time its shown. Fixes save/restore bug in that room, bug #3063510

svn-id: r52668
2010-09-10 20:14:37 +00:00
Filippos Karapetis
4e27844fef SCI: Some changes regarding resources
- Renamed the debug command "resource_size" to "resource_info", as it now provides
the location of where a specified resource is found (i.e. the resource.xxx file, or
the file name itself, if the resource is a patch)
- "duskdump" shows the original location of dumped resources
- loadResource() now shows the location of files that couldn't be loaded

svn-id: r52667
2010-09-10 14:07:32 +00:00
Walter van Niftrik
8bbbcfe5b8 SCI: Fix digital track regression from r52662.
svn-id: r52666
2010-09-09 23:01:51 +00:00
Filippos Karapetis
f446dbc8d5 SCI: Implemented the kPrintDebug SCI2.1 kernel function, used in Shivers (demo)
svn-id: r52665
2010-09-09 20:09:32 +00:00
Martin Kiewitz
a8afefd64b SCI: kIsOnMe is kOnMe, merge both into kIsOnMe
and map kOnMe for SCI2 to kIsOnMe, remove commented out hacks. fix signatures for those 2 functions, added TODO - someone should fix the SCI32 signatures

svn-id: r52664
2010-09-09 20:07:53 +00:00
Matthew Hoops
61adb401b2 SCI: Cleanup kWinHelp's dialog handling
Don't display the message twice and now we use the filename in the message.

svn-id: r52663
2010-09-09 18:34:27 +00:00
Walter van Niftrik
5eb0314e4c SCI: Fix last MIDI channel number for adlib driver
svn-id: r52662
2010-09-09 18:26:16 +00:00
Filippos Karapetis
746a1c5614 SCI: Kernel table changes
- Added the kernel names for all unimplemented kernel debug functions, and mapped
them all to kDummy, so that the kernel tables are correct and all kernel
functions are mapped (useful for debugging)
- Added a stub for kWinHelp (normally opens an external Windows help file), with
an appropriate dialog
- Added a stub for kWinDLL, which currently errors out on purpose (this needs to
be investigated, as it loads and uses external Windows DLLs)
- Readded kListIndexOf in kList (the signature was wrong when the previous commit
was made)

svn-id: r52660
2010-09-09 15:09:26 +00:00
Lars Skovlund
e51b0f6b56 SCI/Debugger: Show class names in addition to addresses in class_table output.
svn-id: r52657
2010-09-09 13:38:00 +00:00
Walter van Niftrik
8264bb704f SCI: Add getLastChannel() function to MidiPlayer class
svn-id: r52655
2010-09-09 12:46:46 +00:00
Lars Skovlund
065e19092a SCI: Support push and pop subfunctions in kMessage()
Glossary seems to work now.

svn-id: r52654
2010-09-09 12:44:34 +00:00
Filippos Karapetis
16a7046519 SCI: Changed the error message when execute_method() references an invalid export
svn-id: r52653
2010-09-09 12:01:04 +00:00
Filippos Karapetis
c3c36cc59b SCI: SCI2/2.1 kernel table changes
- Mark several SCI2/2.1 kernel functions used for debugging as dummy
- Added an empty function for kSetWindowsOption, used for settings specific to
Windows versions (e.g. showing/hiding the title bar)
- Added a stub for kGetWindowsOption (currently returning 0 to a Windows related
option for Phantasmagoria)

svn-id: r52652
2010-09-09 11:40:46 +00:00
Martin Kiewitz
9c67db6b0d SCI: adding text code reference support
fixes glossary in pepper, bug #3040039

svn-id: r52651
2010-09-09 10:52:17 +00:00
Lars Skovlund
792c5b2303 SCI: Support a few optional parameters in SCI32 List calls
the actual support was already there due to extensive code sharing
w/SCI0, so only modifying signatures here

svn-id: r52650
2010-09-09 10:46:43 +00:00
Filippos Karapetis
9313e169fd SCI: Enabled the static selector remap code for SCI2+. The Torin demo works again
svn-id: r52647
2010-09-09 07:42:25 +00:00
Martin Kiewitz
47ad577a78 SCI: ability to change r_acc within DrawControl
preparation for returning rect array on |r| textcodes

svn-id: r52642
2010-09-08 20:11:11 +00:00
Martin Kiewitz
10a460443b SCI: adding save description, if none was entered
fixes bug #3061964

svn-id: r52637
2010-09-08 16:15:42 +00:00
Martin Kiewitz
54865f4837 SCI: dont replace save/restore in hoyle2 too
svn-id: r52636
2010-09-08 12:45:42 +00:00
Martin Kiewitz
3e4e741387 SCI: don't replace save/restore in hoyle1
fixes hoyle1 not starting anymore

svn-id: r52635
2010-09-08 12:42:00 +00:00
Martin Kiewitz
06afbd7fbb SCI: dont remap to channel 9 (fix real mt32)
svn-id: r52634
2010-09-08 10:49:12 +00:00
Filippos Karapetis
cb0e54034d SCI: Now distinguishing between native MT-32 MIDI from GM devices when checking
for the existence of after market GM patches

svn-id: r52620
2010-09-07 15:09:59 +00:00
Filippos Karapetis
dd0095f1a2 SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code more
readable

svn-id: r52615
2010-09-07 08:12:59 +00:00
Filippos Karapetis
b2464a9bd1 SCI: Slight change in GfxPicture::vectorFloodFill()
Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier
to understand

svn-id: r52614
2010-09-07 07:41:28 +00:00
Martin Kiewitz
624d06b684 SCI: extending comment for prev. commit
svn-id: r52606
2010-09-06 19:03:55 +00:00
Martin Kiewitz
d618678982 SCI: dont play audio on kDoSound in hoyle4
hoyle4 has garbled audio data

svn-id: r52605
2010-09-06 19:00:43 +00:00
Martin Kiewitz
2bf82a8354 SCI: fix regression of r52569
fade in/out of samples

svn-id: r52604
2010-09-06 18:23:03 +00:00
Walter van Niftrik
ba6bc8f17b SCI: AdLib: process patch change commands when playswitch is off.
svn-id: r52595
2010-09-06 16:09:19 +00:00
Martin Kiewitz
6eecc485d2 SCI: fix warning (and actual error)
svn-id: r52591
2010-09-06 12:16:21 +00:00
Martin Kiewitz
da45fcfeb2 SCI: add patch for cannister lockup pharkas/cd
scripts disable icon 7+8 when entering the room. When taking the cannister they will disable all remaining icons, resulting in the disable-code running endlessly, also happend in sierra sci - fixes bug #3046367

svn-id: r52587
2010-09-06 11:58:28 +00:00
Filippos Karapetis
397f883698 SCI: Fixed an off-by one access error in the static selectors of some games
svn-id: r52586
2010-09-06 11:30:26 +00:00
Martin Kiewitz
bab5050531 SCI: fixing code
thx to tortoisegit and broken conflict managment

svn-id: r52585
2010-09-06 10:41:14 +00:00
Martin Kiewitz
c342c0e3d8 SCI: fix regression of r52565
remove class bit when marking as clone

svn-id: r52584
2010-09-06 10:39:42 +00:00
Lars Skovlund
e3e9bac6f6 SCI: Clear class bit when cloning objects.
This fixes a regression affecting many SCI32 games and possibly other games,
looping or recursing endlessly.

svn-id: r52583
2010-09-06 10:11:07 +00:00
Filippos Karapetis
fddb0f6c15 Partial fix for bug #3059871 - "SCI Fanmade - Ocean Battle: Crash while playing"
The fix is partial, as the game will crash when losing and attempting to
restart (for a different reason - there's an issue when uninstantiating a script)

svn-id: r52581
2010-09-05 23:14:42 +00:00
Martin Kiewitz
9b59496533 SCI: adding patch for script bug in pharkas/cd
patches out bad code that would dispose score sound immediately, "score" sound plays now for pharkas/cd - finally fixes bug #3037161

svn-id: r52570
2010-09-05 20:04:46 +00:00
Martin Kiewitz
1856723a9e SCI: ignore kDoSound volume changes on samples
svn-id: r52569
2010-09-05 19:34:26 +00:00
Martin Kiewitz
6ffbe90130 SCI: sierra sci ignores vol for kDoSound samples
now "score" is halfway playing, but it's cut so only "s" is played. Needs to get further investigated

svn-id: r52568
2010-09-05 19:25:08 +00:00
Martin Kiewitz
49c8d1a549 SCI: kClone cleanup
and fixing possible crash & typo

svn-id: r52565
2010-09-05 15:34:25 +00:00
Martin Kiewitz
13e24af0ca SCI: adjusting comment on kClone change
svn-id: r52563
2010-09-05 15:11:22 +00:00
Martin Kiewitz
d817bec4fd SCI: merging -info- stuff in Clone/DisposeClone
svn-id: r52562
2010-09-05 15:09:50 +00:00
Johannes Schickel
2a08124f0f SCI: Fix bugs #3035650 and #3039566, crash in PEPPER demo and LAURABOW2.
The actual names for the bug reports are:
 #3035650 "PEPPER non-interactive demo: Crash"
 #3039566 "LAURABOW2: Crash during introduction"

Those crashes were caused by an invalid memory dereference in kClone. This
in turn was happening, because the parent object pointer might have been
invalidated in cases where the parent object is also a clone.

svn-id: r52561
2010-09-05 14:59:09 +00:00
Martin Kiewitz
4766cc5bb5 SCI: reuse kGetAngle from kDoAvoider
svn-id: r52560
2010-09-05 13:51:47 +00:00
Martin Kiewitz
d5d5dde56b SCI: dont do global scaling on non-scaleable views
lb2floppy: scripts get confused in the rat scene, when scaleX/Y are set with applied global scaling. This results in kInitBresen to get called almost endlessly, which results in ego slowing down to a crawl and not being able to reach the upper right exit - fixes bug #3050606

svn-id: r52559
2010-09-05 12:55:15 +00:00
Filippos Karapetis
fe2924d50d SCI: initialize members of the Object class when it's constructed
svn-id: r52544
2010-09-05 12:33:27 +00:00
Filippos Karapetis
f17a9f9fb0 SCI: Changed consecutive ifs to a switch
A table would be better, but the switch will do for now

svn-id: r52543
2010-09-05 11:30:40 +00:00
Filippos Karapetis
047979b409 SCI: Fix for alignment exception issue, reported by Bluddy
svn-id: r52542
2010-09-05 11:10:49 +00:00
Filippos Karapetis
913f39da19 SCI: Some cleanup of the static selector code
- Added more static selectors, for debugging
- Added some needed selectors for the non-interactive demo of Pepper

svn-id: r52541
2010-09-05 10:59:44 +00:00
Filippos Karapetis
7dcb19e41b SCI: Added a workaround for the non-interactive demo of Pepper
svn-id: r52540
2010-09-05 10:55:25 +00:00
Filippos Karapetis
16bed50469 SCI: Fixed script bug #3059544 - "KQ6CD: Error when looking at rotten tomato"
svn-id: r52539
2010-09-05 09:27:41 +00:00
Martin Kiewitz
e55c928075 SCI: kDoBresen changes for sci1early+
including change to compare dest and current position directly, otherwise we would trigger ::moveDone one cycle too late in case the current move completed - fixes lsl5 patti upside down bug #3059336 and lb2cd (cd only!) laura bow getting transformed into a boiler-flame (bug #3050602) - lsl5 was not a real regression, the timing of previous kDoBresen way just off, so it didn't happen in that scene, but happened in lb2cd

svn-id: r52531
2010-09-04 18:23:37 +00:00
Filippos Karapetis
3daf588e08 SCI: Janitorial - fixed spaces and typos
svn-id: r52527
2010-09-04 17:16:41 +00:00
Filippos Karapetis
98f36800e3 SCI: Added another version of Hoyle 3 (bug report #3038837)
svn-id: r52526
2010-09-04 17:10:27 +00:00
Filippos Karapetis
34195238bb SCI: Don't try to initialize non-existent scripts, error out instead
(Invalid scripts may be requested to be loaded when warping to an incorrect room)

svn-id: r52524
2010-09-04 15:38:24 +00:00
Filippos Karapetis
8a93da0516 SCI: Updated comment concerning kCantBeHere and removed a wrong check for Hoyle 3
svn-id: r52523
2010-09-04 14:46:29 +00:00
Martin Kiewitz
7836bb87fd SCI: fixing typo in kDoAvoider
svn-id: r52520
2010-09-04 11:27:03 +00:00
Martin Kiewitz
e7f834e103 SCI: delete on textedit control now checks string
svn-id: r52518
2010-09-04 10:39:22 +00:00
Martin Kiewitz
afada2b60d SCI: fixing comment
svn-id: r52517
2010-09-04 09:58:37 +00:00
Filippos Karapetis
c34cec4e15 SCI: Fixed bug #3037595 - "KQ4: Crash reading message in the bottle (whale mouth)"
svn-id: r52516
2010-09-04 09:41:39 +00:00
Martin Kiewitz
f95a2ac499 SCI: removing non-sierra sci code in kDirLoop
svn-id: r52515
2010-09-04 09:20:38 +00:00
Martin Kiewitz
89d4e44281 SCI: doing detectDoSoundType() properly sci0early
checking, if sound resources are sci0early or late for sci0early games instead of hardcoding lsl2

svn-id: r52514
2010-09-04 08:51:10 +00:00
Martin Kiewitz
92c3a4b5aa SCI: lsl2 early uses sci0late sound
fixes bug #3037012 and lsl2 now has music everywhere

svn-id: r52513
2010-09-04 08:28:53 +00:00
Martin Kiewitz
acc294c7a8 SCI: properly reversed kDoAvoider
getAngle()-code is missing though. Still fixes lsl2early hang on airport (bug #3037036), fixes kq4early unicorn doing moonwalk (kq4late still works as well)

svn-id: r52512
2010-09-04 07:29:27 +00:00
Filippos Karapetis
976458058d SCI: Fixed bug #3058865 - "Jones in the Fast Lane CD: Graphics Missing"
svn-id: r52511
2010-09-03 22:51:27 +00:00
Martin Kiewitz
e4c07925ec SCI: kDirLoop freshly reversed
svn-id: r52510
2010-09-03 22:15:08 +00:00
Martin Kiewitz
87b78b1673 SCI: kClone/kDisposeClone behaviour more accurate
now also checking -info- selector, if object is supposed to get freed. Fixes kq4 early hanging (in intro, when opening door, etc.)

svn-id: r52508
2010-09-03 18:14:59 +00:00
Martin Kiewitz
b7a2fd899e SCI: adding mother goose title
svn-id: r52507
2010-09-03 17:49:22 +00:00
Filippos Karapetis
f78b4b9f85 SCI: Added a warning when using GM with SCI1 games
The MT-32 <-> GM mapping has only been worked on for
SCI0/SCI01 games. Throw a warning when the user
chooses GM in a SCI1 game, and there is no after
market GM support from Sierra for this game

svn-id: r52505
2010-09-03 12:42:35 +00:00
Filippos Karapetis
ace4477041 SCI: Rewrote the game name IDs of the Mt32MemoryTimbreMaps array to be like the game IDs we use
svn-id: r52504
2010-09-03 08:46:07 +00:00
Filippos Karapetis
d87fa1c890 SCI: Show a warning window regarding GM in some games.
Sierra has released a patch adding after market General MIDI support for 8 SCI1
games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If
the user has selected the General MIDI music driver in one of these games and
no associated MIDI patch is found, show an informational dialog on game startup
in order to inform the user to download Sierra's MIDI patch, together with some
short instructions.

svn-id: r52500
2010-09-02 21:50:00 +00:00
Filippos Karapetis
2f88eec713 SCI: Fixed compilation when VM_DEBUG_SEND is enabled
svn-id: r52498
2010-09-02 18:58:25 +00:00
Filippos Karapetis
a816a27928 SCI: Added a FIXME for bug #3038870, related to kParse()
svn-id: r52497
2010-09-02 13:50:49 +00:00
Martin Kiewitz
82f138b728 SCI: fixing debug output for bpx
svn-id: r52491
2010-09-02 10:21:20 +00:00
Martin Kiewitz
cf3289ee3f SCI: adding "bpr" and "bpw" debug commands
"bpr" breakpoint on reading of selectors
"bpw" breakpoint of writing of selectors
"bpx" is now breakpoint on executing of selectors only

svn-id: r52490
2010-09-02 09:05:08 +00:00
Torbjörn Andersson
9324a80d93 JANITORIAL: Remove extra semi-colons.
svn-id: r52489
2010-09-02 05:12:07 +00:00
Martin Kiewitz
64313cd7f1 SCI: set master volume correctly
and merge it together with global volume, fixes bug #3053104)

svn-id: r52484
2010-09-01 19:20:17 +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
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
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
Martin Kiewitz
4f70b6814b SCI: fix warning
svn-id: r52457
2010-08-30 17:06:11 +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
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
Filippos Karapetis
fa04c9dd38 SCI: Fixed bug #3054613, "QFG character saves, naming convention"
svn-id: r52419
2010-08-27 23:21:08 +00:00
Torbjörn Andersson
b442ee7010 SCI: Fixed potential memory leak in convert_polygon()
svn-id: r52413
2010-08-27 17:26:34 +00:00
Martin Kiewitz
b5b4ecbed6 SCI: adding kq4 0.247
svn-id: r52412
2010-08-27 15:09:54 +00:00
Filippos Karapetis
0bc33f000f SCI: Possible fix for bug #3053268 - "QFG1 VGA: Fetch spell crashes game"
svn-id: r52411
2010-08-27 14:21:08 +00:00
Martin Kiewitz
f8276a36fb SCI: adjust r52397
actually they return 0:0, when no bytes were read, otherwise they return the destination pointer

svn-id: r52398
2010-08-26 07:31:54 +00:00
Martin Kiewitz
c0f81439dc SCI: kFileIOReadString/kFGets return byte count
in sierra sci of read bytes

svn-id: r52397
2010-08-26 07:26:30 +00:00
Willem Jan Palenstijn
ca81bdde9b SCI: Return empty string from fgets with maxsize 1
This should fix r3049360 in Hoyle4.

svn-id: r52396
2010-08-25 22:05:10 +00:00
Martin Kiewitz
6de3b6c55c SCI: adding detection for freddy pharkas "fred"
fixes blop not appearing during intro song, because game thought we were too slow (bug #3051514)

svn-id: r52392
2010-08-25 17:49:03 +00:00
Eugene Sandulenko
15e50a64b8 SCI: Make use of new ADGF_PIRATED flag
svn-id: r52385
2010-08-25 11:51:26 +00:00
Martin Kiewitz
3900aa96b6 SCI: apply qfg1vga fight patch on weapon master
fixes fighting the weapon master as well...

svn-id: r52381
2010-08-25 11:28:27 +00:00
Eugene Sandulenko
def042e412 SCI: md5s from Bug #3049193
svn-id: r52380
2010-08-25 11:00:48 +00:00
Martin Kiewitz
a55dbc831d SCI: making loading from ScummVM menu work correctly
using a trick for indirectly calling GameObject::init and then restoring, fixes text color/font code issues, also removing all the hackery

svn-id: r52379
2010-08-25 10:38:09 +00:00
Willem Jan Palenstijn
b2ebb62e11 SCI: Make assert stricter.
(Thanks to fuzzie.)

svn-id: r52376
2010-08-25 09:02:43 +00:00
Martin Kiewitz
9ca5165606 SCI: adding pharkas patch for ladder issue
in room 320, fixes bug #3037192

svn-id: r52362
2010-08-24 22:24:25 +00:00
Martin Kiewitz
4a6553098f SCI: adding qfg1vga patch for fight issue
fixes bug #3036756

svn-id: r52361
2010-08-24 21:53:06 +00:00
Martin Kiewitz
85c35f41ca SCI: fixing comment of r52351
svn-id: r52353
2010-08-24 17:33:35 +00:00
Filippos Karapetis
27fbfcc34e SCI: Fixed bug #3052359 - "Hoyle1: Hearts Crash"
svn-id: r52352
2010-08-24 17:28:52 +00:00
Martin Kiewitz
3e6fb233ac SCI: fix race condition in sierra kPalVary code
we are loading pictures very fast, this results in a kPalVary race condition, because sierra set timer to 1 tick, when it was getting called with 0 ticks and required the timer to occur before the transition. Fixes freddy pharkas nighttime being daytime during transitions (bug #3051905)

svn-id: r52351
2010-08-24 17:22:05 +00:00
Filippos Karapetis
d48e173da1 SCI: added another version of Hoyle 1 (bug report #3052366)
svn-id: r52350
2010-08-24 17:17:13 +00:00
Filippos Karapetis
d1e45fd5d9 SCI: Removed a now unused selector from the selector cache
svn-id: r52349
2010-08-24 17:12:31 +00:00
Martin Kiewitz
01a8fc604b SCI: replacing save dialog as well
experimental feature - enable by putting "scireplacedialog=true" inside scummvm section of scummvm.ini

LSL6 currently loses the ability to quicksave, when using the feature. Although i don't see it as a huge loss. That way it's now possible to save to up to 100 slots instead of just 20.

svn-id: r52345
2010-08-24 15:11:53 +00:00
Filippos Karapetis
cd61674010 SCI: Check for the existence of script 180 before accessing it.
Fixes the Longbow demo

svn-id: r52344
2010-08-24 14:58:29 +00:00
Filippos Karapetis
ff9b897d8c SCI: Define xLast/yLast for LB2 floppy (which has no selector
vocabulary), since they're used inside kDoBresen()

svn-id: r52343
2010-08-24 14:54:16 +00:00
Martin Kiewitz
5fbe5f049b SCI: more work on replacing save dialog
also removing some previous code, because it wont work that way

svn-id: r52342
2010-08-24 14:40:18 +00:00
Martin Kiewitz
af6492fa45 SCI: some work on replacing save dialog
svn-id: r52341
2010-08-24 13:50:55 +00:00
Martin Kiewitz
10a1806f32 SCI: fixing const cast warning
making clone happy :D

svn-id: r52339
2010-08-24 13:37:24 +00:00
Martin Kiewitz
347accf2d7 SCI: dont load target palette when gameIsRestarting != 0
fixes sepia palette getting applied when loading in pharkas (part of bug #3051905)

svn-id: r52326
2010-08-24 11:21:32 +00:00
Martin Kiewitz
b192de5423 SCI: changing signature of kRestoreGame
and changing patch code accordingly

svn-id: r52320
2010-08-24 09:11:53 +00:00
Martin Kiewitz
d828b36d76 SCI: changing maximum slots from 0-999 to 0-99
svn-id: r52319
2010-08-24 09:05:54 +00:00
Martin Kiewitz
d5d8434fd6 SCI: now pausing/unpausing music in replaced restore dialog
dialog will not get replaced in sci32, nor in mother goose. Enable by adding "scireplacedialog" inside scummvm section of scummvm.ini file. Note: this feature is experimental

svn-id: r52318
2010-08-24 09:00:53 +00:00
Martin Kiewitz
f1f24b7b28 SCI: bit more work on restore dialog replacing
(works now, if enabled - but music isn't yet paused)

svn-id: r52317
2010-08-24 08:31:57 +00:00
Martin Kiewitz
e93eaa0d95 SCI: some more work on replacing restore dialog
svn-id: r52314
2010-08-23 23:04:07 +00:00
Martin Kiewitz
0c5561105c SCI: storing game super class address now inside SciEngine
svn-id: r52311
2010-08-23 20:29:13 +00:00
Martin Kiewitz
45a87ffe3f SCI: some work on replacing sierra restore dialog
svn-id: r52305
2010-08-23 19:10:06 +00:00
Martin Kiewitz
7b8add291e SCI: multiple changes for mother goose vga
which is sci1 and sci1.1
fixes bug #3051145
- separating this mother goose from ega and sci2.1
- adding workaround when restoring saved games in these games, games try to calculate restored savedgameid instead of looking it up, we patch this code out and also set the global to the current savedgameid
- adding workaround for scripts checking savedgameid to be below 13 (our savedgameids begin at 100 now)
- changing official range for savedgameids from 1000->1999 to 100->199, otherwise mother goose would have required much larger patches and this range should be fine even if we replace savedgame dialogs later

svn-id: r52301
2010-08-23 16:33:19 +00:00
Martin Kiewitz
d6fc42ebc9 SCI: slightly changing msecs for scrolling
svn-id: r52299
2010-08-23 13:57:00 +00:00