aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
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
2010-07-25Fixed LSL6 hires resources, speech and lip sync work now (thanks to a ↵Filippos Karapetis
discussion we had with clone2727) svn-id: r51287
2010-07-20SCI: Fixed an off-by-one error in the resource manager - it tried to load ↵Filippos Karapetis
patches of type kResourceTypeInvalid svn-id: r51075
2010-07-18Cleanup and simplify resource type remapping.Matthew Hoops
svn-id: r50975
2010-07-18In SCI2.1, the type numbers inside resource maps/patches have changed ↵Matthew Hoops
slightly. We no longer use the number Sierra gives us directly, but use a function to convert to our ResourceType enum based on version. This allows us to read the chunk type from SCI2.1 (a form of script). Also, allow debugging of Mac-specific resources from the console. svn-id: r50973
2010-07-17Add support for the altres.map/altres.000 map/volume pair in KQ7.Matthew Hoops
svn-id: r50968
2010-07-16SCI: adding fixme and error() to fix crash when trying to run unmodified gk2Martin Kiewitz
svn-id: r50939
2010-06-25SCI: detect, if SCI1.1 game is merging or copying palette instead of using ↵Martin Kiewitz
gameIds. Also prints method used, when using debug command "version" svn-id: r50261
2010-06-20Cleaner fix for the QFG4 demo audio map problem.Matthew Hoops
svn-id: r50104
2010-06-20Ignore the broken 65535x.map file in the QFG4 demo, mistakenly picked up ↵Matthew Hoops
when checking for patches. Audio now works there. svn-id: r50102
2010-06-19SCI: changing error to warning in ResMan::detectViewType()Martin Kiewitz
svn-id: r50067
2010-06-18SCI: not using views coming from patch files anymore for detecting view typeMartin Kiewitz
svn-id: r50027
2010-06-18Don't throw a warning when we can't find hires contentFilippos Karapetis
svn-id: r50015
2010-06-18SCI: Unbreak diskdump console command, maybe othersLars Skovlund
svn-id: r50014
2010-06-18SCI: changing error to warning inside detectHires() for gk1 to work again...Martin Kiewitz
svn-id: r50008
2010-06-18SCI: reverting #49978, it worked correctly. the new values contain the full ↵Martin Kiewitz
height/width of the picture (may be much larger cause of scrollable areas) and we actually don't want that. the values before and now contain the height/width of the on-screen picture size - although this may contain 0, 0 for low-res games, but that's fine then svn-id: r50006
2010-06-18Fixed a bug in detectHires(), so that it actually worksFilippos Karapetis
svn-id: r49978
2010-06-17Renamed error -> errorNum to avoid name clashes with error()Filippos Karapetis
svn-id: r49974
2010-06-17Strict mode: Turned several severe errors (almost all detection related) ↵Filippos Karapetis
into errors, instead of warnings svn-id: r49972
2010-06-16SCI: Avoid using g_sci in resman (as it might not yet be inited)Max Horn
svn-id: r49897
2010-06-15SCI: Pass resman to scanSource() methodsMax Horn
svn-id: r49863
2010-06-15SCI: Add Resource::getNumber methodMax Horn
svn-id: r49848
2010-06-15Fix spelling, cleanupMax Horn
svn-id: r49843
2010-06-15SCI: Make Resource::_id protectedMax Horn
svn-id: r49842
2010-06-15SCI: OOpify class ResourceIdMax Horn
svn-id: r49841
2010-06-15SCI: Add ResourceManager::getVolVersion()Max Horn
svn-id: r49840
2010-06-15Reduce header dependenciesMax Horn
svn-id: r49836
2010-06-15SCI: Move decompress & readResourceInfo to Resource; more cleanupMax Horn
svn-id: r49835