Commit Graph

394 Commits

Author SHA1 Message Date
Max Horn
bed1629642 Made findResourceSmall local to resource.cpp; simplified _EPAL_offs (since we don't use it nor save it at this time, this is harmless); added a comment about _CLUT_offs ugliness
svn-id: r17314
2005-03-31 23:11:39 +00:00
Max Horn
ac247c9b94 Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx)
svn-id: r17311
2005-03-31 21:39:31 +00:00
Eugene Sandulenko
f4c50eff95 Switch to headerless PRG data for MM NES for better compatibility.
svn-id: r17302
2005-03-30 23:25:49 +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
Eugene Sandulenko
dbfeb393aa Patch from Quietust for MM NES
o Fix number of global objects
 o Camera-related differences
 o Proper user states
 o Updated MD5 for new 00.lfl

svn-id: r17268
2005-03-27 21:21:05 +00:00
Max Horn
abcf7bf2de Tie the AKOS code into the new costume infrastructure, too
svn-id: r17259
2005-03-27 01:07:22 +00:00
Max Horn
446be21239 Started to overhaul the costume infrastructure a bit, properly separating the NES costume code in the process (sorry if I broke stuff for the NES folks, but I figure it is better to get this done properly now before we have to untangle the mess later)
svn-id: r17257
2005-03-27 00:23:38 +00:00
Max Horn
9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Max Horn
df129b198c Some more cleanup
svn-id: r17227
2005-03-25 01:59:47 +00:00
Max Horn
47ee0ce884 Moved _roomStrips to class Gdi; put some GFX pre-room init code into the new method Gdi::roomChanged(); some more cleanup
svn-id: r17226
2005-03-25 01:52:20 +00:00
Max Horn
c86b18716b Started some cleanup work on class Gdi (in particular, I try to limit that class to GFX decoding only, and moved the screen rendering code out of it)
svn-id: r17225
2005-03-25 01:27:28 +00:00
Max Horn
7ed1c19f6c Cleanup: collect the C64 specific render data into a struct inside class Gdi
svn-id: r17224
2005-03-25 00:56:03 +00:00
Max Horn
980576a4b6 Do not use (non-const) local static variables
svn-id: r17221
2005-03-25 00:37:14 +00:00
Eugene Sandulenko
33952c09cb Correct positioning of inventory and verbs in MM NES.
Started to tackle inventory.

svn-id: r17219
2005-03-24 21:34:35 +00:00
Eugene Sandulenko
2226aa6bc9 Add support for russian spyfox2 and spyfox3
svn-id: r17218
2005-03-24 12:33:53 +00:00
Eugene Sandulenko
9ab0962f6d Lots of MM NES changes from Quietust and me
o Swap palette entries 0x00 and 0x1D in all necessary places. This gets
    rid of gray background
  o added a function NES_loadCostumeSet(int n) in order to do #1 for sprites
  o Widen screen to 256 pixels and center narrow rooms in it
  o Partial fix for subtitle rendering, now at least first line is
    rendered with identation

svn-id: r17212
2005-03-24 03:22:32 +00:00
Travis Howell
a72a1ef827 Patch from Quietust:
-update md5 checksums for NES maniac

svn-id: r17204
2005-03-23 05:59:24 +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
097a3a0aac Cleanup
svn-id: r17192
2005-03-22 00:46:48 +00:00
Eugene Sandulenko
0bcb0ac257 Many MM NES fixes/improvements from Quietust:
o Doesn't crash when going upstairs. Now game is playable up to
    the green tentacle
  o Proper subtitles colors
  o Room mask is decoded but doesn't affect sprites yet
  o Inventory draw issues fixed
  o Fix actors position when they're facing right

svn-id: r17191
2005-03-21 23:51:48 +00:00
Eugene Sandulenko
d1e46a5420 Implement proper scene transition mode for MM NES.
svn-id: r17189
2005-03-21 00:27:39 +00:00
Travis Howell
91bfb91d77 These VARS are only used in Loom [CD] and scumm5 onwards.
svn-id: r17185
2005-03-19 02:40:42 +00:00
Eugene Sandulenko
b4ed62e1ad Some Russian Sam'n'Max releases have files renamed to RAMNMAX. So support
those. Also made file name substitution a general thing so we can
eventually get rid of monkey1 target et al.

