X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fpacksource.cpp;h=fe9e67db6eabae37ae1b38278d68104b305f2739;hp=938a627c05fb9b3685cb25cb53678439e39697f7;hb=010737b64c8d4e7fcf0fe953ed15769eeac4178f;hpb=461967af6834fb0fccdd39a8d76192d411223148 diff --git a/source/packsource.cpp b/source/packsource.cpp index 938a627..fe9e67d 100644 --- a/source/packsource.cpp +++ b/source/packsource.cpp @@ -33,11 +33,16 @@ void PackSource::add_pack_io(IO::Seekable &io, const string &fn) add_pack(&io, fn, string()); } +void PackSource::add_pack_io(IO::Seekable &io, const string &fn, const string &filter) +{ + add_pack(&io, fn, filter); +} + void PackSource::add_pack(IO::Seekable *io, const string &fn, const string &filter) { Pack *pack = 0; for(list::iterator i=packs.begin(); (!pack && i!=packs.end()); ++i) - if(i->get_filename()==fn) + if(i->get_filename()==fn || (io && i->get_io()==io)) pack = &*i; if(!pack) {