Mercurial > audlegacy-plugins
diff src/adplug/core/xsm.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 | 48ebfc711a8c |
line wrap: on
line diff
--- a/src/adplug/core/xsm.cxx Thu Feb 22 07:19:39 2007 -0800 +++ b/src/adplug/core/xsm.cxx Fri Feb 23 20:23:34 2007 -0800 @@ -33,9 +33,9 @@ if(music) delete [] music; } -bool CxsmPlayer::load(const std::string &filename, const CFileProvider &fp) +bool CxsmPlayer::load(VFSFile *fd, const CFileProvider &fp) { - binistream *f = fp.open(filename); if(!f) return false; + binistream *f = fp.open(fd); if(!f) return false; char id[6]; int i, j;