From 7311bfaec3e55c5222a37167f948a59102a39176 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 18 Jun 2016 19:53:19 +0200 Subject: [PATCH] Changed: Extract data archive --- .../ryzom_installer/src/operationdialog.cpp | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 1975364ea..d52c52727 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -443,7 +443,25 @@ void COperationDialog::downloadData() void COperationDialog::extractDownloadedData() { - // TODO: implement + CConfigFile *config = CConfigFile::getInstance(); + + const CServer &server = config->getServer(m_currentServerId); + + m_currentOperation = QApplication::tr("Extract data files required by server %1").arg(server.name); + m_currentOperationProgressFormat = QApplication::tr("Extracting %1..."); + + CFilesExtractor extractor(this); + extractor.setSourceFile(config->getInstallationDirectory() + "/" + server.dataDownloadFilename); + extractor.setDestinationDirectory(server.getDirectory()); + + if (extractor.exec()) + { + } + else + { + } + + emit done(); } void COperationDialog::downloadClient()