--- AE/Installer/trunk/source/installer.cpp 2010/05/29 02:09:04 553 +++ AE/Installer/trunk/source/installer.cpp 2010/05/29 19:21:27 558 @@ -421,7 +421,7 @@ ModPackage fileToModPackage(fstream &fil iter++; package.modStringVersion = atof((*iter).c_str()); } - else if (!ModString.compare(*iter)) + else if (!ModVersion.compare(*iter)) { iter++; iter++; package.modStringVersion = atof((*iter).c_str()); @@ -757,7 +757,7 @@ void copyBSL(string copypath, vectorpath().filename() + "/ignore.txt")) { - remove_all( "../GameDataFolder/IGMD/" + dir_itr->path().filename() ); + if(!pkg.hasAddon) remove_all( "../GameDataFolder/IGMD/" + dir_itr->path().filename() ); Sleep(100); create_directory( "../GameDataFolder/IGMD/" + dir_itr->path().filename()); BSLlog << "Copied " << dir_itr->path().string() << " in " << pkg.modStringName << "!\n"; @@ -765,6 +765,8 @@ void copyBSL(string copypath, vectorpath().extension() == ".bsl" ) { + if(exists("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename())) + remove("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); copy_file(bsl_itr->path(), "../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); } }