- Timestamp:
- May 27, 2010, 12:55:00 AM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/about.cpp
r542 r548 127 127 "ssg: Documenting Oni's game data"; 128 128 wxStaticText* itemStaticText5 = new wxStaticText( itemPanel3, wxID_STATIC, _(aboutText.c_str()), wxDefaultPosition, wxDefaultSize, wxNO_BORDER ); 129 129 130 itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_LEFT|wxALL, 5); 130 131 -
AE/Installer/trunk/source/installer.cpp
r543 r548 660 660 for (unsigned int j = 0; j < globalPackages.size(); ++j) { //looking in the global packages 661 661 if (globalPackages[j].modStringName == installedMods[i]) { //for a mod that has BSL in it 662 if( !(globalPackages[j].hasAddon ||globalPackages[j].hasBSL)) break; //skip non-BSL662 if(globalPackages[j].hasBSL)) break; //skip non-BSL 663 663 if( exists( "packages/" + globalPackages[j].modStringName + "/BSL/" ) ) { 664 664 copyBSL("packages/" + globalPackages[j].modStringName + "/BSL", BSLfolders, globalPackages[j] ); … … 669 669 } 670 670 671 672 671 673 ModPackage emptyPackage; 672 674 emptyPackage.modStringName = "VanillaBSL"; … … 674 676 copyBSL("packages/VanillaBSL/IGMD", BSLfolders, emptyPackage); 675 677 BSLlog.close(); 676 678 679 for (int i = installedMods.size() - 1; i >= 0; i--) { //Iterates through the installed mods (backwards :P) 680 for (unsigned int j = 0; j < globalPackages.size(); ++j) { //looking in the global packages 681 if (globalPackages[j].modStringName == installedMods[i]) { //for a mod that has BSL in it 682 if(!globalPackages[j].hasAddon) break; //skip non-BSL 683 if( exists( "packages/" + globalPackages[j].modStringName + "/BSL/" ) ) { 684 copyBSL("packages/" + globalPackages[j].modStringName + "/BSL", BSLfolders, globalPackages[j] ); 685 BSLlog << "Copied " << globalPackages[j].modStringName << "!\n"; 686 } 687 } 688 } 689 } 690 677 691 logfile << "Writing config file"; 678 692 writeInstalledMods(installedMods); … … 715 729 BSLlog << "Testing " << dir_itr->path().string() << " HasBSL: " << pkg.hasBSL << " HasAddon: " << pkg.hasAddon << "\n"; 716 730 int skip_folder = 0; 717 718 for(unsigned int k = 0; k < BSLfolders.size(); k++) {//iterate through already found BSL folders 719 BSLlog << "testing " << dir_itr->path().filename() << " vs " << BSLfolders[k] << "\n"; 720 if(dir_itr->path().filename() == BSLfolders[k]) { 721 skip_folder = 1; 722 BSLlog << "skipping " << BSLfolders[k] << " in " << pkg.modStringName << "\n"; 723 break; 731 if(!pkg.HasAddon) { 732 for(unsigned int k = 0; k < BSLfolders.size(); k++) {//iterate through already found BSL folders 733 BSLlog << "testing " << dir_itr->path().filename() << " vs " << BSLfolders[k] << "\n"; 734 if(dir_itr->path().filename() == BSLfolders[k]) { 735 skip_folder = 1; 736 BSLlog << "skipping " << BSLfolders[k] << " in " << pkg.modStringName << "\n"; 737 break; 738 } 724 739 } 725 740 }
Note:
See TracChangeset
for help on using the changeset viewer.