| 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()); |
| 757 |
|
} |
| 758 |
|
} |
| 759 |
|
if (!skip_folder && !exists("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/ignore.txt")) { |
| 760 |
< |
remove_all( "../GameDataFolder/IGMD/" + dir_itr->path().filename() ); |
| 760 |
> |
if(!pkg.hasAddon) remove_all( "../GameDataFolder/IGMD/" + dir_itr->path().filename() ); |
| 761 |
|
Sleep(100); |
| 762 |
|
create_directory( "../GameDataFolder/IGMD/" + dir_itr->path().filename()); |
| 763 |
|
BSLlog << "Copied " << dir_itr->path().string() << " in " << pkg.modStringName << "!\n"; |
| 765 |
|
bsl_itr != end_itr; |
| 766 |
|
bsl_itr++ ) { |
| 767 |
|
if ( bsl_itr->path().extension() == ".bsl" ) { |
| 768 |
+ |
if(exists("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename())) |
| 769 |
+ |
remove("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 770 |
|
copy_file(bsl_itr->path(), "../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 771 |
|
} |
| 772 |
|
} |