diff options
author | rubidium <rubidium@openttd.org> | 2010-05-10 09:37:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-10 09:37:17 +0000 |
commit | 948beec597f788bc661bf7869d4ab27945215e53 (patch) | |
tree | 3d49135c91d76b6c2dc3b7daeebfbfe4e4c9a7ab /src/network | |
parent | 8a2fecbff5532f5208c457d6f49742f4cc0ff754 (diff) | |
download | openttd-948beec597f788bc661bf7869d4ab27945215e53.tar.xz |
(svn r19777) -Change: use the file scanner to find the .tars
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index c722fd585..062586593 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -27,7 +27,6 @@ #include <zlib.h> #endif -extern bool TarListAddFile(const char *filename); extern bool HasScenario(const ContentInfo *ci, bool md5sum); ClientNetworkContentSocketHandler _network_content_client; @@ -498,7 +497,8 @@ void ClientNetworkContentSocketHandler::AfterDownload() if (GunzipFile(this->curInfo)) { unlink(GetFullFilename(this->curInfo, true)); - TarListAddFile(GetFullFilename(this->curInfo, false)); + TarScanner ts; + ts.AddFile(GetFullFilename(this->curInfo, false), 0); if (this->curInfo->type == CONTENT_TYPE_BASE_MUSIC) { /* Music can't be in a tar. So extract the tar! */ |