Max Horn
d570e10b77
Modify makeAIFFStream to match the other sound decoder factories
...
svn-id: r49844
2010-06-15 12:33:54 +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
Martin Kiewitz
db4533533a
SCI: fix changes from r49806
...
svn-id: r49839
2010-06-15 12:21:26 +00:00
Max Horn
96f1e29300
cleanup
...
svn-id: r49837
2010-06-15 12:20:24 +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
713e61acba
SCI: Doxygen fixes
...
svn-id: r49824
2010-06-15 12:15:27 +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
Max Horn
793c04f43b
SCI: Changed some 'const char *' to Common::String
...
svn-id: r49811
2010-06-15 12:10:18 +00:00
Max Horn
dea38106f8
SCI: Change ResourceSource to a class, further OOPify it.
...
In particular, renamed location_name to _name and made it const and
protected. Thus it cannot be changed after creation, and only read
access is now possible, via a getter method.
svn-id: r49810
2010-06-15 12:09:51 +00:00
Max Horn
98e1f1a193
SCI: Only use MacResManager if needed; start to OOPify ResourceSource
...
svn-id: r49809
2010-06-15 12:09:30 +00:00
Max Horn
e32f3d5a43
SCI: cleanup
...
svn-id: r49808
2010-06-15 12:09:03 +00:00
Max Horn
69bfbdfa04
SCI: Move ResourceSource to new header resource_intern.h
...
svn-id: r49807
2010-06-15 12:08:40 +00:00
Martin Kiewitz
59d0035b03
SCI: move portrait methods to gfxPaint16
...
svn-id: r49806
2010-06-15 12:01:49 +00:00
Filippos Karapetis
5b484b5be7
Fixed compilation when SCI32 code is not enabled
...
svn-id: r49805
2010-06-15 11:44:55 +00:00
Eugene Sandulenko
44a39ffbc6
AdvancedDetector: Add new parameter directoryGlobs.
...
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.
svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
a8a44a07d1
SCI: Fix timer.
...
installTimerProc requires interval specified in milliseconds,
not microseconds. Correct palVary method accordingly.
svn-id: r49772
2010-06-15 10:51:10 +00:00
Filippos Karapetis
13aba8747a
Throttle screen updates to 60fps in some screen transition effects as well
...
svn-id: r49690
2010-06-15 10:09:42 +00:00
Filippos Karapetis
e64eb71ce8
Properly reconstruct the running stack when restoring (a regression from commits #49376 and #49525 ), some formatting
...
svn-id: r49689
2010-06-15 09:11:26 +00:00
Filippos Karapetis
ba3c43498b
- Swapped the return value of gamestate_save (false = failed, true = succeeded)
...
- Removed some duplicate code inside Console::cmdSaveGame()
svn-id: r49688
2010-06-15 08:39:03 +00:00
Filippos Karapetis
0ad3bedf98
Added a signature of the game itself inside saved games (the size of script 0, as well as the offset of the game object, which are unique for each game), to prevent users from loading saved games across different versions of the same game. In the cases where we can't load a saved game, throw a nice GUI dialog instead of a console warning
...
svn-id: r49687
2010-06-15 08:25:51 +00:00
Lars Skovlund
9a1db3f770
Add support for SCI32 segment types to seg_table and vr debug commands
...
svn-id: r49686
2010-06-15 08:21:39 +00:00
Filippos Karapetis
0dab9e0e1f
Reorganized functions a bit
...
svn-id: r49685
2010-06-15 07:25:09 +00:00
Filippos Karapetis
60d8cc5180
Removed the now unused EngineState parameter of script_adjust_opcode_formats(), as well as an obsolete TODO
...
svn-id: r49684
2010-06-15 07:21:52 +00:00
Filippos Karapetis
e93f8902a8
Cleanup of the savegame code:
...
- Added a saveLoadWithSerializer() method to the reg_t class
- Moved SegManager::reconstructClones() inside savegame.cpp
- Moved SoundCommandParser::syncPlayList() and SoundCommandParser::reconstructPlayList() inside savegame.cpp
svn-id: r49683
2010-06-15 07:20:53 +00:00
Alejandro Marzini
e1ef3cd9fc
Renamed getAudioCD to getAudioCDManager.
...
svn-id: r49678
2010-06-15 04:13:12 +00:00