db/update/Archive: pass ArchiveFile to Song constructor
Don't open the ZIP file again and again for each song file.
This commit is contained in:
@@ -30,6 +30,7 @@ struct stat;
|
||||
struct StorageFileInfo;
|
||||
struct Directory;
|
||||
struct ArchivePlugin;
|
||||
class ArchiveFile;
|
||||
class Storage;
|
||||
class ExcludeList;
|
||||
|
||||
@@ -101,7 +102,8 @@ private:
|
||||
|
||||
|
||||
#ifdef ENABLE_ARCHIVE
|
||||
void UpdateArchiveTree(Directory &parent, const char *name);
|
||||
void UpdateArchiveTree(ArchiveFile &archive, Directory &parent,
|
||||
const char *name);
|
||||
|
||||
bool UpdateArchiveFile(Directory &directory,
|
||||
const char *name, const char *suffix,
|
||||
|
Reference in New Issue
Block a user