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
Filippos Karapetis
23d4177d20
SCI: Check for EOF and errors when reading from a file. Fixes bug #3049360 - "SCI: Bug in file read/write operations"
...
svn-id: r52298
2010-08-23 12:56:41 +00:00
Willem Jan Palenstijn
eeff13d747
SCI: Fix whitespace
...
svn-id: r52297
2010-08-23 10:18:06 +00:00
Filippos Karapetis
f960f5da23
SCI: Fixed bug #3051163 - "MOTHERGOOSE: Crash at the very end" and merged 2 SQ6 workarounds
...
svn-id: r52294
2010-08-23 08:29:16 +00:00
Filippos Karapetis
542711cea7
SCI: Fixed bug #3048908 - "PQ3EGA: Wrong speech bubble background colors" and added a FIXME inside kGraphDrawLine
...
svn-id: r52291
2010-08-22 23:55:29 +00:00
Filippos Karapetis
11d5f5ac06
SCI: Fixed bug #3050856 - "SQ3 : Crash at intro"
...
svn-id: r52289
2010-08-22 23:11:55 +00:00
Matthew Hoops
66f7e4306c
SCI: Add uninit'd workaround for the SQ6 demo
...
svn-id: r52283
2010-08-22 17:55:29 +00:00
Filippos Karapetis
68f3cc944c
SCI: Reimplemented the kShow kernel command, used by the inbuilt SCI debugger. There is no real need to implement kernel debug commands, but since this one maps almost directly to our own "show" debug command, it has been reimplemented (was removed in rev #45310 ). Normally, there is no real need to implement kernel functions for debug functionality, since there are advanced tools for this purpose nowadays (plus, ScummVM's debugger). Fixes bug #3050616 - "QFG1 EGA: priority/control/view functions crash, debug mode"
...
svn-id: r52281
2010-08-22 16:30:33 +00:00
Matthew Hoops
3677a8a382
SCI: Fix a bug in kFileIOWriteString. The first return statement should go inside the if-statement.
...
svn-id: r52269
2010-08-22 03:50:42 +00:00
Martin Kiewitz
ee6f972247
SCI: improving delaying transitions
...
should hopefully make them run better on different platforms (some platforms dont update on every updateScreen call, so the transitions worked much faster there (e.g. wii) and some other platforms dont have that much power, so transitions were slower on those)
svn-id: r52266
2010-08-21 17:49:59 +00:00
Martin Kiewitz
4742b4d728
SCI: now fading color 255 as well in sci1.1
...
looks better, although sierra didn't do that (examples: qfg3 demo/intro)
svn-id: r52264
2010-08-21 14:54:57 +00:00