Matthew Hoops
191d50171a
SCI: Fix bug #3035737 - SCI Fan Games: Incorrect Version Detection
...
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-28 15:34:34 +00:00
Filippos Karapetis
fed9541f47
Fixed LSL6 hires resources, speech and lip sync work now (thanks to a discussion we had with clone2727)
...
svn-id: r51287
2010-07-25 22:47:17 +00:00
Filippos Karapetis
e7abc6da4f
SCI: Fixed an off-by-one error in the resource manager - it tried to load patches of type kResourceTypeInvalid
...
svn-id: r51075
2010-07-20 21:53:58 +00:00
Matthew Hoops
88b2bec072
Cleanup and simplify resource type remapping.
...
svn-id: r50975
2010-07-18 01:32:48 +00:00
Matthew Hoops
c128b87c77
In SCI2.1, the type numbers inside resource maps/patches have changed 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-18 00:16:19 +00:00
Matthew Hoops
880bb9f421
Add support for the altres.map/altres.000 map/volume pair in KQ7.
...
svn-id: r50968
2010-07-17 20:29:33 +00:00
Martin Kiewitz
564b68a9fc
SCI: adding fixme and error() to fix crash when trying to run unmodified gk2
...
svn-id: r50939
2010-07-16 19:33:28 +00:00
Martin Kiewitz
c6b0a5e896
SCI: detect, if SCI1.1 game is merging or copying palette instead of using gameIds. Also prints method used, when using debug command "version"
...
svn-id: r50261
2010-06-25 10:04:31 +00:00
Matthew Hoops
473ae1c11e
Cleaner fix for the QFG4 demo audio map problem.
...
svn-id: r50104
2010-06-20 23:41:54 +00:00
Matthew Hoops
72534afea9
Ignore the broken 65535x.map file in the QFG4 demo, mistakenly picked up when checking for patches. Audio now works there.
...
svn-id: r50102
2010-06-20 22:30:20 +00:00
Martin Kiewitz
87132bd411
SCI: changing error to warning in ResMan::detectViewType()
...
svn-id: r50067
2010-06-19 22:14:15 +00:00
Martin Kiewitz
8c8ce14164
SCI: not using views coming from patch files anymore for detecting view type
...
svn-id: r50027
2010-06-18 18:49:06 +00:00
Filippos Karapetis
543610d4d4
Don't throw a warning when we can't find hires content
...
svn-id: r50015
2010-06-18 12:15:33 +00:00
Lars Skovlund
8ade66ba13
SCI: Unbreak diskdump console command, maybe others
...
svn-id: r50014
2010-06-18 10:49:26 +00:00
Martin Kiewitz
8493edf082
SCI: changing error to warning inside detectHires() for gk1 to work again...
...
svn-id: r50008
2010-06-18 06:47:16 +00:00
Martin Kiewitz
8f655615d7
SCI: reverting #49978 , it worked correctly. the new values contain the full 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-18 05:40:12 +00:00
Filippos Karapetis
660ae052c8
Fixed a bug in detectHires(), so that it actually works
...
svn-id: r49978
2010-06-18 00:36:20 +00:00
Filippos Karapetis
c9c9a21a08
Renamed error -> errorNum to avoid name clashes with error()
...
svn-id: r49974
2010-06-17 23:52:17 +00:00
Filippos Karapetis
9c1ec81d76
Strict mode: Turned several severe errors (almost all detection related) into errors, instead of warnings
...
svn-id: r49972
2010-06-17 23:45:38 +00:00
Max Horn
e7275161f4
SCI: Avoid using g_sci in resman (as it might not yet be inited)
...
svn-id: r49897
2010-06-16 00:24:16 +00:00
Max Horn
b8d9cf2773
SCI: Pass resman to scanSource() methods
...
svn-id: r49863
2010-06-15 16:50:10 +00:00
Max Horn
e4153ffa38
SCI: Add Resource::getNumber method
...
svn-id: r49848
2010-06-15 12:35:17 +00:00
Max Horn
651e2760a3
Fix spelling, cleanup
...
svn-id: r49843
2010-06-15 12:33:20 +00:00
Max Horn
7a5ce0eddd
SCI: Make Resource::_id protected
...
svn-id: r49842
2010-06-15 12:31:37 +00:00
Max Horn
2b24a1a2ad
SCI: OOpify class ResourceId
...
svn-id: r49841
2010-06-15 12:31:16 +00:00
Max Horn
68eeef8f1a
SCI: Add ResourceManager::getVolVersion()
...
svn-id: r49840
2010-06-15 12:21:29 +00:00
Max Horn
79c9be5d96
Reduce header dependencies
...
svn-id: r49836
2010-06-15 12:20:03 +00:00
Max Horn
583a966d8c
SCI: Move decompress & readResourceInfo to Resource; more cleanup
...
svn-id: r49835
2010-06-15 12:19:39 +00:00
Max Horn
4392cdaee1
SCI: cleanup
...
svn-id: r49834
2010-06-15 12:19:14 +00:00
Max Horn
335e17af01
SCI: Move several methods from ResourceManager to Resource
...
svn-id: r49833
2010-06-15 12:18:57 +00:00
Max Horn
63d9cfb3bf
SCI: Add ResourceManager::updateResource(); change some code to use addResource()
...
svn-id: r49832
2010-06-15 12:18:31 +00:00
Max Horn
b9a3a9c12d
SCI: Move _associatedMap to VolumeResourceSource and make it const
...
svn-id: r49831
2010-06-15 12:18:07 +00:00
Max Horn
6667a71027
SCI: Move _audioCompression(Type|OffsetMapping) to AudioVolumeResourceSource
...
svn-id: r49830
2010-06-15 12:17:47 +00:00
Max Horn
1a0201f7e9
SCI: cleanup
...
svn-id: r49829
2010-06-15 12:17:25 +00:00
Max Horn
6248daccfc
SCI: Get rid of ugly resMan params to ResourceSource methods
...
We might want to add a ResourceSource::_resMan member, but for
now I am not adding one on purpose; many more things might still
move between ResourceSource and ResourceManager, so we should
wait till the refactoring is complete.
svn-id: r49828
2010-06-15 12:17:05 +00:00
Max Horn
88663c9186
SCI: Merge ResourceManager::checkIfAudioVolumeIsCompressed into AudioVolumeResourceSource constructor
...
svn-id: r49827
2010-06-15 12:16:42 +00:00
Max Horn
348953c067
SCI: Make ResourceSource::_resourceFile const
...
svn-id: r49826
2010-06-15 12:16:17 +00:00
Max Horn
824dd44ddf
SCI: Revise how ResourceManager is instantiated.
...
This should allow for better error handling. Also, it
means that g_sci->getResMan() returns a valid value much sooner,
allowing me to simplify some code.
Also added a note about potentially replacing Common::FSList usage
by Common::Archive (and FSNode by Archive/ArchiveMember ?). This
might be a way to unify the addAppropriateSources variants again.
svn-id: r49825
2010-06-15 12:15:52 +00:00
Max Horn
4020500640
SCI: Rename ResourceSource members to follow _camelCase convention
...
svn-id: r49823
2010-06-15 12:15:05 +00:00
Max Horn
07b896802b
SCI: Pass volume number to ResourceSource subclass constructors; make ResourceSource::volume_number const
...
svn-id: r49822
2010-06-15 12:14:39 +00:00
Max Horn
bb1336ca41
SCI: Add loadResource impls for WaveResourceSource and AudioVolumeResourceSource
...
svn-id: r49821
2010-06-15 12:14:15 +00:00
Max Horn
d032e6481b
SCI: Add loadResource impls to MacResourceForkResourceSource and PatchResourceSource; move _macResMan to MacResourceForkResourceSource
...
svn-id: r49820
2010-06-15 12:13:52 +00:00
Max Horn
d4f16962d0
SCI: Move code from ResourceManager::loadResource to ResourceSource::loadResource
...
svn-id: r49819
2010-06-15 12:13:29 +00:00
Max Horn
d0f59edd96
SCI: Rename ResourceSource::resourceFile to _resourceFile
...
svn-id: r49818
2010-06-15 12:13:07 +00:00
Max Horn
d15e09fdc2
SCI: Merge MacResourceForkResourceSource::scanSource and ResourceManager::readMacResourceFork
...
svn-id: r49817
2010-06-15 12:12:44 +00:00
Max Horn
055ee6ab5b
SCI: Add virtual method ResourceSource::scanSource
...
svn-id: r49816
2010-06-15 12:12:21 +00:00
Max Horn
89cf6f7cb1
SCI: Change ResourceManager::getVolume() to use new classes
...
* Add new ResourceSource::findVolume() virtual method
* Rename ResourceManager::getVolume() to findVolume(),
and change it to use the new ResourceSource method
* Add some TODO comments pointing to further OOPification
possibilities
svn-id: r49815
2010-06-15 12:11:56 +00:00
Max Horn
8c06425ee3
SCI: Remove 'map' param from addSource, and let AudioVolumeResourceSource subclass VolumeResourceSource
...
svn-id: r49814
2010-06-15 12:11:30 +00:00
Max Horn
17a5112162
SCI: Convert code to use ResourceSource subclasses
...
svn-id: r49813
2010-06-15 12:11:04 +00:00
Max Horn
24a295f4a3
SCI: Add ResourceSource subclasses, one for each type
...
svn-id: r49812
2010-06-15 12:10:41 +00:00