Commit Graph

891 Commits

Author SHA1 Message Date
Max Horn
98fb95589c SCI: Changed EngineState::pics to a Common::Array
svn-id: r40434
2009-05-10 20:13:43 +00:00
Max Horn
14aa9d70ac SCI: Replaced Cplain odeBlock array in class Script by a Common::Array<CodeBlock>
svn-id: r40433
2009-05-10 20:13:12 +00:00
Max Horn
38c48b4f6e SCI: Fixed palette regression from rev 40388
svn-id: r40432
2009-05-10 19:18:19 +00:00
Max Horn
019f87fd1b SCI: Changed object list in Script instances to use Common:::Array
svn-id: r40431
2009-05-10 19:17:51 +00:00
Filippos Karapetis
7cd07d9581 Cleanup
svn-id: r40423
2009-05-10 14:57:27 +00:00
Filippos Karapetis
d34d5f56b6 Cleanup
svn-id: r40422
2009-05-10 14:04:56 +00:00
Filippos Karapetis
53f24f3e43 Applied patch by waltervn to remove the length parameter from getText() and fixed a silly bug in getLength()
svn-id: r40421
2009-05-10 13:47:38 +00:00
Filippos Karapetis
3592801a57 Objectified and cleaned up the MessageState class
svn-id: r40419
2009-05-10 13:15:14 +00:00
Filippos Karapetis
3e9ca1a638 Reverted commit #40413
svn-id: r40415
2009-05-10 11:08:50 +00:00
Filippos Karapetis
05d6edda4f Oops
svn-id: r40413
2009-05-10 10:59:08 +00:00
Filippos Karapetis
acd5a87922 Moved the code which retrieves the current room number in a separate function and merged _sci1_alloc_system_colors inside _reset_graphics_input
svn-id: r40412
2009-05-10 10:27:45 +00:00
Filippos Karapetis
ceee278def Disabled some unused code
svn-id: r40411
2009-05-10 09:53:39 +00:00
Walter van Niftrik
34bdd010c3 SCI: AvoidPath: Got rid of a warning.
svn-id: r40399
2009-05-09 09:52:46 +00:00
Walter van Niftrik
90cef59d3b SCI: AvoidPath: No longer excludes edges on screen borders for pathfinding, as
only the earlier games seem to do this. We may need to add a SCI version check
here if this change breaks anything in earlier games.

svn-id: r40398
2009-05-09 01:23:52 +00:00
Walter van Niftrik
a70531f814 SCI: AvoidPath: another workaround for ECO.
svn-id: r40397
2009-05-09 00:32:05 +00:00
Walter van Niftrik
be7acea217 SCI: Set signature for GetMessage.
svn-id: r40396
2009-05-08 23:10:25 +00:00
Walter van Niftrik
4f4bef88b1 SCI: Fix return value of GetMessage.
svn-id: r40394
2009-05-08 22:44:26 +00:00
Walter van Niftrik
f4bcd1680f SCI: GetMessage: lock resource.
svn-id: r40390
2009-05-08 16:21:51 +00:00
Max Horn
e933c02fd2 SCI: Folded line.h and crossblit.h into gfx_support.cpp
svn-id: r40389
2009-05-08 16:03:55 +00:00
Max Horn
0ebd41ac59 SCI: cleanup
svn-id: r40388
2009-05-08 16:03:14 +00:00
Max Horn
de114d3d52 SCI: Got rid of code for endian adjusting pixmaps
svn-id: r40387
2009-05-08 16:02:22 +00:00
Max Horn
527463dea2 SCI: turn the various gfx filters from #define hacks into template funcs
svn-id: r40386
2009-05-08 16:01:25 +00:00
Max Horn
e34c6316c6 SCI: Replaced gfx_driver_t::set_palette and install_palette by directly invoking their OSystem counterparts
svn-id: r40385
2009-05-08 16:00:39 +00:00
Walter van Niftrik
418d80c8a8 SCI: AvoidPath: another workaround for ECO
svn-id: r40384
2009-05-08 14:29:20 +00:00
Walter van Niftrik
afa254721d SCI: AvoidPath: Fixed a regression caused by previous commit, and added a
workaround for ECO room 300.

