[Scummvm-cvs-logs] CVS: scummvm/scumm/imuse_digi dimuse_bndmgr.cpp,1.30,1.31 dimuse_bndmgr.h,1.14,1.15 dimuse_sndmgr.cpp,1.69,1.70 dimuse_sndmgr.h,1.31,1.32
Max Horn
fingolfin at users.sourceforge.net
Tue May 10 16:00:18 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.140,2.141 debugger.cpp,1.148,1.149 intern.h,2.481,2.482 resource.cpp,1.321,1.322 resource_v3.cpp,1.38,1.39 resource_v4.cpp,1.25,1.26 resource_v7he.cpp,1.40,1.41 resource_v7he.h,1.12,1.13 script_v6he.cpp,2.156,2.157 script_v72he.cpp,2.286,2.287 script_v80he.cpp,2.113,2.114 scumm.cpp,1.500,1.501 sound.cpp,1.456,1.457 sound.h,1.86,1.87 util.cpp,2.10,2.11 util.h,2.10,2.11 vars.cpp,1.134,1.135 wiz_he.cpp,2.79,2.80
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.h,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm/imuse_digi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17315/scumm/imuse_digi
Modified Files:
dimuse_bndmgr.cpp dimuse_bndmgr.h dimuse_sndmgr.cpp
dimuse_sndmgr.h
Log Message:
Moved class File and the MD5 stuff to namespace Common
Index: dimuse_bndmgr.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_bndmgr.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- dimuse_bndmgr.cpp 10 Apr 2005 12:59:17 -0000 1.30
+++ dimuse_bndmgr.cpp 10 May 2005 22:56:14 -0000 1.31
@@ -71,7 +71,7 @@
}
if (!found) {
- File file;
+ Common::File file;
if (file.open(filename) == false) {
warning("BundleDirCache::matchFile() Can't open bundle file: %s", filename);
@@ -135,7 +135,7 @@
close();
}
-File *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) {
+Common::File *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) {
for (int i = 0; i < _numFiles; i++) {
if (!scumm_stricmp(filename, _bundleTable[i].filename)) {
_file.seek(_bundleTable[i].offset, SEEK_SET);
Index: dimuse_bndmgr.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_bndmgr.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- dimuse_bndmgr.h 25 Jan 2005 22:21:09 -0000 1.14
+++ dimuse_bndmgr.h 10 May 2005 22:56:14 -0000 1.15
@@ -67,7 +67,7 @@
int _numFiles;
int _numCompItems;
int _curSample;
- File _file;
+ Common::File _file;
bool _compTableLoaded;
int _fileBundleId;
byte _compOutput[0x2000];
@@ -84,7 +84,7 @@
bool open(const char *filename, bool &compressed);
void close();
- File *getFile(const char *filename, int32 &offset, int32 &size);
+ Common::File *getFile(const char *filename, int32 &offset, int32 &size);
int32 decompressSampleByName(const char *name, int32 offset, int32 size, byte **comp_final, bool header_outside);
int32 decompressSampleByIndex(int32 index, int32 offset, int32 size, byte **comp_final, int header_size, bool header_outside);
int32 decompressSampleByCurIndex(int32 offset, int32 size, byte **comp_final, int header_size, bool header_outside);
Index: dimuse_sndmgr.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_sndmgr.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- dimuse_sndmgr.cpp 10 Apr 2005 12:59:17 -0000 1.69
+++ dimuse_sndmgr.cpp 10 May 2005 22:56:15 -0000 1.70
@@ -84,7 +84,7 @@
} while (tag != MKID_BE('DATA'));
}
-void ImuseDigiSndMgr::prepareSoundFromRMAP(File *file, soundStruct *sound, int32 offset, int32 size) {
+void ImuseDigiSndMgr::prepareSoundFromRMAP(Common::File *file, soundStruct *sound, int32 offset, int32 size) {
int l;
file->seek(offset, SEEK_SET);
@@ -368,7 +368,7 @@
char fileName[24];
int32 offset = 0, size = 0;
sprintf(fileName, "%s.map", soundName);
- File *rmapFile = sound->bundle->getFile(fileName, offset, size);
+ Common::File *rmapFile = sound->bundle->getFile(fileName, offset, size);
if (!rmapFile) {
closeSound(sound);
return NULL;
@@ -577,7 +577,7 @@
sprintf(fileName, "%s_reg%03d", soundHandle->name, region);
if (scumm_stricmp(fileName, soundHandle->lastFileName) != 0) {
int32 offs = 0, len = 0;
- File *cmpFile;
+ Common::File *cmpFile;
bool oggMode = false;
sprintf(fileName, "%s_reg%03d.mp3", soundHandle->name, region);
cmpFile = soundHandle->bundle->getFile(fileName, offs, len);
Index: dimuse_sndmgr.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse_sndmgr.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- dimuse_sndmgr.h 25 Jan 2005 22:21:23 -0000 1.31
+++ dimuse_sndmgr.h 10 May 2005 22:56:15 -0000 1.32
@@ -96,7 +96,7 @@
bool checkForProperHandle(soundStruct *soundHandle);
soundStruct *allocSlot();
void prepareSound(byte *ptr, soundStruct *sound);
- void prepareSoundFromRMAP(File *file, soundStruct *sound, int32 offset, int32 size);
+ void prepareSoundFromRMAP(Common::File *file, soundStruct *sound, int32 offset, int32 size);
ScummEngine *_vm;
byte _disk;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.140,2.141 debugger.cpp,1.148,1.149 intern.h,2.481,2.482 resource.cpp,1.321,1.322 resource_v3.cpp,1.38,1.39 resource_v4.cpp,1.25,1.26 resource_v7he.cpp,1.40,1.41 resource_v7he.h,1.12,1.13 script_v6he.cpp,2.156,2.157 script_v72he.cpp,2.286,2.287 script_v80he.cpp,2.113,2.114 scumm.cpp,1.500,1.501 sound.cpp,1.456,1.457 sound.h,1.86,1.87 util.cpp,2.10,2.11 util.h,2.10,2.11 vars.cpp,1.134,1.135 wiz_he.cpp,2.79,2.80
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.h,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list