| 421 |
|
iter++; |
| 422 |
|
package.modStringVersion = atof((*iter).c_str()); |
| 423 |
|
} |
| 424 |
< |
else if (!ModString.compare(*iter)) |
| 424 |
> |
else if (!ModVersion.compare(*iter)) |
| 425 |
|
{ |
| 426 |
|
iter++; iter++; |
| 427 |
|
package.modStringVersion = atof((*iter).c_str()); |
| 658 |
|
vector<string> skippedfolders; |
| 659 |
|
|
| 660 |
|
ofstream BSLlog("BSL.log"); |
| 661 |
< |
if(exists("../GameDataFolder/BSLBackup/")) { |
| 662 |
< |
remove_all("../GameDataFolder/BSLBackup/"); |
| 663 |
< |
} |
| 664 |
< |
else { |
| 661 |
> |
if(!exists("../GameDataFolder/BSLBackup/")) { |
| 662 |
|
create_directory("../GameDataFolder/BSLBackup/"); |
| 663 |
+ |
copy("../GameDataFolder/IGMD/", "../GameDataFolder/BSLBackup/"); |
| 664 |
|
} |
| 665 |
< |
copy("../GameDataFolder/IGMD/", "../GameDataFolder/BSLBackup/"); |
| 665 |
> |
|
| 666 |
|
for ( directory_iterator dir_itr( "../GameDataFolder/IGMD/" ), end_itr; |
| 667 |
|
dir_itr != end_itr; |
| 668 |
|
++dir_itr ) { |
| 763 |
|
bsl_itr != end_itr; |
| 764 |
|
bsl_itr++ ) { |
| 765 |
|
if ( bsl_itr->path().extension() == ".bsl" ) { |
| 766 |
+ |
if(exists("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename())) |
| 767 |
+ |
remove("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 768 |
|
copy_file(bsl_itr->path(), "../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 769 |
|
} |
| 770 |
|
} |