ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/installer.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/installer.cpp (file contents):
Revision 548 by gumby, Wed May 26 22:55:00 2010 UTC vs.
Revision 549 by gumby, Wed May 26 23:04:56 2010 UTC

# Line 647 | Line 647 | void recompileAll(vector<string> install
647          vector<string> skippedfolders;
648  
649          ofstream BSLlog("BSL.log");
650 +        if(exists("../GameDataFolder/BSLBackup/")) {
651 +                remove_all("../GameDataFolder/BSLBackup/");
652 +        }
653 +        else {
654 +                create_directory("../GameDataFolder/BSLBackup/");
655 +        }
656 +        copy("../GameDataFolder/IGMD/", "../GameDataFolder/BSLBackup/");
657          for ( directory_iterator dir_itr( "../GameDataFolder/IGMD/" ), end_itr;
658                   dir_itr != end_itr;
659                   ++dir_itr ) {
# Line 659 | Line 666 | void recompileAll(vector<string> install
666          for (int i = installedMods.size() - 1; i >= 0; i--) {                                                   //Iterates through the installed mods (backwards :P)
667                  for (unsigned int j = 0; j < globalPackages.size(); ++j) {                              //looking in the global packages
668                          if (globalPackages[j].modStringName == installedMods[i]) {      //for a mod that has BSL in it
669 <                                if(globalPackages[j].hasBSL)) break; //skip non-BSL
669 >                                if(globalPackages[j].hasBSL) break; //skip non-BSL
670                                  if( exists( "packages/" + globalPackages[j].modStringName + "/BSL/" ) ) {
671                                          copyBSL("packages/" + globalPackages[j].modStringName + "/BSL", BSLfolders, globalPackages[j] );
672                                          BSLlog << "Copied " <<  globalPackages[j].modStringName << "!\n";
# Line 728 | Line 735 | void copyBSL(string copypath, vector<str
735                          if ( is_directory( dir_itr->path() ) && dir_itr->path().string() != ".svn" ) {  
736                                  BSLlog << "Testing " << dir_itr->path().string() << " HasBSL: " << pkg.hasBSL << " HasAddon: " << pkg.hasAddon << "\n";
737                                  int skip_folder = 0;
738 <                                if(!pkg.HasAddon) {
738 >                                if(!pkg.hasAddon) {
739                                          for(unsigned int k = 0; k < BSLfolders.size(); k++)             {//iterate through already found BSL folders    
740                                                  BSLlog << "testing " << dir_itr->path().filename() << " vs " << BSLfolders[k] << "\n";
741                                                  if(dir_itr->path().filename() == BSLfolders[k]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)