Commit Graph
560 Commits
Author SHA1 Message Date
Lars Skovlund c5252071db SCI3: Add proper support for the calle instruction
svn-id: r54327
2010-11-18 17:04:00 +00:00
Filippos Karapetis ddbda3eb15 SCI: Code formatting
svn-id: r54305
2010-11-17 20:50:24 +00:00
Lars Skovlund 8a6efcac65 SCI3: Implement opcode to retrieve the info selector.
svn-id: r54303
2010-11-17 20:43:51 +00:00
Lars Skovlund 5ab823b16a SCI3: relocate operand of the lofsa opcode
svn-id: r54301
2010-11-17 20:29:10 +00:00
Lars Skovlund e086ef0096 Adapt SCI property instructions (pToa etc.) to SCI3
svn-id: r54296
2010-11-17 17:21:02 +00:00
Filippos Karapetis 47e137fd8e SCI: lofsa/lofss functionality for SCI3
- Updated detectLofsType() for SCI3
- Cleaned up op_lofsa and op_lofss and updated them for SCI3

svn-id: r54293
2010-11-17 14:28:32 +00:00
Filippos Karapetis bb9b7c24f9 SCI: Added some SCI3 selector related information
- Added a TODO for the usage of the -info- selector in kClone and kDisposeClone in
SCI3 scripts, as it's no longer used in SCI3
- Added information about which of the selectors are missing in SCI3. There are
some more which are missing, but aren't used in SCI2-SCI3 anyway
- Some styling

svn-id: r54291
2010-11-17 14:03:14 +00:00
Filippos Karapetis 1e9407be3f SCI: Added comments for rev. 54150 and fixed a typo
svn-id: r54153
2010-11-09 11:57:54 +00:00
Lars Skovlund 53a4a64b16 treat pushSelf opcode with low bit set as pushSelf (in fangames only, currently). Fixes bug #3038686.
(SCI Fanmade - Circus Quest: Crash when starting).

svn-id: r54150
2010-11-09 10:07:34 +00:00
Max Horn ba3e826872 SCI: Remove any use of printf
svn-id: r54037
2010-11-02 09:49:47 +00:00
Max Horn e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Willem Jan Palenstijn 95118b172e SCI: Still show warning for uninit. reads in release mode
svn-id: r53047
2010-10-07 14:57:59 +00:00
Martin Kiewitz 2879e19b6a SCI: unknown valgrind cases->fake 0 when official
we will fake 0 instead of error()ing out in official releases, when an uninitialized temp is read

is supposed to get backported

svn-id: r53046
2010-10-07 14:40:11 +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 2f88eec713 SCI: Fixed compilation when VM_DEBUG_SEND is enabled
svn-id: r52498
2010-09-02 18:58:25 +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
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
Willem Jan Palenstijn b2ebb62e11 SCI: Make assert stricter.
(Thanks to fuzzie.)

svn-id: r52376
2010-08-25 09:02:43 +00:00
Filippos Karapetis 780dacf48d SCI: Fixed one of the bugs in hoyle3, from bug report #3038837 - "HOYLE3: EGA/VGA Crashes" (that report includes more issues)
svn-id: r52213
2010-08-19 15:58:39 +00:00
Johannes Schickel b7ab1d41bf SCI: Silence shadowed variable warning of g++.
svn-id: r52082
2010-08-14 08:44:29 +00:00
Martin Kiewitz 512bf22af6 SCI: adding workaround for camelot during ending
fixes bug #3044734
also fixing heap corruption during the ending

svn-id: r52077
2010-08-14 06:05:54 +00:00
Filippos Karapetis 9aa3f25499 SCI: Improve output when VM_DEBUG_SEND is set
svn-id: r51831
2010-08-07 12:36:17 +00:00
Filippos Karapetis ab79d58153 SCI: Fixed script bug #3040142 - "PEPPER: Crash on Pugh's office"
svn-id: r51821
2010-08-07 01:09:32 +00:00
Filippos Karapetis eb112d6711 SCI: Rewrote the Mother Goose workaround to be like the others, some cleanup
svn-id: r51786
2010-08-06 15:05:05 +00:00
Martin Kiewitz 9013c15480 SCI: properly implementing qfg2 astrologer workaround
svn-id: r51783
2010-08-06 11:45:32 +00:00
Filippos Karapetis 6c8bcd2ba1 SCI: Added a workaround for a script bug in QFG2, room 200, when talking with the astrologer. Fixes bug #3039879, "QFG2: Crash at astrologer's"
svn-id: r51772
2010-08-05 23:08:05 +00:00
Filippos Karapetis 19e624ae5b SCI: Changed the warning when a script can't be found from a segment into an error
svn-id: r51758
2010-08-05 16:58:59 +00:00
Matthew Hoops ed741dc96c SCI: Fix bug #3038913 - SCI Fanmade - The Legend of the Lost Jewel: Crash by bugs
Added workaround for calling mul with an object and kSetAngle with two objects as parameters.

