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:
parent
dbd4f5b48e
commit
7cc5c06d2a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user