Max Horn
77c29d0ab2
Some cleanup, and added a FIXME comment concerning the wrong usage of getSavePath()
...
svn-id: r22266
2006-05-01 21:31:06 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00
Max Horn
c4df5037dc
* Renamed several methods in favor of a somewhat more uniform naming scheme: setupFOO for stuff that inits static data (i.e. will be called only once, or after loading savegames), vs. resetFOO / updateFOO methods which are called frequently and (re)set dynamic data.
...
* Doing this, split scummInit into setupScumm and resetScumm methods
* Moved some init code to new methods (huuuuge init methods are hard to read, and hard to customize using subclassing)
* Renmaed various setup???Palette methods to set???Palette
* Some minor cleanup / tweaks
svn-id: r22227
2006-04-29 16:24:39 +00:00
Max Horn
1735b0421b
Make use of the new scummLoop_* functions to move some SCUMM version specific stuff around
...
svn-id: r22219
2006-04-29 13:01:35 +00:00
Max Horn
092fd96145
Replaced _hFileTable by _hInFileTable/_hOutFileTable
...
svn-id: r22182
2006-04-26 14:05:09 +00:00
Travis Howell
5ceb4b19b0
isSoundRunning always returns sound id in HE games
...
svn-id: r22176
2006-04-26 10:34:34 +00:00
Max Horn
c940380314
Replace unneeded File::exists calls
...
svn-id: r22173
2006-04-26 08:35:54 +00:00
Max Horn
e80d24aa22
Some more cleanup in class Scumm::Sound
...
svn-id: r22125
2006-04-23 23:00:32 +00:00
Max Horn
3f41e2dc21
Detect (and error out) if readMAXS fails
...
svn-id: r22120
2006-04-23 22:39:55 +00:00
Max Horn
e0a5a2b89e
Fix access to .he3/.he4 files
...
svn-id: r22118
2006-04-23 21:56:09 +00:00
Max Horn
b2befd7951
Moved _heTimers to ScummEngine_v60he
...
svn-id: r22116
2006-04-23 19:41:54 +00:00
Max Horn
d68f95b3be
Move HE specific stuff from class Sound to its new subclass SoundHE
...
svn-id: r22115
2006-04-23 18:52:39 +00:00
Max Horn
0d67640a58
Behold, the new SCUMM detector finally has arrived. Unified detection & engine instantiation, reduced code duplication, more powerful detection in case MD5 is not known / can't be computed, and many other nifty improvements.
...
svn-id: r22110
2006-04-23 17:33:16 +00:00
Eugene Sandulenko
ff6028b00b
- Implemented MS ADPCM WAV format decoder used in Feeble Files. Still it is
...
out of sync with video. See TODO there.
- Fixed bug with MS IMA ADPCM mono to make it possible to work in real streams.
svn-id: r22080
2006-04-22 03:00:21 +00:00
Max Horn
ac24769196
Replaced o70_seekFilePos by o60_seekFilePos (both were identical)
...
svn-id: r21979
2006-04-17 14:32:46 +00:00
Max Horn
74edd90aba
Fix for bug #1471383 : Instead of overloading ConfigManager::set, we now have new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch)
...
svn-id: r21951
2006-04-16 19:23:14 +00:00
Max Horn
68cb7f52c8
- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a new getActiveDomain method that returns a pointer to the actual active *domain*
...
- Added Engine::_targetName whose value is computed from the name of the active domain
- Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain
- This in turn allowed for removing usage of GameDetector in many places
svn-id: r21916
2006-04-15 20:36:41 +00:00
Max Horn
cf202049ff
Fixing mismatch between format strings and data on some systems
...
svn-id: r21827
2006-04-12 14:54:12 +00:00
Jonathan Gray
eb3ae7d726
sizeof(void *) != sizeof(int) for a large number of systems.
...
Fix a lot of debug/error statements that were using %d/%x
for the result of pointer arithmetic.
As C++ apparently has no format string for ptrdiff_t use
%lu/%lx as appropriate.
svn-id: r21824
2006-04-12 10:01:41 +00:00
Eugene Sandulenko
a74fcf7cee
Fix regression introduced by removing of GF_HE_CURSORLESS feature flag.
...
There are 3 cases of HE cursors:
o Default one. We set up cursor palette for it.
o Loaded from .HE3 (windows resource file). We use default cursor palette.
o Loaded from WizImage. We disable default cursor palette.
svn-id: r21711
2006-04-09 03:16:05 +00:00
Max Horn
9c77c2ecd1
Renamed various *GameSettings to GameSettings (our namespaces are enough to distinguish them)
...
svn-id: r21684
2006-04-08 08:23:33 +00:00
Travis Howell
0e9b4ab17c
GF_HE_CURSORLESS feature flag not required, since HE games always set a default cursor too.
...
svn-id: r21576
2006-04-03 11:35:02 +00:00
Travis Howell
d10929b394
Always check array bounds are valid in HE games, matching original
...
svn-id: r21524
2006-04-01 12:26:50 +00:00
Travis Howell
7a81cc76e1
Fix painting and fridge magnet palette glitches in thinker1
...
svn-id: r21522
2006-04-01 06:38:47 +00:00
Travis Howell
c4349e88f7
Rename two WizParameters fields
...
svn-id: r21514
2006-03-31 13:06:23 +00:00
Travis Howell
014dde3de3
Add missing check for invalid object number in getObjectData opcode
...
svn-id: r21501
2006-03-30 00:32:29 +00:00
Travis Howell
26c0d2b4fa
Always use the correct string slot for HE games specific cases in decodeParseString()
...
svn-id: r21462
2006-03-26 09:21:07 +00:00
Travis Howell
ef6baca2ac
Move convertFilePath() to ScummEngine_v60he, to allow use by earlier HE games
...
svn-id: r21450
2006-03-25 11:01:00 +00:00
Travis Howell
03202876cf
Minor cleanup
...
svn-id: r21446
2006-03-25 04:33:33 +00:00
Eugene Sandulenko
22042bc637
- Implemented case insensitive file reading. Left old system as a fallback
...
in case some engine writer decide to do something unwise
- Removed used of ConfMan.getKey("path") in file-related cases, because
now File class handles that
- Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters
weren't translated
svn-id: r21443
2006-03-25 04:17:17 +00:00
Travis Howell
8ae4dd6caa
Revert FLAG_AUTOFREE changes to loadWAVFromStreammakeWAVStream
...
svn-id: r21375
2006-03-19 05:15:06 +00:00
Travis Howell
a441dafae5
Move the sound loop detection, so it is used by all HE70+ games
...
svn-id: r21374
2006-03-19 04:55:34 +00:00
Travis Howell
1b20b06822
Skip HSHD block by set size, since there are sound resources (ie Caiman in jungle) which have incorrect size in HSHD header
...
svn-id: r21373
2006-03-19 04:41:43 +00:00
Travis Howell
c6082389a2
Confirmed it is safe to remove workaround for Macintosh HE99 version of water.
...
svn-id: r21253
2006-03-13 10:00:10 +00:00
Travis Howell
230a68755e
Unfortunately the workaround for Macintosh version of water is still required.
...
svn-id: r21231
2006-03-12 10:56:14 +00:00
Travis Howell
66730f3b6b
Use script support for Macintosh versions of HE80+ games
...
svn-id: r21227
2006-03-12 09:27:56 +00:00
Travis Howell
8602fe7432
Revert mistaken commit of local debug code
...
svn-id: r21222
2006-03-12 04:19:03 +00:00
Travis Howell
3e72b26adc
Revert mistaken commit of local debug code
...
svn-id: r21220
2006-03-12 01:06:23 +00:00
Travis Howell
f9797f3ac3
Correct mistake in md5 tables for Simon the Sorcerer 2 (DOS Floppy)
...
svn-id: r21219
2006-03-12 00:53:30 +00:00
Travis Howell
beb0c9e297
Fix endian issue in getArrayDim()
...
svn-id: r21216
2006-03-11 09:43:00 +00:00
Travis Howell
f52e1709bf
o6_setObjectName is never used by HE72+ games
...
svn-id: r21211
2006-03-10 23:09:27 +00:00
Max Horn
d9a9fac937
Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
...
svn-id: r21141
2006-03-08 11:37:25 +00:00
Travis Howell
431c820e4f
Correct order of cases in o72_redimArray()
...
svn-id: r21135
2006-03-07 22:27:14 +00:00
Max Horn
bb38ea2c17
Renamed SubstResFileNames::winName and macName to almostGameID / expandedName (the old names were misleading; the new ones aren't great either :)
...
svn-id: r21062
2006-03-04 10:38:05 +00:00
Max Horn
140f6fce26
Hiding the implementation of ADPCMInputStream from the public, in favor of a factory function (just like with the other AudioStream subclasses)
...
svn-id: r21043
2006-03-03 15:51:33 +00:00
Max Horn
bac32d1a5c
Moved ScummFile etc. to the new file.cpp / file.h
...
svn-id: r21038
2006-03-03 15:16:02 +00:00
Travis Howell
0b30043f93
Read array bounds in checkArrayLimits() correctly on all systems
...
svn-id: r21024
2006-03-03 07:40:34 +00:00
Travis Howell
ab0cf121c9
Always use music sound type, for music in 3DO versions of HE games
...
svn-id: r21019
2006-03-03 00:45:27 +00:00
Travis Howell
7423394bdd
Use sound types for sound in HE Games
...
svn-id: r21018
2006-03-02 23:31:28 +00:00
Lars Persson
f00809788b
Changed cast from int to int32, to use platform specified typedefs for the type.
...
svn-id: r21010
2006-03-02 12:09:19 +00:00