From 414c397000935162df4641dbe0c056b39d32205e Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Sep 2011 09:48:52 +0000 Subject: (svn r22904) -Codechange: add tar filename to file scanning --- src/ai/ai_scanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/ai_scanner.cpp') diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index aa4e5190a..100147f5a 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -378,7 +378,7 @@ struct AIFileChecksumCreator : FileScanner { } /* Add the file and calculate the md5 sum. */ - virtual bool AddFile(const char *filename, size_t basepath_length) + virtual bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename) { Md5 checksum; uint8 buffer[1024]; @@ -446,7 +446,7 @@ static bool IsSameAI(const ContentInfo *ci, bool md5sum, AIFileInfo *info) /* Create the full path name, */ seprintf(path, lastof(path), "%s%c%s", tar->second.tar_filename, PATHSEPCHAR, tar->first.c_str()); - checksum.AddFile(path, 0); + checksum.AddFile(path, 0, NULL); } } else { /* Add the path sep char back when searching a directory, so we are -- cgit v1.2.3-54-g00ecf