Filippos Karapetis
999d46b241
Started using game-specific flags and removed/replaced some SCI version checks with flags.
...
- The SCI0 new script header and the angles check have been replaced by the GF_SCI0_OLD flag
- The SCI0 new drawpic parameter and the new priority check have been replaced by the GF_SCI0_OLDGFXFUNCS flag
- Removed the code which retries to use the newer script header in SCI0 games if the detected one is wrong, as that case should be covered by the GF_SCI0_OLD flag
- Removed the leftover min_version and max_version variables from gamestate
- Cleaned up kGetTime() a bit
svn-id: r40552
2009-05-14 09:12:27 +00:00
Filippos Karapetis
e940bcff23
- Simplified SCI version detection a bit and clarified the different version feature flags (not used yet)
...
- Removed the version verification functions (they were only used for two specific cases, but the SCI executable reader is able to detect the exact SCI game version anyway, so there is no point in having these)
- Removed the empty GameFlags structure and replaced it with a 32-bit integer instead
svn-id: r40524
2009-05-13 16:52:41 +00:00
Walter van Niftrik
dfd0245273
SCI: DoSync should work now, but the lip-syncing mechanism also needs DoAudio
...
(currently stubbed), so it hasn't been tested yet.
so it hasn't been tested yet.
svn-id: r40147
2009-04-25 23:31:03 +00:00
Filippos Karapetis
f1893d8f25
WIP (still non-working) code for speech sync in CD talkie games (like e.g. KQ5 CD and SQ4 CD), taken from Greg's SCI implementation.
...
svn-id: r40142
2009-04-25 08:50:42 +00:00
Filippos Karapetis
c4e054848e
Changed some references from "FreeSCI" to "SCI" or "ScummVM"
...
svn-id: r39807
2009-04-03 08:10:58 +00:00
Filippos Karapetis
e130aecc4f
Wrapped all the still WIP SCI32-specific code around appropriate ifdef blocks. SCI32 has fundamental differences from previous SCI versions (e.g. direct point addressing is no longer possible), most of SCI32 games use SVGA resolutions and currently a lot of SCI32 specific code is missing (like, for example, the newer string and array handling functions, the widget system etc). This has been done in the same manner as in the SCUMM and SAGA engines.
...
svn-id: r39750
2009-03-30 07:53:32 +00:00
Max Horn
c21110f36e
SCI: Match signature of readResourceMapSCI0 and readResourceMapSCI1 (helpful if we ever want to turn this into overloaded methods of ResourceManager subclasses, one subclass for each SCI version)
...
svn-id: r39701
2009-03-26 13:11:30 +00:00
Greg Frieger
35d0744f31
ResourceManager:
...
- RESOURCE.MSG and MESSAGE.MAP added to source List
- Small changes in patch processing code to avoid loading wrong files
svn-id: r39345
2009-03-11 22:52:54 +00:00
Greg Frieger
eca41c0d11
ResourceManager:
...
- Keep a list of opened volumes to avoid redundant file opens
- Internal functions moved from public to protected
svn-id: r39334
2009-03-11 20:15:42 +00:00
Max Horn
47cf6a0151
SCI: Formatting changes (using astyle)
...
svn-id: r39325
2009-03-11 01:40:08 +00:00
Greg Frieger
0a38541cc5
Resource decompression functions moved to scicore\decompressor.cpp and turned into classes.
...
svn-id: r39311
2009-03-10 21:44:03 +00:00
Greg Frieger
f1dd168aae
Merged scicore/resource_map.cpp and scicore/resource_patch.cpp to scicore/resource.cpp because these remaining functions are members of ResourceManager
...
svn-id: r39172
2009-03-07 04:49:34 +00:00
Greg Frieger
7fe1dbdf16
Cleaned / reworked readResourceMapSCI0 and readResourceMapSCI1
...
Removed unused functions and #defines
svn-id: r39171
2009-03-07 04:42:59 +00:00
Greg Frieger
f028f53d3e
Map/volume loader and version detection functions cleaned and reworked.
...
Autodetection still misdetects some SCI1/SCI1.1 games though.
svn-id: r39169
2009-03-07 00:59:38 +00:00
Greg Frieger
865b213439
- Change Resource::LRU to use Common::List
...
- Real patch filename stored and used instead of calling patch_sprintf_funct()
- some fprintf()s replaced with debug() and warning()
svn-id: r39140
2009-03-05 23:27:02 +00:00
Greg Frieger
b7ad1cf1f2
Removed Resource.location_dir_name
...
svn-id: r39139
2009-03-05 22:28:00 +00:00
Greg Frieger
5e133bbf93
readResourcePatchesSCI0 and readResourcePatchesSCI1 merged. Some clean-ups
...
svn-id: r39138
2009-03-05 22:19:29 +00:00
Max Horn
2943234d6f
SCI: Fix warnings
...
svn-id: r39103
2009-03-04 04:35:06 +00:00
Greg Frieger
bc3702dcdb
- ResourceManager uses HashMap to store and access resource info.
...
- Changes and clean-ups in resource loading code.
svn-id: r39098
2009-03-03 23:07:06 +00:00
Filippos Karapetis
f31990f897
Gave decompression methods more descriptive names. Some cleanup
...
svn-id: r39082
2009-03-02 22:16:44 +00:00
Jordi Vilalta Prat
7050c7b03f
SCI: Use the ResourceType enum instead of integers where it makes sense
...
svn-id: r38988
2009-02-28 23:46:50 +00:00
Max Horn
d7b06b7d42
SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var shadowing warnings; some other tweaks
...
svn-id: r38984
2009-02-28 22:19:22 +00:00
Greg Frieger
61ab59138a
resource_t struct replaced with stub Resource class for future objectifying. Also the crash when exiting SCI1 games was fixed
...
svn-id: r38982
2009-02-28 21:59:49 +00:00
Greg Frieger
4dd1b7dad5
Turned ResourceManager into a class, along with all related functions
...
svn-id: r38978
2009-02-28 20:45:36 +00:00
Eugene Sandulenko
d53c75fc8f
Fix code formatting
...
svn-id: r38930
2009-02-27 12:59:02 +00:00
Max Horn
170916201c
SCI: Moved almost all files from include/ to other dirs; only include/engine.h remains
...
svn-id: r38920
2009-02-27 02:23:00 +00:00