Merge branch 'master' into jgrpp
# Conflicts: # src/fileio.cpp # src/fileio_func.h # src/industry_cmd.cpp # src/ini.cpp # src/openttd.cpp # src/os/windows/win32_main.cpp # src/settingsgen/settingsgen.cpp # src/strgen/strgen.cpp # src/strings.cpp
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "../game/game.hpp"
|
||||
#include "../window_func.h"
|
||||
#include "../error.h"
|
||||
#include "../fileio_func.h"
|
||||
#include "../base_media_base.h"
|
||||
#include "../settings_type.h"
|
||||
#include "network_content.h"
|
||||
@@ -556,7 +557,7 @@ void ClientNetworkContentSocketHandler::AfterDownload()
|
||||
this->curFile = nullptr;
|
||||
|
||||
if (GunzipFile(this->curInfo)) {
|
||||
unlink(GetFullFilename(this->curInfo, true).c_str());
|
||||
FioRemove(GetFullFilename(this->curInfo, true));
|
||||
|
||||
Subdirectory sd = GetContentInfoSubDir(this->curInfo->type);
|
||||
if (sd == NO_DIRECTORY) NOT_REACHED();
|
||||
@@ -568,7 +569,7 @@ void ClientNetworkContentSocketHandler::AfterDownload()
|
||||
if (this->curInfo->type == CONTENT_TYPE_BASE_MUSIC) {
|
||||
/* Music can't be in a tar. So extract the tar! */
|
||||
ExtractTar(fname, BASESET_DIR);
|
||||
unlink(fname.c_str());
|
||||
FioRemove(fname);
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
|
||||
Reference in New Issue
Block a user