From c148f929aefde38cdc3bca38aa0098a91e3ac99c Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:05:17 +0200 Subject: [PATCH] optimisations for mobile --- launcher/firstLaunch/firstlaunch_moc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/launcher/firstLaunch/firstlaunch_moc.cpp b/launcher/firstLaunch/firstlaunch_moc.cpp index e107eef72..b1ea0c16a 100644 --- a/launcher/firstLaunch/firstlaunch_moc.cpp +++ b/launcher/firstLaunch/firstlaunch_moc.cpp @@ -296,12 +296,22 @@ QString FirstLaunchView::getHeroesInstallDir() void FirstLaunchView::extractGogData() { #ifdef ENABLE_INNOEXTRACT +#if defined(VCMI_MOBILE) + QString filterExe = tr("GOG executable") + " (*.*)"; + QMessageBox::information(this, tr("File selection"), tr("Select a GOG installer (exe) file...")); +#else QString filterExe = tr("GOG executable") + " (*.exe)"; +#endif QString fileExe = QFileDialog::getOpenFileName(this, tr("Select a GOG installer (exe) file..."), QDir::homePath(), filterExe); if(fileExe.isEmpty()) return; +#if defined(VCMI_MOBILE) + QString filterBin = tr("GOG bin file") + " (*.*)"; + QMessageBox::information(this, tr("File selection"), tr("Select a GOG data (bin) file...")); +#else QString filterBin = tr("GOG bin file") + " (*.bin)"; +#endif QString fileBin = QFileDialog::getOpenFileName(this, tr("Select a GOG data (bin) file..."), QFileInfo(fileExe).absolutePath(), filterBin); if(fileBin.isEmpty()) return;