aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/resource.cpp
AgeCommit message (Collapse)Author
2009-04-07SCI: Fix endian-unsafe read [bug #2739122 ]Willem Jan Palenstijn
svn-id: r39891
2009-03-30This should really fix the issues with vobab.999/999.voc in SCI1 games (e.g. ↵Filippos Karapetis
KQ5) svn-id: r39768
2009-03-30Ignore the unreliable resource vocab.999 in SCI1 games. This allows us to ↵Filippos Karapetis
use the hardcoded table in vocabulary_get_knames1() instead (also check commit #39694). KQ5 floppy works now without FreeSCI's custom vocabulary file svn-id: r39766
2009-03-30Wrapped all the still WIP SCI32-specific code around appropriate ifdef ↵Filippos Karapetis
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-26SCI: Match signature of readResourceMapSCI0 and readResourceMapSCI1 (helpful ↵Max Horn
if we ever want to turn this into overloaded methods of ResourceManager subclasses, one subclass for each SCI version) svn-id: r39701
2009-03-14Fixed SCI32 Map detectionGreg Frieger
svn-id: r39384
2009-03-14Some rewrites and clean-ups in decompressing functions. View and Pic ↵Greg Frieger
post-processing functions reverted back to FreeSCI ones. svn-id: r39383
2009-03-11ResourceManager: Greg Frieger
- 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-11ResourceManager: Greg Frieger
- Keep a list of opened volumes to avoid redundant file opens - Internal functions moved from public to protected svn-id: r39334
2009-03-11More clean-ups in decompression classesGreg Frieger
svn-id: r39329
2009-03-11SCI: Formatting changes (using astyle)Max Horn
svn-id: r39325
2009-03-10Resource decompression functions moved to scicore\decompressor.cpp and ↵Greg Frieger
turned into classes. svn-id: r39311
2009-03-07Fixed crash when reading some SCI1 resource mapGreg Frieger
svn-id: r39185
2009-03-07Added detection of SCI1.1 and SCI32 resource volumesGreg Frieger
svn-id: r39175
2009-03-07Merged scicore/resource_map.cpp and scicore/resource_patch.cpp to ↵Greg Frieger
scicore/resource.cpp because these remaining functions are members of ResourceManager svn-id: r39172
2009-03-07Use map/volume versions from detection.cpp if setGreg Frieger
svn-id: r39170
2009-03-07Map/volume loader and version detection functions cleaned and reworked.Greg Frieger
Autodetection still misdetects some SCI1/SCI1.1 games though. svn-id: r39169
2009-03-05- Change Resource::LRU to use Common::ListGreg Frieger
- 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-05readResourcePatchesSCI0 and readResourcePatchesSCI1 merged. Some clean-upsGreg Frieger
svn-id: r39138
2009-03-04SCI: Fix warningsMax Horn
svn-id: r39103
2009-03-03- ResourceManager uses HashMap to store and access resource info.Greg Frieger
- Changes and clean-ups in resource loading code. svn-id: r39098
2009-02-28SCI: Use the ResourceType enum instead of integers where it makes senseJordi Vilalta Prat
svn-id: r38988
2009-02-28SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var ↵Max Horn
shadowing warnings; some other tweaks svn-id: r38984
2009-02-28resource_t struct replaced with stub Resource class for future objectifying. ↵Greg Frieger
Also the crash when exiting SCI1 games was fixed svn-id: r38982
2009-02-28Turned ResourceManager into a class, along with all related functionsGreg Frieger
svn-id: r38978
2009-02-27Fix code formattingEugene Sandulenko
svn-id: r38930
2009-02-27SCI: Moved almost all files from include/ to other dirs; only ↵Max Horn
include/engine.h remains svn-id: r38920
2009-02-24SCI: Moved engines/sci/include/sci_memory.h and ↵Max Horn
engines/sci/scicore/sci_memory.cpp into engines/sci/; moved macros from the header into the source file svn-id: r38832
2009-02-22Whitespace cleanupJordi Vilalta Prat
svn-id: r38783
2009-02-22SCI: cleanupMax Horn
svn-id: r38779
2009-02-21SCI: More cleanupMax Horn
svn-id: r38758
2009-02-21SCI: Untangling #include dependencies a bitMax Horn
svn-id: r38740
2009-02-21SCI: Renamed include/gfx_*.h to gfx/gfx_*.h and likewise for sfx header filesMax Horn
svn-id: r38735
2009-02-21revert large parts of r38621. error() is for fatal errors and does not ↵Willem Jan Palenstijn
return. warning() is not for debugging status messages. svn-id: r38696
2009-02-21formatingPaweł Kołodziejski
svn-id: r38691
2009-02-21Wrapped the SCI engine in the Sci namespace.Oystein Eftevaag
svn-id: r38676
2009-02-20Changed more messages to warnings/errorsFilippos Karapetis
svn-id: r38621
2009-02-20fixed compilationPaweł Kołodziejski
svn-id: r38599
2009-02-20SCI: Started rewriting file handling. Warning: This will likely introduceMax Horn
regressions, but we just have to start somewhere. - factored out some common code in engine/kfile.cpp into a separate func - replaced many uses of chdir, getcwd, sci_init_dir etc. by equivalent or better functionality from SearchMan etc. - replaced many uses of sci_open and sci_fopen by using Common::File and Common::Stream - C++ified some stuff - simplified ResourceSource a bit (loosing some unused functionality) svn-id: r38597
2009-02-20SCI: Renamed some ResourceManager members, cleanupMax Horn
svn-id: r38596
2009-02-20SCI: Removed unused allow_patches param/memberMax Horn
svn-id: r38595
2009-02-20SCI: Renamed resource_source_t -> ResourceSource; some cleanupMax Horn
svn-id: r38593
2009-02-20SCI: Renamed resource_mgr_t -> ResourceManager; added remark to 'the other ↵Max Horn
resource manager' that it should be renamed to GraphicsManager or so svn-id: r38592
2009-02-19Fix SCI 1.1 detection.Travis Howell
svn-id: r38535
2009-02-18SCI: Added G_DIR_SEPARATOR to scicore/resource.cpp for now (I'll remove it ↵Max Horn
again soon) svn-id: r38498
2009-02-18Added FIXME concerning crash when exiting a SCI gameFilippos Karapetis
svn-id: r38472
2009-02-17don't attempt display resource type name if it's out of array, so it give ↵Paweł Kołodziejski
access violation svn-id: r38449
2009-02-17Update headers. scicore/Eugene Sandulenko
svn-id: r38411
2009-02-17Replaced sci_free() with free() - it's OK to free a NULL pointer, so the ↵Filippos Karapetis
checking that sci_free() performed is not necessary svn-id: r38406
2009-02-16SCI: cleanupMax Horn
svn-id: r38335