aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
2011-02-10SCI: Added resource manager support for changing the audio directory ↵Filippos Karapetis
dynamically. Also, moved some audio-specific resource code inside resource_audio.cpp This functionality is used by kSetLanguage(), called when switching the language in MUMG Deluxe from the game's main menu. svn-id: r55872
2011-02-10SCI: Renamed addInternalSources -> addAudioSources and separated the script ↵Filippos Karapetis
chunk loading code svn-id: r55866
2011-02-10SCI: Moved some audio resource code to resource_audio.cppFilippos Karapetis
svn-id: r55865
2011-02-09SCI: Improve speed of Mac resource fork sourcesMatthew Hoops
svn-id: r55859
2011-02-05SCI: Fix Mac SCI32 subdirectoriesMatthew Hoops
svn-id: r55783
2011-02-05SCI: Fix detectHires() for Mac SCI32 gamesMatthew Hoops
svn-id: r55781
2011-02-03SCI: Fix KQ6 Mac audio resourcesMatthew Hoops
A regression from r55715 svn-id: r55751
2011-02-02SCI: Set Mac cursors as a non-compressable type tooMatthew Hoops
svn-id: r55720
2011-02-02SCI: Fix Mac sync resource supportMatthew Hoops
svn-id: r55716
2011-02-02SCI: Add support for Mac audio36/sync36 resources in resource forksMatthew Hoops
svn-id: r55715
2011-02-01SCI: Mac SCI1.1+ games can use SYNC as the resource type for sync resources tooMatthew Hoops
svn-id: r55708
2011-01-31SCI: Update the Mac version detection commentsMatthew Hoops
svn-id: r55697
2011-01-31SCI: Add support for Mac SCI1.1+ resource compressionMatthew Hoops
Mac SCI1.1+ games should now start up. QFG1 and Hoyle4 are playable. GK1 starts its scripts, but errors out soon after. There are still some View bugs with each (somehow, view decompression seems to be adding a blank line after each line?). *Much* thanks to Walter for his help. svn-id: r55696
2010-12-14SCI: Close Memory Leaks in SCI Resource Loading, reported by Valgrind.David Turner
svn-id: r54916
2010-12-02SCI: Slight formatting fix.Johannes Schickel
svn-id: r54737
2010-12-02Disable error message regarding RESOURCE.AUD/.SFX for now.Lars Skovlund
svn-id: r54735
2010-11-17SCI3: added a SCI3 implementation of findGameObject(), based on a patch by ↵Filippos Karapetis
lskovlun svn-id: r54284
2010-11-17SCI: Some restructuring. Added some SCI3 placeholders/stubsFilippos Karapetis
svn-id: r54280
2010-11-17SCI: The heap was a separate resource in SCI1.1 - SCI2.1 games only. It was ↵Filippos Karapetis
later merged into the script files again in SCI3 svn-id: r54279
2010-11-13SCI: Update resource types for SCI2.1/3Matthew Hoops
svn-id: r54220
2010-11-11SCI: Properly adding SCI3 script patches (a regression of r54211)Filippos Karapetis
svn-id: r54213
2010-11-11SCI: Use the new CSC extension for SCI3 scriptsFilippos Karapetis
svn-id: r54211
2010-11-10SCI3: Some changesFilippos Karapetis
- Placed the SCI3 version detection in the proper place - Some new types of SCI3 MT-32 patches (e.g. in the Lighthouse SCI3 demo) are ignored, for now svn-id: r54188
2010-11-10SCI: Fix SCI2.1+ fallback detectionMatthew Hoops
Each map has to be mapped with its own specific volume (as opposed to earlier versions that had one map for all volumes); this code was passing the same map pointer for all volumes. svn-id: r54179
2010-11-09SCI: Some slight work on SCI3Filippos Karapetis
- Enabled the SCI3 game entries for testing purposes - The resource manager is initialized fully now (with a slight hack) - Added a hack for the demo of Shivers 2 (which seemingly has no scripts or vocabularies) - The engine will stop before parsing any game scripts in SCI3 games, and opens the console for resource manager-related functionality svn-id: r54167
2010-11-09SCI: Fixed the fallback detector againFilippos Karapetis
This is a regression from r54155, as we previously ignored the result of addInternalSources() in the fallback detector svn-id: r54163
2010-11-09SCI: Fix Lighthouse SCI2.1 demoMatthew Hoops
This is a regression from r54155. Fixed by moving the chunk resource loading earlier. svn-id: r54162
2010-11-09SCI: Formatting convention fixesMatthew Hoops
svn-id: r54161
2010-11-09SCI: Add resource manager support for SCI3 games.Lars Skovlund
ScummVM now rejects them properly instead of spewing lots of unintelligible stuff. svn-id: r54155
2010-11-04SCI: Renamed findBlock() to findBlockSCI0()Filippos Karapetis
svn-id: r54077
2010-11-02SCI: Remove any use of printfMax Horn
svn-id: r54037
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-31MOTOEZX: Fix warning about static not at beginning of declarationMax Horn
svn-id: r53981
2010-09-28ALL: Fixup some #define namesMax Horn
svn-id: r52935
2010-09-18SCI: Some changes to the fallback detector (sync with branch 1.2.0)Filippos Karapetis
Added more graceful handling of the case where SCI32 isn't built in and the user tries to detect or start a SCI32 game svn-id: r52789
2010-09-10SCI: Some changes regarding resourcesFilippos Karapetis
- Renamed the debug command "resource_size" to "resource_info", as it now provides the location of where a specified resource is found (i.e. the resource.xxx file, or the file name itself, if the resource is a patch) - "duskdump" shows the original location of dumped resources - loadResource() now shows the location of files that couldn't be loaded svn-id: r52667
2010-09-04SCI: fixing commentMartin Kiewitz
svn-id: r52517
2010-09-04SCI: doing detectDoSoundType() properly sci0earlyMartin Kiewitz
checking, if sound resources are sci0early or late for sci0early games instead of hardcoding lsl2 svn-id: r52514
2010-08-21SCI: removing debug output from r52259Martin Kiewitz
svn-id: r52263
2010-08-21SCI: fixing resourcemgr for pharkas/germanMartin Kiewitz
pharkas/german has duplicate resource entries inside the main resource files and we used the first ones. This results in half of the game being english and umlauts missing. We now use the last entries, which will fix all those issues (fixes bug #3039551) svn-id: r52259
2010-08-17SCI: Fix for bug #3046800 - "SCI Fallback detector crashes with several games"Filippos Karapetis
svn-id: r52163
2010-08-14SCI: Add support for Mac 'crsr' cursors used in SCI2+ gamesMatthew Hoops
svn-id: r52076
2010-08-13SCI: adding switch to sci1mid for lsl1/spanishMartin Kiewitz
makes it work, bug #3043270, added FIXME svn-id: r52071
2010-08-07SCI: Changed a warning into a debugCFilippos Karapetis
svn-id: r51820
2010-08-03SCI: Hopefully fix signedness warning with some compilersMatthew Hoops
svn-id: r51699
2010-08-03SCI: Add support for SCI2.1 chunk resourcesMatthew Hoops
And if no scripts are present, but chunk 0 is present, load resources from there. This fixes the Lighthouse SCI2.1 demo. svn-id: r51696
2010-08-02SCI: Fix leaks in ResourceManager::listResources caller code.Johannes Schickel
svn-id: r51666
2010-08-02SCI: Cleanup SCI0 late version detectionMatthew Hoops
After discussing with Walter, we should be able to detect SCI0 late on the presence of a SCI0 vocab.999 without checking if we're using the old decompressors. svn-id: r51644
2010-08-02SCI: Fix bug #3037055: Jones in the Fast Lane EGA - fails to startMatthew Hoops
A regression of r51423. Jones EGA has a non-parser related vocab.900 resource, so we can't detect the fan games based on not having an SCI1 vocab.900 resource. Fan games are now detected on whether or not vocab.0 exists (the parser vocab for SCI0). svn-id: r51619
2010-07-28SCI: Fix bug #3035737 - SCI Fan Games: Incorrect Version DetectionMatthew Hoops
If we have a vocab 900 resource with the new decompressors, it can also be SCI0 late. If there is no parser vocab (with new decompressors), it is SCI1 early. svn-id: r51423