Commit Graph

652 Commits

Author SHA1 Message Date
Max Horn
fca9ec09e7 moved CharsetRendere into its own header/source file; changed Scumm::_charset into a pointer, to make it possible to use different implementations of it
svn-id: r6147
2002-12-25 21:04:47 +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
aed55eff69 text center mode hack
svn-id: r6144
2002-12-25 20:15:54 +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
Paweł Kołodziejski
5f5e96e24f added some stuff to lock/unlock object v2
svn-id: r6142
2002-12-25 19:30:59 +00:00
Paweł Kołodziejski
3bab4d4665 added some stuff to lock/unlock object
svn-id: r6141
2002-12-25 19:24:31 +00:00
Max Horn
447ab20369 cleanup
svn-id: r6140
2002-12-25 19:06:31 +00:00
Paweł Kołodziejski
7c7af18bc9 chenged opcode o8_breakHerVar to o6_delayFrames
svn-id: r6139
2002-12-25 18:47:46 +00:00
Paweł Kołodziejski
eb4d0145ff changes in o8_kludge
svn-id: r6137
2002-12-25 17:10:34 +00:00
Paweł Kołodziejski
b64c9ebc2b changed name from _insaneFlag to _smushFrameRate
svn-id: r6136
2002-12-25 16:55:43 +00:00
Max Horn
75085a6077 breakHereVar takes an argument -> Ctrl-C now works again (skips to the 'Part I' screen)
svn-id: r6135
2002-12-25 15:11:49 +00:00
Max Horn
33cddb4c1c use translateText for V8 print opcodes
svn-id: r6134
2002-12-25 15:04:04 +00:00
Max Horn
883cf3f60e use specified color
svn-id: r6133
2002-12-25 14:59:33 +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
Paweł Kołodziejski
a01b169434 fixed free buffer before alloc new
svn-id: r6131
2002-12-25 14:46:14 +00:00
James Brown
bda8d953a8 Clean up the hack. But it's still kinda a hack. Er. :)
svn-id: r6130
2002-12-25 14:31:17 +00:00
Paweł Kołodziejski
3bbfde3259 fixed width font problem in NutRenderer
svn-id: r6128
2002-12-25 14:09:54 +00:00
James Brown
c480833be7 Hacky font support - first attempt :)
svn-id: r6127
2002-12-25 13:51:01 +00:00
Paweł Kołodziejski
fb47f2a24b added nut renderer, there is bug with font width, fix later
svn-id: r6126
2002-12-25 13:04:01 +00:00
Max Horn
aa2a85de99 fixed bomp cursor in CMI partially - still seeing flickering/tearing/artifacts, though
svn-id: r6124
2002-12-25 12:41:41 +00:00
Ruediger Hanke
9e0e918397 Fix midi driver thread for MorphOS
svn-id: r6123
2002-12-25 12:36:29 +00:00
Max Horn
4a405b497a get rid of warnings that flood my terminal
svn-id: r6122
2002-12-25 12:25:35 +00:00
James Brown
23a339d151 Fix Dig regression
svn-id: r6121
2002-12-25 12:14:42 +00:00
Max Horn
fef84f3737 renamed Scumm::charset -> Scumm::_charset
svn-id: r6119
2002-12-25 12:01:04 +00:00
Max Horn
65ee9da743 cleanup (really need to factor out a lot of this stuff into seperate methods)
svn-id: r6118
2002-12-25 11:59:55 +00:00
Paweł Kołodziejski
4c83d9ed06 fixed warnings(errors) for VC6.
Endy I'm here now ! :-)

svn-id: r6115
2002-12-25 07:48:37 +00:00
James Brown
e1a416c031 Skeleton for hacky font support using Smush's FontRenderer. Doesn't work (uncomment the loadFont line in script_v8 to test).
Aquadran, where are you? :)

svn-id: r6114
2002-12-25 04:30:24 +00:00
Max Horn
1b0963dd76 added (broken) cursor support for V8; enabled bomp drawing
svn-id: r6113
2002-12-25 03:48:27 +00:00
Max Horn
bf41dbdba3 filled in f-kludge stuff, and make it push(0) - now we don't crash anymore
svn-id: r6112
2002-12-25 02:12:12 +00:00
Max Horn
2c01dc8536 even more -peantic fixes
svn-id: r6111
2002-12-25 00:48:13 +00:00
Max Horn
563f99b1fe more -pedantic warnings fixed
svn-id: r6109
2002-12-25 00:38:53 +00:00
Max Horn
ce6913cf36 fix -pedantic warnings
svn-id: r6108
2002-12-25 00:36:04 +00:00
Max Horn
7cb69f7fa2 allow array dynamically to make VC happy
svn-id: r6107
2002-12-25 00:31:39 +00:00
Max Horn
702de7424c more opcodes (we see graphics again, albeit only briefly before it crashes)
svn-id: r6106
2002-12-25 00:04:12 +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
190685dc69 added a map from object names to object ids
svn-id: r6104
2002-12-24 16:10:31 +00:00
Max Horn
22ab263b00 getting graphics in COMI, woohoo! That's a nice christmas present, isn't it? :-)
svn-id: r6103
2002-12-24 15:45:23 +00:00
Max Horn
908de40919 some hacks to get V8 loading further. It now fails because it can't find the SMAP resource
svn-id: r6102
2002-12-24 15:27:27 +00:00
Max Horn
45aec3ef0d more opcodes
svn-id: r6101
2002-12-24 15:23:24 +00:00
Max Horn
f5ef5a9699 opcode 0xE1 = o6_getAnimateVariable ?
svn-id: r6100
2002-12-24 14:39:52 +00:00
James Brown
5d2d6e11b3 Fix silly mistake
svn-id: r6099
2002-12-24 12:49:25 +00:00
James Brown
9df8cf4eba Fix a typo, add some more code.
Current crash is caused due to the non-existant mapping between objid's and the object names

svn-id: r6098
2002-12-24 12:27:35 +00:00
James Brown
600e516ef2 Cope with relocation of room scripts into a subbranch of LFLF, not ROOM
svn-id: r6097
2002-12-24 12:09:11 +00:00
Jonathan Gray
774761c066 replace unk1 for numZBuffer in the v8 part of RoomHeader
svn-id: r6096
2002-12-24 10:04:38 +00:00
Jonathan Gray
ff7e997a48 make initBGBuffers handle the fact that v8 stores number of z buffers in RMHD not RMIH. Now we have to handle the fact that object code blocks are now a sub block of RMSC
svn-id: r6095
2002-12-24 07:53:29 +00:00
Max Horn
559ac7b842 changed lots of stuff to read data in the V8 format; more changes still needed, and one open problem: V8 IMHD has no obj_id, we need to work around that somehow, not yet sure what the correct way is (two find out, we either need to get into a state where this actually matters, so that we can do trial & error, or we need a disassmbly)
svn-id: r6094
2002-12-24 04:02:21 +00:00
Max Horn
15eba85301 added V8 room & images headers
svn-id: r6093
2002-12-24 03:42:18 +00:00
Jonathan Gray
95c8028652 yes they really are the same, one opcode just has a jmp to the other
svn-id: r6092
2002-12-24 02:38:41 +00:00
Max Horn
456877e6f0 fixed room resource loading in V8 - now need to fix initRoomSubBlocks
svn-id: r6091
2002-12-24 02:18:02 +00:00
Max Horn
5135a409d0 upon res load error, print out from which file we tried to load, and also print the correc index (was 'type' instead of 'idx')
svn-id: r6090
2002-12-24 02:03:35 +00:00