Max Horn
a9b0a055c8
Moved get_resource_id_quoted around a bit and added another FIXME comment
...
svn-id: r24328
2006-10-15 02:00:37 +00:00
Max Horn
51017cf1b2
Renamed ScummEngine::res to _res and allocate the ResourceManager on the heap (i.e. _res is a pointer now)
...
svn-id: r23922
2006-09-17 20:36:48 +00:00
Max Horn
e4ab8000f0
Pass values by-reference, using C++ references, and not by using pointers
...
svn-id: r22548
2006-05-20 15:09:15 +00:00
Torbjörn Andersson
05814a1458
Apparently, passing a file handle directly to a function causes that file
...
handle (a copy of the original?) to be destroyed at the end of the function,
and that closes the internal file handle, even though we want it to stay open.
Who am I to argue with how C++ handles its parameters? I've simply changed the
functions to take pointers to file handles instead. Seems to fix crashes in the
Macintosh resource extractor for me.
svn-id: r22546
2006-05-20 13:59:31 +00:00
Torbjörn Andersson
6cdd98b617
After the GUI has finished, restore the old cursor palette (if any). For this
...
to work, cursor palette now has to be set using the new "palette manager". See
graphics/paletteman.cpp
svn-id: r22543
2006-05-20 10:59:25 +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
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
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
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
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
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
bac32d1a5c
Moved ScummFile etc. to the new file.cpp / file.h
...
svn-id: r21038
2006-03-03 15:16:02 +00:00
Max Horn
2ae0f79de3
Split SCUMM's generateSubstResFileName into two functions: findSubstResFileName and applySubstResFileName
...
svn-id: r20879
2006-02-25 17:36:32 +00:00
Max Horn
6914121f61
Replaced MKID by MID_BE in most places in the SCUMM engine
...
svn-id: r20862
2006-02-25 02:12:58 +00:00
Max Horn
e389bcf497
Replaced _gameId, _version, _heversion, _features, _midi, _platform with a simple ScummGameSettings instance: _game
...
svn-id: r20795
2006-02-20 16:51:30 +00:00
Travis Howell
903daa7252
Send sound resource data directly to sound mixer in HE Games.\n Fixes songs in kitchen of Pajama Sam 1
...
svn-id: r20721
2006-02-16 08:25:12 +00:00
Travis Howell
bcef7a167c
Read correct index by block size in HE games again, to help track down unknown versions.
...
svn-id: r20708
2006-02-15 23:02:37 +00:00
Eugene Sandulenko
eba1653904
o Renamed script_v6he.cpp and script_v7he.cpp to script_v60he.cpp and
...
script_v70he.cpp respectively since we use 2 digits for HE versioning.
o Also renamed resource_v7he.* to resource_he.* because it is actually not
HE70-specific but is used by all HE70+ titles.
svn-id: r20703
2006-02-15 18:48:49 +00:00