comparison src/adplug/core/rix.cxx @ 703:cae46214b8bf trunk

[svn] - rework AdPlug to use VFS properly see http://sacredspiral.co.uk/~nenolod/adplug-vfs-ng.diff for a diff.
author nenolod
date Fri, 23 Feb 2007 20:23:34 -0800
parents 3da1b8942b8b
children ae7e96e44f22
comparison
equal deleted inserted replaced
702:d25b51e90542 703:cae46214b8bf
61 { 61 {
62 if(file_buffer) 62 if(file_buffer)
63 delete [] file_buffer; 63 delete [] file_buffer;
64 } 64 }
65 65
66 bool CrixPlayer::load(const std::string &filename, const CFileProvider &fp) 66 bool CrixPlayer::load(VFSFile *fd, const CFileProvider &fp)
67 { 67 {
68 binistream *f = fp.open(filename); if(!f) return false; 68 binistream *f = fp.open(fd); if(!f) return false;
69 unsigned long i=0; 69 unsigned long i=0;
70 std::string filename(fd->uri);
70 71
71 if(stricmp(filename.substr(filename.length()-4,4).c_str(),".mkf")==0) 72 if(stricmp(filename.substr(filename.length()-4,4).c_str(),".mkf")==0)
72 { 73 {
73 flag_mkf=1; 74 flag_mkf=1;
74 f->seek(0); 75 f->seek(0);