svn-id: r40383
2009-05-08 12:39:37 +00:00
Walter van Niftrik
8346af68ec SCI: AvoidPath: added support for multiple contained-access polygons (ECO1).
svn-id: r40378
2009-05-08 11:08:53 +00:00
Max Horn
574dee8e1f SCI: Got rid of last traces of class SegInterface
svn-id: r40377
2009-05-08 09:54:24 +00:00
Max Horn
0223b7e490 SCI: Moved findCanonicAddress from SegInterface to MemObject
svn-id: r40376
2009-05-08 09:54:06 +00:00
Max Horn
8d4a4271bb SCI: Moved freeAtAddress from SegInterface to MemObject
svn-id: r40375
2009-05-08 09:53:49 +00:00
Max Horn
b49dd22173 SCI: Renamed dstack_t -> DataStack; removed obsolete KF_OLD constant
svn-id: r40374
2009-05-08 09:53:31 +00:00
Max Horn
d8738b9090 SCI: Started to merge SegInterface into MemObject
svn-id: r40373
2009-05-08 09:53:10 +00:00
Max Horn
76a48947de SCI: Added workaround for Common::Array<T>::resize() not zero-initing newly allocated memory if T is a scaler type, pointer, POD type. At least on OS X
svn-id: r40372
2009-05-08 09:52:51 +00:00
Matthew Hoops
226f8860ca Fix an endian bug
svn-id: r40370
2009-05-07 12:24:42 +00:00
Paul Gilbert
25e844655e Sync with adlib.cpp rename
svn-id: r40358
2009-05-06 11:11:44 +00:00
Max Horn
8d2f80fd51 SCI: Added operator== and !=, as well as an isNull method to reg_t
svn-id: r40356
2009-05-06 11:07:04 +00:00
Max Horn
b7d1ca00d7 SCI: Added a comment (taken from a mail by Lars Skovlund) explaining SCI string frags. Also added a 'typedef reg_t *StringFrag' for future use
svn-id: r40355
2009-05-06 11:06:43 +00:00
Eugene Sandulenko
efa3d244fa Sync with adlib.cpp rename
svn-id: r40354
2009-05-06 11:01:58 +00:00
Eugene Sandulenko
a9d1e5efa9 Rename duplicate named files in order to make MSVC happier
svn-id: r40353
2009-05-06 11:00:24 +00:00
Walter van Niftrik
563c6d59d3 SCI: Modified the new adlib driver for the dosbox adlib emulator, and enabled the new player.
svn-id: r40343
2009-05-06 01:18:12 +00:00
Walter van Niftrik
bd82af01c2 SCI: Removed stereo support from the soon-to-be-removed old SCI adlib driver
in order to get it working with the new adlib emulator.

svn-id: r40336
2009-05-05 22:07:50 +00:00
Johannes Schickel
ad38e0def0 Update SCI code for the upcoming AdLib emulator changes:
- Switch old 'opl2' code to use less of the MAME specific API.
- Since 'interleave' parameter on "YM3812UpdateOne" will be dropped, work around that in SCI code by hand.

svn-id: r40332
2009-05-05 21:34:32 +00:00
Max Horn
dc29c404a7 SCI: Work around an 'Array used after being disposed' bug that occurs when a GfxVisual gets disposed
svn-id: r40327
2009-05-05 12:33:11 +00:00
Max Horn
c36694764d SCI: Fix my previous changes to internal_stringfrag_strcmp (side remark: Another bonus when using git resp. git-svn, and not SVN: you can commit stuff and test it some time before going public, thus avoid stupid screw ups like this one ;)
svn-id: r40325
2009-05-05 12:28:12 +00:00
Max Horn
7e51eb6478 SCI: Actually, it turns out the SystemString is more messed up than I thought: In some places it allocates a memory block of max_size bytes; sometimes max_size+1 bytes; and sometimes max_size*sizeof(reg_t) bytes. And sometimes strings frags are accessed as plain C strings (e.g. when saved), sometimes as a string encode as a series of reg_t values. Ouch :/
svn-id: r40324
2009-05-05 12:23:05 +00:00
Max Horn
2980940788 SCI: Simplified internal_stringfrag_strcmp and internal_stringfrag_strncmp
svn-id: r40323
2009-05-05 12:20:28 +00:00
Max Horn
36f58b6378 SCI: Fixed out of bounds access in (still incomplete?) string frags code
svn-id: r40321
2009-05-05 12:00:51 +00:00
Walter van Niftrik
274d890f5b SCI: Support for 0x4e control changes in new adlib driver, and some cleanup.
svn-id: r40312
2009-05-05 01:51:39 +00:00
Johannes Schickel
e63b778541 This should fix linking on PSP.
svn-id: r40310
2009-05-04 16:52:13 +00:00
Max Horn
f2da4bc447 SCI: Got rid of heapmgr.h; further improve the Table code
svn-id: r40308
2009-05-04 15:23:33 +00:00
Max Horn
6e6a8f8d6c SCI: Unified serializing code for Table subclasses, using template specialization. This whole syncWithSerializer / DefaultSyncer / ArraySyncer code is experimental work in progress ;)
svn-id: r40306
2009-05-04 15:05:11 +00:00