aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
2016-08-22SCI32: Fix fallback detector for SCI32 games againFilippos Karapetis
A regression from c4250c05d0
2016-08-19SCI: Avoid attempts to use exe/txt/dll files as patchesColin Snover
Fixes some false warnings when games try to read in non-patch files with names that start with A/B/S/T.
2016-08-19SCI32: Enable multi-disc audio resourcesColin Snover
Phant1, PQ:SWAT, GK2, and Phant2 all have different audio maps and audio volumes on each CD. In order to make this work within ScummVM, where CDs are never swapped, each RESOURCE.AUD for these games must be renamed to RESAUD.00x and each RESOURCE.SFX renamed to RESSFX.00x.
2016-08-19SCI32: Partially implement kCDColin Snover
2016-07-24SCI: Fix memory leaks in ResourceManagerColin Snover
2016-06-21SCI: Add an explanation about LRU removals when fetching resourcesColin Snover
Several times I have run into this code and had to take a minute to remind myself that the call to remove from the LRU on find is not wrong, so it seemed to deserve a comment.
2016-06-20SCI32: Rewrite digital audio engineColin Snover
This provides a complete implementation of kDoAudio through SCI2.1mid, plus partial implementation of SCI3 features. Digital audio calls shunted through kDoSound have also been updated to go through the SCI32 audio mixer, though these shunts are a bit hacky because the ScummVM implementation of kDoSound does not currently match how SSCI kDoSound is designed. It is probably possible in the future to just replace the SCI1.1 audio code (audio.cpp) with the new SCI32 code, since the major differences seem to be that (1) SCI1.1 only supported one digital audio playback channel (this is configurable already), (2) it had extra commands for CD audio playback and queued sample playback.
2016-06-14SCI: Fix memory leaks in resource patcherColin Snover
2016-03-01SCI: Cleanup: Use Common::StringArray instead of custom type.Johannes Schickel
2016-03-01SCI: Fix Macintosh game sources listing.Johannes Schickel
2016-03-01SCI: Use MacResManager when checking for Mac resource forks.Johannes Schickel
2016-03-01SCI: Use uint32 instead of unsigned intFilippos Karapetis
2016-02-20SCI: Fix a regression in the fallback detector. Some cleanupFilippos Karapetis
Removed the superfluous initForDetection() function, which was not updated in commit 2f17ba2b0ab77ef939c21efa04f7aaafccbd0c37 and caused the fallback detector to crash because of uninitialized variables
2016-02-18SCI: Increase LRU resource cache for SCI32 gamesColin Snover
A single picture in SCI32 is often larger than the 256KiB limit, meaning that the cache is useless for these games -- which is bad, because the renderer works directly off raw resource data so it must be decompressed and in-cache for rendering performance to be acceptable.
2016-02-18SCI: Fix broken LRU debuggingColin Snover
2016-02-12SCI: Fix fallback detector crashing on BE regress.Martin Kiewitz
Regression from af3fec8c26d92005b507dca65d1d50f820feb0e7 Code resulted in a crash on BE platforms
2015-12-29SCI32: version detection - don't remove constMartin Kiewitz
don't remove const during cast
2015-12-29SCI32: split up SCI2.1 into EARLY/MIDDLE/LATEMartin Kiewitz
- Detection works via signatures (couldn't find a better way) - new kString subcalls were introduced SCI2.1 LATE - kString now has signatures and is split via subcall table - kString fix, so that KQ7 doesn't crash, when starting a chapter - Sci2StringFunctionType removed, because no longer needed
2014-10-28SCI: properly reversed color matching thanks wjpMartin Kiewitz
2014-10-18SCI: Separate the rest of the detection-only functionsFilippos Karapetis
This should fix bug #6717 - "SCI fallback detection assert failure"
2014-10-18SCI: Rename the version of addAppropriateSources() used in detectionFilippos Karapetis
2014-02-18SCI: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-30SCI: Remove LSL1 Spanish hack (to SCI1 MIDDLE)Martin Kiewitz
fixes transitions not working properly (and possibly other stuff), hack was added because of bug #5219, strangely none of it occurs anymore
2013-12-10SCI: Add handling for the RAVE resource type, found in KQ6CDFilippos Karapetis
This contains the sync data in the Windows version of KQ6CD. Note that currently the sync36 resource is 2 bytes bigger (it contains 2 bytes from the RAVE resource). Some test code has also been added to dump the RAVE sync resources
2013-04-20SCI: Fix resource type range checksWillem Jan Palenstijn
2013-04-17SCI: Remove useless deleteWillem Jan Palenstijn
2012-06-18SCI: Add setter/getter methods to reg_t'sFilippos Karapetis
No functionality change has been made with this commit. This avoids setting and getting the reg_t members directly, and is the basis of any future work on large SCI3 scripts (larger than 64KB)
2012-05-15SCI: Resolve some resource related FIXMEsFilippos Karapetis
These were introduced in 4f6d42d. The odd comment dates back to FreeSCI, as far as our history goes, and seems to be a leftover from an old refactoring during FreeSCI's history
2012-05-13SCI: Add a few FIXMEsWillem Jan Palenstijn
2012-03-08SCI: Fix SCI1.1+ Mac games with resource fork container namesMatthew Hoops
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.
2012-01-15SCI: Clean up some memory management and loopsWillem Jan Palenstijn
2012-01-15SCI: Plug a leak in ResourceManager::detectSciVersion()Filippos Karapetis
Many thanks to digitall for finding this one
2011-10-29SCI: Fixed speech in PQ4 CDFilippos Karapetis
2011-10-19SCI: Move the palette merging checking code inside the GfxPalette classFilippos Karapetis
2011-10-15SCI: Added a heuristic to distinguish Mac SCI1.1 from SCI2.1 versionsFilippos Karapetis
This removes the hack that checks for the existence of resource.cfg
2011-09-10SCI: Fixed bug #3404466 - "ScummVM crashes when trying to add non-SCI ↵Filippos Karapetis
resources file"
2011-09-08SCI: Made some static data const.Johannes Schickel
2011-08-26SCI: Fixed bug #3366295 - "SCI: User-translated files are ignored"Filippos Karapetis
Thanks to tinekefrineke and tdhs for pinpointing the actual problem in the resource manager
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-27SCI: Removed unused variablesmd5
Thanks to LordHoto and the trusty -Wunused-but-set-variable option :)
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-03-13SCI: Fixed version and scene transitions for SCI1 Mac gamesmd5
2011-03-07SCI: Initial handling of the views in Longbow Amiga. Still not rightmd5
2011-03-05SCI: Added some support code for Longbow Amigamd5
2011-03-04SCI: Added support for 16/32 color view and picture patchesmd5
16 color patches (*.p16 and *.v16) are used in 16 color EGA SCI1 games 32 color patches (*.p32 and *.v32) are used in 32 color Amiga SCI1 games Removed a workaround for SCI1 EGA (bug #3044500), as that bug has been fixed already in the view patch. Thanks to waltervn for observing this.