mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
optimisations for mobile
This commit is contained in:
parent
e52dbf028c
commit
c148f929ae
@ -296,12 +296,22 @@ QString FirstLaunchView::getHeroesInstallDir()
|
|||||||
void FirstLaunchView::extractGogData()
|
void FirstLaunchView::extractGogData()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_INNOEXTRACT
|
#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)";
|
QString filterExe = tr("GOG executable") + " (*.exe)";
|
||||||
|
#endif
|
||||||
QString fileExe = QFileDialog::getOpenFileName(this, tr("Select a GOG installer (exe) file..."), QDir::homePath(), filterExe);
|
QString fileExe = QFileDialog::getOpenFileName(this, tr("Select a GOG installer (exe) file..."), QDir::homePath(), filterExe);
|
||||||
if(fileExe.isEmpty())
|
if(fileExe.isEmpty())
|
||||||
return;
|
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)";
|
QString filterBin = tr("GOG bin file") + " (*.bin)";
|
||||||
|
#endif
|
||||||
QString fileBin = QFileDialog::getOpenFileName(this, tr("Select a GOG data (bin) file..."), QFileInfo(fileExe).absolutePath(), filterBin);
|
QString fileBin = QFileDialog::getOpenFileName(this, tr("Select a GOG data (bin) file..."), QFileInfo(fileExe).absolutePath(), filterBin);
|
||||||
if(fileBin.isEmpty())
|
if(fileBin.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user