Mercurial > audlegacy-plugins
diff src/adplug/core/database.cxx @ 339:d19ac60697ec trunk
[svn] - implement virtual class to use VFS through binio
- update the places where binio is used directly to use vfs[io]stream instead of bin[io]stream, respectively
- make CFileProvider use vfsistream instead of binifstream.
| author | nenolod |
|---|---|
| date | Wed, 06 Dec 2006 07:37:05 -0800 |
| parents | 3da1b8942b8b |
| children | 4709ce4e209e |
line wrap: on
line diff
--- a/src/adplug/core/database.cxx Wed Dec 06 05:09:57 2006 -0800 +++ b/src/adplug/core/database.cxx Wed Dec 06 07:37:05 2006 -0800 @@ -21,8 +21,7 @@ * Copyright (c) 2002, 2003, 2006 Simon Peter <dn.tlp@gmx.net> */ -#include <binio.h> -#include <binfile.h> +#include "binio_virtual.h" #include <string.h> #include "database.h" @@ -55,7 +54,7 @@ bool CAdPlugDatabase::load(std::string db_name) { - binifstream f(db_name); + vfsistream f(db_name); if(f.error()) return false; return load(f); } @@ -86,7 +85,7 @@ bool CAdPlugDatabase::save(std::string db_name) { - binofstream f(db_name); + vfsostream f(db_name); if(f.error()) return false; return save(f); }
