Commit graph

65 commits

Author SHA1 Message Date
Paweł Kołodziejski
caf6d74095 put some v2 code into share code
svn-id: r7148
2003-04-27 07:52:26 +00:00
Paweł Kołodziejski
6bd3454ae5 update for scumm v2
svn-id: r7137
2003-04-26 16:37:35 +00:00
Travis Howell
3ecd142d6c Add patch #727309 - EGA LOOM: Bypassing the copy protection
svn-id: r7102
2003-04-25 09:16:33 +00:00
Jonathan Gray
5707a4e4bc better safe then sorry...
svn-id: r7098
2003-04-24 23:56:47 +00:00
Jonathan Gray
2ba6881a10 correction
svn-id: r7095
2003-04-24 15:59:41 +00:00
Jonathan Gray
8e06d3a23a bypass copy prot for indy3ega
svn-id: r7090
2003-04-24 00:44:34 +00:00
Max Horn
80c73e2cc9 fixed verb scripts for old bundle games
svn-id: r7089
2003-04-23 23:46:03 +00:00
James Brown
47114e1da2 V2 only reads one byte for variable number
svn-id: r7036
2003-04-20 16:46:55 +00:00
Jonathan Gray
90dd401eab work around strange problem that breaks fbpack when _showStack is a bool...
svn-id: r7027
2003-04-20 14:28:25 +00:00
Jonathan Gray
f1353701f8 add stack tracing option to debugger
svn-id: r7025
2003-04-20 08:04:27 +00:00
Jonathan Gray
c597d0d4d6 add script hex dumping option to debugger
svn-id: r7024
2003-04-20 06:55:09 +00:00
Paweł Kołodziejski
d0e9fef9a2 some changes for indy ega
svn-id: r7019
2003-04-18 21:10:32 +00:00
Paweł Kołodziejski
e0d170faca handle old_bundle offsets getVerbEntrypoint(), o5_setObjectName(), getObjOrActorName() funcs
svn-id: r7003
2003-04-13 16:42:33 +00:00
Jonathan Gray
c3ea143e34 hard to look at dial a pirate when you don't have graphics
svn-id: r6951
2003-04-10 06:18:23 +00:00
Paweł Kołodziejski
8a619598e9 also Loom exception in the read/write var funcs
svn-id: r6920
2003-04-06 16:02:08 +00:00
Paweł Kołodziejski
aa4898984a corrected right/bottom borders while clipping at drawBox() func
svn-id: r6919
2003-04-06 14:11:37 +00:00
Max Horn
0d18caae26 removed valgrind hack again
svn-id: r6765
2003-03-08 03:52:37 +00:00
Max Horn
b484c7a6bc added some code to get better valgrind results
svn-id: r6758
2003-03-07 23:49:59 +00:00
Max Horn
5537fc3df3 ouch - fixed OOB access on _baseFLObject; also added various sanity checks (thx valgrind)
svn-id: r6732
2003-03-07 02:42:39 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a and more cleanup
svn-id: r6718
2003-03-06 17:58:13 +00:00
Max Horn
a6cbfebf6d removed an obsolete member var, and started to make Scumm member vars protected (had to make some exception; the code which makes these exceptions necessary should be revised)
svn-id: r6589
2003-02-06 21:32:20 +00:00
James Brown
631f0e5d4b ComI uses more locals
svn-id: r6470
2003-01-15 15:49:44 +00:00
James Brown
bd9f9405cd Well.. it works NOW. (flObject fix part 2 :P)
svn-id: r6422
2003-01-12 10:22:07 +00:00
James Brown
daa5397e02 Small fix - _numLocalObjects is a 1-based array, so don't go reading bad memory :P
svn-id: r6417
2003-01-12 08:32:44 +00:00
James Brown
ef9a8d0714 New method of local object management. Buggy, segfaults on the Part 1 screen and I don't know why yet..
svn-id: r6416
2003-01-12 07:30:17 +00:00
Max Horn
ee5c452dee make script trace less noisy
svn-id: r6408
2003-01-12 01:01:20 +00:00
Max Horn
535ad0a4cf moved Scumm::faceActorToObj to Actor::faceToObject; moved various functions in script.cpp (grouping cutscene/override related stuff)
svn-id: r6317
2003-01-01 18:22:41 +00:00
Max Horn
53a8fc24fe fixed cutscene override in V8; cleanup
svn-id: r6316
2003-01-01 17:57:14 +00:00
Max Horn
5c6bd0f658 added FIXME
svn-id: r6271
2002-12-30 02:11:33 +00:00
Max Horn
69a44051d9 get rid of annoying warning
svn-id: r6267
2002-12-30 01:25:51 +00:00
Max Horn
ae5b30df3d get rid of getStringLen and use the more powerful resStrLen instead; moved resStrLen from common/ to scumm/, where it belongs; enhanced resStrLen to suport V8; fixed translateText to support embeded vars (in strings I mean) - it may still not be fully correct but at least is better now; rewrote o6_arrayOps to parallel the V8 version - needs testing
svn-id: r6215
2002-12-28 01:57:19 +00:00
Max Horn
6311835f79 fixed verb entry code for V8
svn-id: r6199
2002-12-27 15:11:43 +00:00
Max Horn
81c421ec0c cleanup
svn-id: r6197
2002-12-27 14:04:25 +00:00
Max Horn
0e51efcc4c fix S&M (why was that changed made in the first place I wonder?)
svn-id: r6188
2002-12-27 01:49:47 +00:00
Max Horn
966d435a19 fixed verb scripts
svn-id: r6175
2002-12-26 20:37:49 +00:00
James Brown
5ec4f7b267 Hack around a COMI crash..
svn-id: r6172
2002-12-26 13:44:40 +00:00
Max Horn
9187172fe2 implemented V8 kernel function 'killAllScriptsButMe' - not sure if I did it right, though
svn-id: r6145
2002-12-25 20:29:40 +00:00
Max Horn
5c39a82633 two good rules of thumb: don't use typecasts if you don't have to - type cast have a nasty habit of hiding and causing problems. When a method takes a pointer argument, if possible make it const. :-). Cleanup. Fixed font rendering in CMI: you need to call updateDirtyRect() if you modify the screen...
svn-id: r6143
2002-12-25 20:07:09 +00:00
Max Horn
447ab20369 cleanup
svn-id: r6140
2002-12-25 19:06:31 +00:00
Max Horn
004ea9f8eb converted heaps of int16 to int for V8 compatibility; fixed defineArray for V8; added some work in o8_kludge2
svn-id: r6132
2002-12-25 14:46:39 +00:00
James Brown
c480833be7 Hacky font support - first attempt :)
svn-id: r6127
2002-12-25 13:51:01 +00:00
Max Horn
13518c3d36 enabled room & local scripts in V8; some more opcodes
svn-id: r6105
2002-12-24 23:26:37 +00:00
Max Horn
57cdbd0abb set script tracing to level 1 - at least while we do V8 debugging, later we can go back to a higher level
svn-id: r6082
2002-12-23 20:29:53 +00:00
Max Horn
897fc9a91b and more V8. Now we again hit the charset limit, but this time caused by the script itself :-)
svn-id: r6077
2002-12-23 18:56:43 +00:00
Max Horn
6d0fd3989c fix jumpTrue/jumpFalse opcodes; slightly better debug output
svn-id: r6075
2002-12-23 18:37:56 +00:00
Max Horn
7d052a26b0 don't be needlessly verbose; allow byte arrays in V8
svn-id: r6071
2002-12-23 16:17:23 +00:00
Max Horn
58f2ee45cd word size for V8 games is 4 bytes, as opposed to 2 bytes in V6/V7 games. Hence we adjust fetchScriptWord - this way we can reuse all sorts of code (and no, this is not really a hack - word size by tradition is something which varies depending on the architecture, so it is even consistent)
svn-id: r6064
2002-12-23 00:23:36 +00:00
Max Horn
3ce3a5be5b minor cleanup
svn-id: r6059
2002-12-22 19:14:53 +00:00
Max Horn
c4b6fa7f70 refactoring: use inheritance to mode the relations between the various engine versions. E.g. the V6 opcodes are now in Scumm_v6, the V5 opcodes in Scumm_v5 (from which we now derive v2-v4. which is a bit odd - maybe we should move the v5 opcodes to Scumm_v3 ?)
svn-id: r5994
2002-12-16 12:12:31 +00:00