Mercurial > audlegacy-plugins
diff src/adplug/core/dfm.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 | 4709ce4e209e |
line wrap: on
line diff
--- a/src/adplug/core/dfm.cxx Thu Feb 22 07:19:39 2007 -0800 +++ b/src/adplug/core/dfm.cxx Fri Feb 23 20:23:34 2007 -0800 @@ -30,9 +30,9 @@ return new CdfmLoader(newopl); } -bool CdfmLoader::load(const std::string &filename, const CFileProvider &fp) +bool CdfmLoader::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 char npats,n,note,fx,c,r,param; unsigned int i; const unsigned char convfx[8] = {255,255,17,19,23,24,255,13};