svn-id: r17179
2005-03-18 15:10:16 +00:00
Travis Howell
47e9cc1b3a Add string height override for loom
svn-id: r17178
2005-03-18 15:04:37 +00:00
Eugene Sandulenko
f86768fee8 Preliminary support for NES charsets. Colors are wrong and we get glitches
caused by too narrow screen. Also text clearing doesn't work.

svn-id: r17164
2005-03-16 03:20:32 +00:00
Eugene Sandulenko
968e900a0f oops
svn-id: r17158
2005-03-15 18:46:35 +00:00
Eugene Sandulenko
088eb28c17 Add md5's of all known MM NES versions.
svn-id: r17157
2005-03-15 18:10:06 +00:00
Eugene Sandulenko
4824af64bb Minor NES-related fixes
o Actors do not leave trails, though background isn't restored since
    that code always uses two buffers and nes isn't. I have to switch it to
    use two
  o Add Swedish version of MM NES
  o Code formatting fixes

svn-id: r17156
2005-03-15 17:56:50 +00:00
Travis Howell
065710ee80 Doesn't apply to NES maniac.
svn-id: r17148
2005-03-15 05:28:20 +00:00
Travis Howell
e00d808433 Patch from Quietust:
Fix room scrolling in NES maniac.

svn-id: r17147
2005-03-15 04:24:49 +00:00
Eugene Sandulenko
4e39d96e9d Update MM NES md5 due to changed index file.
svn-id: r17144
2005-03-15 02:49:43 +00:00
Travis Howell
7bb8de561b Off by one.
svn-id: r17138
2005-03-15 01:19:36 +00:00
Eugene Sandulenko
ef57db4105 First attempt to draw NES sprites. There are these problems:
o Position is not correct
  o Colors are wrong
  o No animation
  o They're not wiped out correctly, maybe because of first problem

svn-id: r17137
2005-03-14 21:13:35 +00:00
Eugene Sandulenko
654528422d Preliminary support for MM NES.
svn-id: r17133
2005-03-13 23:18:59 +00:00
Travis Howell
4a18a5de44 Off by one.
svn-id: r17097
2005-03-12 14:32:09 +00:00
Travis Howell
8b484a2acf Missing pop
svn-id: r17086
2005-03-12 04:05:26 +00:00
Travis Howell
c39a92933d Add key to toggle speech/subtitles
svn-id: r17082
2005-03-12 00:47:17 +00:00
Chris Apers
8e77e899d0 PalmOS : move MD5 table to a database too save memory and data segment space
svn-id: r17075
2005-03-11 10:46:28 +00:00
Travis Howell
d6b8386241 Add English HE100 versions of freddi2/maze
svn-id: r17069
2005-03-11 03:16:52 +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
Eugene Sandulenko
3cf691e9f9 Add --force-1x-overlay command line option as discussed in bugreport
#1160454 "ALL: Failed assertion when using 1x scaler"

svn-id: r17067
2005-03-10 16:29:08 +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
Eugene Sandulenko
7bb53f3bf1 Patch #1013937 "OSystem layer with bigger resolution". Now you will always
get at least 640x400 window. And finally we have means of implementing
nice looking GUI.

Also updated all backends. If your backend has ability to run with 640x400 or
640x480 resolution then read patch tracker item to find out details. Other
port maintainers shouldn't worry, as this patch doesn't affect them, they
still get their 320x200.

svn-id: r17055
2005-03-09 23:07:32 +00:00
Max Horn
0ec193b4be changing AudioDataType -> SoundType, so now the constant names match the name of the data type / the SoundMixer method names
svn-id: r17052
2005-03-09 18:12:54 +00:00
Travis Howell
ebcf64df56 _imagesNum should be clear in startScene()
svn-id: r17044
2005-03-09 05:04:14 +00:00
Travis Howell
cb492e9b08 Restriction no longer required.
svn-id: r17022
2005-03-07 01:04:07 +00:00
Travis Howell
7627f75d9b Missed a bit
svn-id: r17021
2005-03-07 00:57:38 +00:00
Travis Howell
bf9bdd6c2e Allow EGA option in Amiga/Atari ST games.
Restore correct palette after reloading saved game.

svn-id: r17020
2005-03-07 00:53:30 +00:00
Travis Howell
07aa92063a Add Amiga renderer mode for EGA games.
svn-id: r17019
2005-03-07 00:39:48 +00:00
Travis Howell
bad34c12cd Add two more VARs for HE89+
Minor cleanup

svn-id: r16977
2005-03-02 23:14:06 +00:00