286 |
|
else if (dir_itr->path().filename().substr(0,4) == "ONWC") { //fix for buggy ONWC overriding |
287 |
|
cout <<dir_itr->path().filename() << "\n"; |
288 |
|
|
289 |
< |
if(!exists( "packages/VanillaDats/level" + levels[i] + "_Final/level" + levels[i] + "_Final/" + dir_itr->filename())) rename(dir_itr->path(), "packages/VanillaDats/level" + levels[i] + "_Final/level" + levels[i] + "_Final/" + dir_itr->filename()); |
289 |
> |
if(!exists( "packages/VanillaDats/level0_Final/level0_Final/" + dir_itr->filename())) rename(dir_itr->path(), "packages/VanillaDats/level0_Final/level0_Final/" + dir_itr->filename()); |
290 |
|
else remove(dir_itr->path()); |
291 |
|
} |
292 |
|
if (exists(dir_itr->path())) { |
293 |
|
|
294 |
|
} |
295 |
|
else { |
296 |
< |
//logfile << "\tMoved file: " << dir_itr->path().filename() << "\n"; |
296 |
> |
logfile << "\tMoved file: " << dir_itr->path().filename() << "\n"; |
297 |
|
} |
298 |
|
} |
299 |
|
|
377 |
|
// while(1) Sleep(-1); |
378 |
|
|
379 |
|
} |
380 |
< |
catch (exception ex) { |
380 |
> |
catch (exception & ex) { |
381 |
|
setStatusArea("Warning, handled exception: " + (string)ex.what()); |
382 |
|
} |
383 |
|
|