Commit Graph
25 Commits
Author SHA1 Message Date
Greg Frieger 782c394dd7 - LZS Decompressor added
- Some code clean-up

svn-id: r39385
2009-03-14 08:43:28 +00:00
Greg Frieger d00a9e9a7d Fixed SCI32 Map detection
svn-id: r39384
2009-03-14 08:41:11 +00:00
Greg Frieger b5cc1eec7e Some rewrites and clean-ups in decompressing functions. View and Pic post-processing functions reverted back to FreeSCI ones.
svn-id: r39383
2009-03-14 04:17:03 +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
Greg Frieger 17664dce40 More clean-ups in decompression classes
svn-id: r39329
2009-03-11 04:38:54 +00:00
Greg Frieger 738160d17a Some clean-up of DecompressorComp3 class
svn-id: r39323
2009-03-11 00:23:18 +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 309fb5f60b Fixed crash when reading some SCI1 resource map
svn-id: r39185
2009-03-07 14:40:58 +00:00
Greg Frieger de20838804 Added detection of SCI1.1 and SCI32 resource volumes
svn-id: r39175
2009-03-07 05:44:36 +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 18efc44768 Use map/volume versions from detection.cpp if set
svn-id: r39170
2009-03-07 01:08:34 +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
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
Greg Frieger cbb6f91967 SCI1: Improved color mapping when drawing line/box/text. Text with transparent background now displays correctly.
svn-id: r39089
2009-03-03 14:27:49 +00:00
Greg Frieger 6742caa87a Text/window color matching improved by using an existing gfxop_set_color() instead of mine _gfxop_matchColor()
svn-id: r39004
2009-03-01 05:15:51 +00:00
Greg Frieger ce42d6e538 Fixed windows and text drawing problem in SCI1
svn-id: r39000
2009-03-01 04:07:04 +00:00
Greg Frieger 8dfef3103c Added default kernel functions table to be used if vocab.999 can't be loaded in SCI1
Added SCI1.1 kernel functions table reader

svn-id: r38992
2009-03-01 01:52:50 +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
Greg Frieger 1befd93475 Added detection for more SCI games and demos
svn-id: r38970
2009-02-28 15:32:01 +00:00