[Scummvm-cvs-logs] SF.net SVN: scummvm:[49482] scummvm/trunk/engines/sci/resource.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Mon Jun 7 13:44:53 CEST 2010
Revision: 49482
http://scummvm.svn.sourceforge.net/scummvm/?rev=49482&view=rev
Author: mthreepwood
Date: 2010-06-07 11:44:52 +0000 (Mon, 07 Jun 2010)
Log Message:
-----------
Allow for the other audio36 patch naming schemes (Mac and some Torin ones).
Modified Paths:
--------------
scummvm/trunk/engines/sci/resource.cpp
Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp 2010-06-07 11:31:39 UTC (rev 49481)
+++ scummvm/trunk/engines/sci/resource.cpp 2010-06-07 11:44:52 UTC (rev 49482)
@@ -1150,18 +1150,23 @@
// folder of GK1CD, and are like this file: @0CS0M00.0X1. GK1CD is the first game where these
// have been observed. The actual audio36 and sync36 resources exist in SCI1.1 as well, but the
// first game where external patch files for them have been found is GK1CD. The names of these
- // files are base36 encoded, and we handle their decoding here. audio36 files start with a "@",
- // whereas sync36 start with a "#"
+ // files are base36 encoded, and we handle their decoding here. audio36 files start with a '@',
+ // whereas sync36 start with a '#'. Mac versions begin with 'A' (probably meaning AIFF). Torin
+ // has several that begin with 'B'.
- Common::String mask, name, inputName;
+ Common::String name, inputName;
Common::ArchiveMemberList files;
//ResourceSource *psrcPatch;
for (int i = kResourceTypeAudio36; i <= kResourceTypeSync36; ++i) {
- // audio36 resources start with a @
+ // audio36 resources start with a @, A, or B
// sync36 resources start with a #
- mask = (i == kResourceTypeAudio36) ? "@*.*" : "#*.*";
- SearchMan.listMatchingMembers(files, mask);
+ if (i == kResourceTypeAudio36) {
+ SearchMan.listMatchingMembers(files, "@???????.???");
+ SearchMan.listMatchingMembers(files, "A???????.???");
+ SearchMan.listMatchingMembers(files, "B???????.???");
+ } else
+ SearchMan.listMatchingMembers(files, "#???????.???");
for (Common::ArchiveMemberList::const_iterator x = files.begin(); x != files.end(); ++x) {
name = (*x)->getName();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list