Changeset 900
- Timestamp:
- 03/09/10 17:54:51 (5 months ago)
- Files:
-
- 1 modified
-
trunk/updater/main.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/updater/main.cpp
r899 r900 199 199 string digestFile = current_path().file_string() + "/temp_patch/DIGEST"; 200 200 FILE *digest = fopen(digestFile.c_str(), "wb"); 201 printf("Creating DIGEST file..."); 201 202 202 203 // write files to patch to digest … … 206 207 (*it).erase(0, 1); 207 208 fprintf(digest, "P %s\n", (*it).c_str()); 209 printf("P %s\n", (*it).c_str()); 208 210 } 209 211 … … 213 215 (*it).erase(0, 1); 214 216 fprintf(digest, "A %s\n", (*it).c_str()); 217 printf("A %s\n", (*it).c_str()); 215 218 } 216 219 … … 220 223 (*it).erase(0, 1); 221 224 fprintf(digest, "D %s\n", (*it).c_str()); 225 printf("D %s\n", (*it).c_str()); 222 226 } 223 227 … … 225 229 226 230 // now, we zip everything up 231 printf("Creating %s...\n", patchFile.c_str()); 227 232 HZIP hz; 228 233 … … 243 248 244 249 // remove all our temporary files 250 printf("Removing temporary directory...\n"); 245 251 remove_all("temp_patch"); 246 252 253 printf("Complete!\n"); 247 254 return 0; 248 255 }
