1
diff -aud ../libpar2-0.2-original/par2repairer.cpp ../libpar2-0.2/par2repairer.cpp
2
--- ../libpar2-0.2-original/par2repairer.cpp 2008-10-26 19:54:33.000000000 +0100
3
+++ ../libpar2-0.2/par2repairer.cpp 2008-10-29 10:24:48.000000000 +0100
5
noiselevel = CommandLine::nlNormal;
6
headers = new ParHeaders;
12
Par2Repairer::~Par2Repairer(void)
15
sig_progress.emit(newfraction);
37
for (list<string>::const_iterator s=files->begin(); s!=files->end(); ++s)
39
LoadPacketsFromFile(*s);
55
for (list<string>::const_iterator s=files->begin(); s!=files->end(); ++s)
57
LoadPacketsFromFile(*s);
73
string::npos != filename.find(".PAR2"))
75
LoadPacketsFromFile(filename);
91
@@ -1210,6 +1246,11 @@
92
sf = sortedfiles.begin();
93
while (sf != sortedfiles.end())
100
// Do we have a source file
101
Par2RepairerSourceFile *sourcefile = *sf;
103
@@ -1562,6 +1603,10 @@
104
cout << "Scanning: \"" << shortname << "\": " << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
105
sig_progress.emit(newfraction);
114
@@ -1651,6 +1696,11 @@
123
// Get the Full and 16k hash values of the file
124
filechecksummer.GetFileHashes(hashfull, hash16k);
126
@@ -2291,10 +2341,19 @@
127
cout << "Repairing: " << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
128
sig_progress.emit(newfraction);
146
@@ -2348,9 +2407,18 @@
147
cout << "Processing: " << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
148
sig_progress.emit(newfraction);
165
@@ -2362,6 +2430,11 @@
166
lastopenfile->Close();
174
if (noiselevel > CommandLine::nlQuiet)
175
cout << "Writing recovered data\r";
177
diff -aud ../libpar2-0.2-original/par2repairer.h ../libpar2-0.2/par2repairer.h
178
--- ../libpar2-0.2-original/par2repairer.h 2006-01-20 00:38:27.000000000 +0100
179
+++ ../libpar2-0.2/par2repairer.h 2008-10-26 19:01:08.000000000 +0100
181
u64 totaldata; // Total amount of data to be processed.
182
u64 totalsize; // Total data size
184
+ bool cancelled; // repair cancelled
187
#endif // __PAR2REPAIRER_H__