Commit Graph

259 Commits

Author SHA1 Message Date
Travis Howell
1507203d93 VAR78 needs to be set in HE80+ games
Active sound channels VAR exists in HE80 too.

svn-id: r17632
2005-04-16 15:21:19 +00:00
Travis Howell
471a58680d Filter out extra path setting and useless setting when writing INIs details in HE games.
svn-id: r17629
2005-04-16 14:45:21 +00:00
Travis Howell
a9ff09b066 Adjust for footdemo, which triggers assert.
svn-id: r17612
2005-04-16 05:36:01 +00:00
Travis Howell
a3882f3af7 Add HE7.2 difference in o_getResourceSize().
Add support for checking size of music resource.

svn-id: r17595
2005-04-14 06:06:59 +00:00
Travis Howell
d8467268c4 Off by one.
svn-id: r17583
2005-04-13 11:03:23 +00:00
Travis Howell
d3ea799f23 _stringBuffer can have mutple strings, ie in pajama2 startup.
Add safety check for buffer size.

svn-id: r17581
2005-04-13 10:34:47 +00:00
Travis Howell
b8d3bec568 Read/write INI entries from config file in HE games.
svn-id: r17580
2005-04-13 06:53:38 +00:00
Travis Howell
eed70f3dba Cleanup
svn-id: r17564
2005-04-12 07:52:15 +00:00
Travis Howell
dea27e2c63 Work in progress on opcodeE0 for HE games.
Cleanup.

svn-id: r17560
2005-04-12 02:29:50 +00:00
Max Horn
871e278f8b Reduce dependencies on scumm/util.h; modified ScummNESFile a bit so that it complies a bit better with our code formatting rules
svn-id: r17508
2005-04-10 12:59:17 +00:00
Travis Howell
240a6f7406 Switch back to warning, since it is used in maze
svn-id: r17481
2005-04-09 15:12:26 +00:00
Travis Howell
b12942a8e7 Correct stack list order.
chase/lost/smaller use correct level numbers now.

svn-id: r17480
2005-04-09 15:07:44 +00:00
Torbjörn Andersson
1566fb527f Fixed typo in comment.
svn-id: r17476
2005-04-09 13:04:12 +00:00
Max Horn
34098ae3c7 Simplify the substResFileName system a bit
svn-id: r17475
2005-04-09 11:59:43 +00:00
Travis Howell
4f08551643 Add comment to TODO
Check that string pointer exists, before reading data.
Don't attempt to play speech in soccer2004, since it uses compression.

svn-id: r17470
2005-04-09 07:25:41 +00:00
Travis Howell
efa83b0dbb Correct arguments order, works now.
svn-id: r17466
2005-04-09 04:52:44 +00:00
Travis Howell
61cfe81278 Actor layering only matches in freddicove
svn-id: r17461
2005-04-08 23:54:34 +00:00
Travis Howell
2a5aaf9fc2 Add HE70+ version of seekFilePos opcode.
svn-id: r17450
2005-04-08 11:10:01 +00:00
Travis Howell
328c588eab Ooops
svn-id: r17449
2005-04-08 07:50:46 +00:00
Travis Howell
c2aff3bf46 A few off by 1's.
svn-id: r17448
2005-04-08 07:49:06 +00:00
Travis Howell
5bd6380b20 Set array data
svn-id: r17446
2005-04-08 05:19:10 +00:00
Travis Howell
59703e4a57 HE99+ games store the base name is array 129, which is set on startup.
svn-id: r17444
2005-04-08 00:38:12 +00:00
Travis Howell
682df447a3 The reverse actor layering only applies to pajama3
svn-id: r17432
2005-04-07 10:54:36 +00:00
Max Horn
3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +00:00
Max Horn
26e0ec1d24 itoa is not ANSI C and not portable. TODO: Implement the %b case
svn-id: r17419
2005-04-06 17:24:18 +00:00
Travis Howell
03be8dc46e Add missing code for decodeScriptString cases.
svn-id: r17416
2005-04-06 15:01:46 +00:00
Travis Howell
f230fe65e8 Add 8 sound channel support for HE games
-Allows sound looping to work

