ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/XmlTools2/trunk/optionsparser.cpp
(Generate patch)

Comparing XmlTools2/trunk/optionsparser.cpp (file contents):
Revision 955 by iritscen, Tue Feb 11 17:08:41 2014 UTC vs.
Revision 967 by s10k, Sun Mar 2 15:41:56 2014 UTC

# Line 96 | Line 96 | void OptionsParser::parse(){
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

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)