| 96 |
|
line = fileStream.readLine(); |
| 97 |
|
|
| 98 |
|
if(line.startsWith('"')){ // Only read when starting with quotes |
| 99 |
< |
temp=line.split(" \""); // We need to use more than space, because if paths contains spaces... |
| 100 |
< |
patchFiles << temp[0].remove('"'); // remove the quotes, they are now not needed |
| 101 |
< |
targetXmlFiles << temp[1].remove('"'); |
| 99 |
> |
temp=line.split('"',QString::SkipEmptyParts); // We need to use more than space, because if paths contains spaces... |
| 100 |
> |
patchFiles << temp[0]; |
| 101 |
> |
targetXmlFiles << temp[2]; // space is in idx 1 |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
inputFile.close(); |
| 106 |
|
|
| 107 |
|
// Now let's process each patch file and target file |
| 108 |
– |
//#pragma omp parallel for |
| 108 |
|
for(int i=0; i<patchFiles.size(); i++){ |
| 109 |
|
XmlPatch myXmlPatch(patchFiles[i],targetXmlFiles[i],true,true); // use --no-backups and --no-verbose for AEI |
| 110 |
|
myXmlPatch.readAndProcessPatchFile(); // process current file |