mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
fix fileuri error on android
This commit is contained in:
@@ -235,16 +235,19 @@ void ChroniclesExtractor::installChronicles(QStringList exe)
|
|||||||
for(QString f : exe)
|
for(QString f : exe)
|
||||||
{
|
{
|
||||||
extractionFile++;
|
extractionFile++;
|
||||||
QFile file(f);
|
|
||||||
|
if(!createTempDir())
|
||||||
|
continue;
|
||||||
|
|
||||||
|
QString filepath = tempDir.filePath("chr.exe");
|
||||||
|
QFile(f).copy(filepath);
|
||||||
|
QFile file(filepath);
|
||||||
|
|
||||||
int chronicleNo = getChronicleNo(file);
|
int chronicleNo = getChronicleNo(file);
|
||||||
if(!chronicleNo)
|
if(!chronicleNo)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(!createTempDir())
|
if(!extractGogInstaller(filepath))
|
||||||
continue;
|
|
||||||
|
|
||||||
if(!extractGogInstaller(f))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
createBaseMod();
|
createBaseMod();
|
||||||
|
|||||||
Reference in New Issue
Block a user