Mercurial > audlegacy-plugins
diff 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 |
line wrap: on
line diff
--- a/src/adplug/core/rix.cxx Thu Feb 22 07:19:39 2007 -0800 +++ b/src/adplug/core/rix.cxx Fri Feb 23 20:23:34 2007 -0800 @@ -63,10 +63,11 @@ delete [] file_buffer; } -bool CrixPlayer::load(const std::string &filename, const CFileProvider &fp) +bool CrixPlayer::load(VFSFile *fd, const CFileProvider &fp) { - binistream *f = fp.open(filename); if(!f) return false; + binistream *f = fp.open(fd); if(!f) return false; unsigned long i=0; + std::string filename(fd->uri); if(stricmp(filename.substr(filename.length()-4,4).c_str(),".mkf")==0) {