svn-id: r51743
2010-08-04 18:11:11 +00:00
Martin Kiewitz fcede4680a SCI: adding bpk debug command
currently removing or listing such breakpoints is not yet supported

svn-id: r51710
2010-08-03 19:06:40 +00:00
Martin Kiewitz ee28c2eb54 SCI: adding workaround for pq3
fixes bug #3037565

svn-id: r51701
2010-08-03 15:51:31 +00:00
Martin Kiewitz f54b9e3527 SCI: removing warning about uninitialized parameters
didn't cause any harm till now and it seems testers get irritated by it. Switching it to VM debug level 2.

svn-id: r51540
2010-07-31 14:38:28 +00:00
Filippos Karapetis cbbafc138b SCI: Updated the op_mod changes and added a link to the original bug report
svn-id: r51509
2010-07-30 15:19:21 +00:00
Filippos Karapetis 5b401215d9 SCI: Added handling of negative numbers to
op_mod for SCI01 and newer games. Fixes the
battlecruiser mini-game in SQ5. Many thanks
to lskovlun, wjp and m_kiewitz for their
joined effort on this issue

svn-id: r51508
2010-07-30 14:56:38 +00:00
Martin Kiewitz 41ed8b4389 SCI: some subfunction support for logkernel
svn-id: r51475
2010-07-29 17:22:38 +00:00
Filippos Karapetis e0f6bb2e7a SCI: Adding the room number to some more errors
svn-id: r51413
2010-07-28 11:37:22 +00:00
Martin Kiewitz b873cf2ebf SCI: changes for mother goose sci2.1
changed signature for kSetCursor sci2.1
added workarounds
added separate gameid for mother goose sci2.1

svn-id: r51385
2010-07-27 19:09:57 +00:00
Matthew Hoops 89c9425eef SCI: Add a 0x prefix to localCall to show it's a hexadecimal number
svn-id: r51341
2010-07-27 01:51:10 +00:00
Filippos Karapetis 8d04588880 SCI: Added room number to signature mismatch errors
svn-id: r51303
2010-07-26 07:55:50 +00:00
Filippos Karapetis b28b290c70 SCI: Fixed bug #3034464, "ECOQUEST2: Crash near beginning"
svn-id: r51293
2010-07-26 05:40:58 +00:00
Martin Kiewitz d49d1d60fe SCI: added said spec dump ability to logkernel
svn-id: r51242
2010-07-24 11:51:09 +00:00
Martin Kiewitz d73c8578ff SCI: result now displayed in decimal for logkernel
svn-id: r51225
2010-07-23 21:20:35 +00:00
Martin Kiewitz d92cece58a SCI: some small logkernel changes
svn-id: r51224
2010-07-23 21:13:57 +00:00
Martin Kiewitz b984d9afc0 SCI: logkernel changes
removing old manual debug code, use logkernel * on/off to log all calls

svn-id: r51222
2010-07-23 20:59:27 +00:00
Martin Kiewitz 3a45e47c5c SCI: adding new debug command logkernel
svn-id: r51220
2010-07-23 20:47:15 +00:00
Martin Kiewitz 20b1d80d59 SCI: adding table for kDisplay workarounds
and removing hardcoded checks, adding another workaround for kGraph(drawLine) in island of dr. brain (also gene explanation chart)
Moving trackOriginAndFindWorkaround() into workarounds.cpp

svn-id: r51209
2010-07-23 14:32:24 +00:00
Filippos Karapetis 28bc31a139 When modifying variable selectors with argc > 1, don't throw a warning, but use a debugC instead. These are usually typos in the original scripts, and aren't fatal
svn-id: r51147
2010-07-22 15:56:26 +00:00
Filippos Karapetis 8eca9d6acb SCI: Fixed a bug when loading some saved games (sometimes, the execution stack wasn't cleared properly when loading and you couldn't save or restore)
svn-id: r51140
2010-07-22 12:38:48 +00:00
Filippos Karapetis 2ed45d3719 SCI: Moved all the static kernel-related tables in a separate file. Also, moved kStub, kStubNull and kDummy inside kmisc.cpp, together with the other misc kernel calls
svn-id: r51089
2010-07-21 14:50:31 +00:00