Commit Graph

432 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Max Horn
88317c1944 SCI: Fixed savestate loading
svn-id: r40305
2009-05-04 15:04:55 +00:00
Max Horn
3cf4d1d71a SCI: Added doxygen comment to MemObject::MemObject
svn-id: r40303
2009-05-04 15:04:26 +00:00
Max Horn
a41069d69b SCI: Started adding methods to MemObject subclasses: constructors, destructors, dereference() (and currently commented out refs to Common::Serializable
svn-id: r40295
2009-05-03 22:47:04 +00:00
Max Horn
d960c1e2a5 SCI: Completed transition from MemObject (a union of various structs) to MemObjectNEW (a baseclass for these structs)
svn-id: r40294
2009-05-03 22:46:38 +00:00
Max Horn
82f2672008 SCI: Changed SegManager to store the heap pointers in a Common::Arrray
svn-id: r40293
2009-05-03 22:46:11 +00:00
Max Horn
f108a31ad7 SCI: Made SegManager::heap_size unsigned
svn-id: r40290
2009-05-03 22:45:13 +00:00
Max Horn
5e955ea045 SCI: Continue transition from MemObject to MemObjectNEW
svn-id: r40274
2009-05-03 11:07:07 +00:00
Max Horn
418a2a422e SCI: Got rid of the LIST_ALL_DEALLOCATABLE macro
svn-id: r40273
2009-05-03 11:04:37 +00:00
Max Horn
79b0711cfd SCI: Begun conversion of the MemObject union (used to implement poor man's fake inheritance) into a base class of all the various union members
svn-id: r40272
2009-05-03 09:30:59 +00:00
Max Horn
50c8821072 SCI: Renamed MemObject::type and ::segmgr_id to _type resp. _segmgrId, and added accessor methods getType() and getSegMgrId()
svn-id: r40271
2009-05-03 09:30:33 +00:00
Max Horn
ba57b21d09 SCI: Changed SegManager to subclass Common::Serializable
svn-id: r40270
2009-05-03 09:25:15 +00:00
Max Horn
d695c24b9b SCI: Changed various params of type MemObject* to the more specific type Script&
svn-id: r40269
2009-05-03 09:21:08 +00:00
Max Horn
58ee0314ae SCI: Added SegManager::getScript method and modified code to make use of it; moved VERIFY from seg_manager.h to seg_manager.cpp
svn-id: r40268
2009-05-03 09:20:21 +00:00
Max Horn
cac28ebdbb SCI: Doxygenified various comments
svn-id: r40266
2009-05-03 09:19:21 +00:00
Max Horn
2a89c7d1d4 SCI: Removed MEM_OBJ_RESERVED and related code
svn-id: r40265
2009-05-03 09:18:56 +00:00
Max Horn
240be613f9 SCI: Removed dead code
svn-id: r40264
2009-05-03 09:18:25 +00:00
Max Horn
5ef0e38fdd SCI: Changed VM GC code to use Common::Array
svn-id: r40263
2009-05-03 09:17:55 +00:00