(svn r19262) -Feature: finalise BaNaNaS support for music sets

This commit is contained in:
rubidium
2010-02-26 00:00:55 +00:00
parent 7b1e0a4b67
commit 0f6d82df7e
5 changed files with 88 additions and 1 deletions

View File

@@ -481,6 +481,12 @@ void ClientNetworkContentSocketHandler::AfterDownload()
TarListAddFile(GetFullFilename(this->curInfo, false));
if (this->curInfo->type == CONTENT_TYPE_BASE_MUSIC) {
/* Music can't be in a tar. So extract the tar! */
ExtractTar(GetFullFilename(this->curInfo, false));
unlink(GetFullFilename(this->curInfo, false));
}
this->OnDownloadComplete(this->curInfo->id);
} else {
ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_EXTRACT, INVALID_STRING_ID, WL_ERROR);