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