mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-01 12:57:51 +02:00
process of innoextract extraction
This commit is contained in:
parent
33877de7c6
commit
2dfff3a53d
@ -341,7 +341,13 @@ void FirstLaunchView::extractGogData()
|
||||
|
||||
o.preserve_file_times = true; // also correctly closes file -> without it: on Windows the files are not written completly
|
||||
|
||||
process_file(tmpFileExe.toStdString(), o);
|
||||
this->setEnabled(false);
|
||||
process_file(tmpFileExe.toStdString(), o, [this](float percent) {
|
||||
ui->pushButtonGogInstall->setText(tr("Installing...") + " " + QString::number(static_cast<int>(percent * 100)) + "%");
|
||||
ui->pushButtonGogInstall->update();
|
||||
qApp->processEvents();
|
||||
});
|
||||
this->setEnabled(true);
|
||||
|
||||
QStringList dirData = tempDir.entryList({"data"}, QDir::Filter::Dirs);
|
||||
if(dirData.empty() || QDir(tempDir.filePath(dirData.front())).entryList({"*.lod"}, QDir::Filter::Files).empty())
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 46adb5762331aa3f19113fe09c72fc2d37caf90c
|
||||
Subproject commit 9977089412ebafe9f79936aa65a2edf16a84ae3e
|
Loading…
x
Reference in New Issue
Block a user