Added support for WAVE format musuc used in later HE100 games.

svn-id: r17372
2005-04-04 11:43:25 +00:00
Travis Howell
27cba7619e More sprite renames
svn-id: r17342
2005-04-03 02:24:28 +00:00
Gregory Montoir
7b88503437 initial implementation of o72_arrayOps_127 and o90_sortArray
svn-id: r17337
2005-04-02 17:19:44 +00:00
Travis Howell
d80f9ccd40 Add support for clipping of wizImages.
Add support for altering wizImages.
Various renames.

svn-id: r17322
2005-04-01 08:51:13 +00:00
Travis Howell
cdd21c361b Remove resource type argument in wizImage functions, it is always rtImage.
Rename sprite flags/functions
Remove unused sprite flags
Switch sprite flags back to hex. for easier comparison

svn-id: r17319
2005-04-01 06:30:46 +00:00
Travis Howell
fc59dcae3e Return correct object x/y position
svn-id: r17308
2005-03-31 12:58:11 +00:00
Eugene Sandulenko
7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Travis Howell
6bb533f936 Cleanup
svn-id: r17292
2005-03-30 11:49:53 +00:00
Travis Howell
22affb0382 Check class of object number, not loop.
Cleanup.

svn-id: r17272
2005-03-28 11:38:04 +00:00
Travis Howell
11e1e246cc findObject in HE72+ only checks object bounds
findObject in He70/71 only needs additional polygon check

svn-id: r17270
2005-03-28 10:02:22 +00:00
Travis Howell
8e84ee694c Add HE90 version of kernelGet/Set opcode and move HE90 specific cases over.
svn-id: r17200
2005-03-23 00:16:51 +00:00
Eugene Sandulenko
8102efa7a3 Add three new HE sports games. Baseball is most playable now.
Add some unhandled KernelGet/SetFunctions used by new titles.

svn-id: r17198
2005-03-22 20:57:14 +00:00
Travis Howell
f50af11b5d Add HE72 version of file rename opcode
svn-id: r17175
2005-03-17 11:06:43 +00:00
Travis Howell
4361ef655e HE72+ games use slightly different code for subtitle color.
svn-id: r17174
2005-03-17 10:53:29 +00:00
Eugene Sandulenko
154c4af8dc Mass-renamed all variables of Actor object according to our current code
formatting standards. Earlier we had half of vars named with leading
underscore and half without it.

Now code in actor.cpp is considerably more readable.

svn-id: r17068
2005-03-11 01:10:06 +00:00
Travis Howell
a913095ee0 Add HE specific versions of findResource/findResourceData.
Required by WizImage functions, which sometimes alter data.

svn-id: r17060
2005-03-10 11:06:37 +00:00
Travis Howell
f7770e3cfe Add last change to o60_opeFile too.
svn-id: r17057
2005-03-10 00:50:54 +00:00
Travis Howell
248bee4d24 Change o72_openFile to always use saved game path for writing.
svn-id: r17056
2005-03-10 00:46:26 +00:00
Travis Howell
d2dab23510 Add HE100 difference in opcode.
svn-id: r17033
2005-03-08 03:52:02 +00:00
Travis Howell
8cc18e6797 Minor cleanup
svn-id: r17025
2005-03-07 06:37:56 +00:00
Travis Howell
1e07216b85 Cases are different.
svn-id: r17023
2005-03-07 04:21:11 +00:00
Travis Howell
958d68e893 Need to adjust HE7 filename for mustard too.
svn-id: r16982
2005-03-03 05:09:39 +00:00
Travis Howell
78e3fc9415 Add missing actor redraws
svn-id: r16980
2005-03-03 03:06:30 +00:00
Travis Howell
e85baf02d1 Correct palSlot range
svn-id: r16979
2005-03-03 02:51:15 +00:00