mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
(svn r19262) -Feature: finalise BaNaNaS support for music sets
This commit is contained in:
@@ -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);
|
||||
|
@@ -106,6 +106,11 @@ public:
|
||||
SetWindowDirty(WC_GAME_OPTIONS, 0);
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_BASE_MUSIC:
|
||||
BaseMusic::FindSets();
|
||||
SetWindowDirty(WC_GAME_OPTIONS, 0);
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_NEWGRF:
|
||||
ScanNewGRFFiles();
|
||||
/* Yes... these are the NewGRF windows */
|
||||
|
Reference in New Issue
Block a user