1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

fix fileuri error on android

This commit is contained in:
Laserlicht 2024-12-10 23:14:27 +01:00
parent dbd4f5b48e
commit 7cc5c06d2a

View File

@ -235,16 +235,19 @@ void ChroniclesExtractor::installChronicles(QStringList exe)
for(QString f : exe)
{
extractionFile++;
QFile file(f);
if(!createTempDir())
continue;
QString filepath = tempDir.filePath("chr.exe");
QFile(f).copy(filepath);
QFile file(filepath);
int chronicleNo = getChronicleNo(file);
if(!chronicleNo)
continue;
if(!createTempDir())
continue;
if(!extractGogInstaller(f))
if(!extractGogInstaller(filepath))
continue;
createBaseMod();