Ignore:
Timestamp:
Jul 7, 2009, 1:53:24 AM (15 years ago)
Author:
gumby
Message:

moved VanillaDats to install\

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/Installer/trunk/source/main_window.cpp

    r399 r400  
    130130
    131131
    132                 path VanillaCharacters = "packages/VanillaDats/level0_Final/level0_Characters/level0_Characters.oni";
    133                 path VanillaParticles = "packages/VanillaDats/level0_Final/level0_Particles/level0_Particles.oni";
    134                 path VanillaTextures  = "packages/VanillaDats/level0_Final/level0_Textures/level0_Textures.oni";
    135                 path VanillaSounds = "packages/VanillaDats/level0_Final/level0_Sounds/level0_Sounds.oni";
    136                 path VanillaAnimations = "packages/VanillaDats/level0_Final/level0_Animations/level0_Animations.oni";
    137                 path VanillaTRAC = "packages/VanillaDats/level0_Final/level0_Animations/level0_TRAC.oni";
    138                 path VanillaTRAM = "packages/VanillaDats/level0_Final/level0_Animations/level0_TRAM.oni";
     132                path VanillaCharacters = "VanillaDats/level0_Final/level0_Characters/level0_Characters.oni";
     133                path VanillaParticles = "VanillaDats/level0_Final/level0_Particles/level0_Particles.oni";
     134                path VanillaTextures  = "VanillaDats/level0_Final/level0_Textures/level0_Textures.oni";
     135                path VanillaSounds = "VanillaDats/level0_Final/level0_Sounds/level0_Sounds.oni";
     136                path VanillaAnimations = "VanillaDats/level0_Final/level0_Animations/level0_Animations.oni";
     137                path VanillaTRAC = "VanillaDats/level0_Final/level0_Animations/level0_TRAC.oni";
     138                path VanillaTRAM = "VanillaDats/level0_Final/level0_Animations/level0_TRAM.oni";
    139139
    140140                vector<path> VanillaPaths;
     
    170170                create_directory( "packages" );
    171171
    172                 if (exists("packages/VanillaDats")) remove_all("packages/VanillaDats");
    173                 create_directory( "packages/VanillaDats" );
    174                 create_directory( "packages/VanillaDats/level0_Final/" );
     172                if (exists("VanillaDats")) remove_all("VanillaDats");
     173                create_directory( "VanillaDats" );
     174                create_directory( "VanillaDats/level0_Final/" );
    175175                //blah blah finish this.
    176                 //logfile <<  "packages/VanillaDats/level0_Final/ created";
     176                //logfile <<  "VanillaDats/level0_Final/ created";
    177177                create_directory( Characters );
    178178                create_directory( Particles );
     
    206206                                //                              setStatusArea(strOniSplit + " -export ../GameDataFolder/level" + levels[i] + "_Final ../../GameDataFolder/level" + levels[i] + "_Final.dat");
    207207                                system((strOniSplit + " -export ../GameDataFolder/level" + levels[i] + "_Final ../../GameDataFolder/level" + levels[i] + "_Final.dat").c_str());
    208                                 create_directory( "packages/VanillaDats/level" + levels[i] + "_Final" );
    209                                 create_directory( "packages/VanillaDats/level" + levels[i] + "_Final/level" + levels[i] + "_Final" );
     208                                create_directory( "VanillaDats/level" + levels[i] + "_Final" );
     209                                create_directory( "VanillaDats/level" + levels[i] + "_Final/level" + levels[i] + "_Final" );
    210210
    211211                                directory_iterator end_iter;
     
    287287                                                                cout <<dir_itr->path().filename() << "\n";
    288288
    289                                                                 if(!exists( "packages/VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename())) rename(dir_itr->path(), "packages/VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename());
     289                                                                if(!exists( "VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename())) rename(dir_itr->path(), "VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename());
    290290                                                                else remove(dir_itr->path());
    291291                                                }
     
    316316                        //printf(Step_x_x,"Step %d/%d: reimporting level", parts_done + 1, 7 + 2 * num_levels); setStatusArea((string)Step_x_x + levels[i] + (string)"_Final.dat");
    317317                        setStatusArea("Step " + lexical_cast<std::string>(parts_done + 1) + "/" + lexical_cast<std::string>(total_steps) + " reimporting level" + levels[i]+"_Final.oni");
    318                         logfile << (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level"
     318                        logfile << (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final VanillaDats/level" + levels[i] + "_Final/level"
    319319                                + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log").c_str() << '\n';
    320                         string sys_str = (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level"
     320                        string sys_str = (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final VanillaDats/level" + levels[i] + "_Final/level"
    321321                                + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log");
    322322                                system(sys_str.c_str() );
     
    548548        setStatusArea("Importing levels...");
    549549        //setStatusArea("Recompiling Data...");
    550         path vanilla_dir = "./packages/VanillaDats/";
     550        path vanilla_dir = "./VanillaDats/";
    551551        string importCommand = "";
    552552        char statusString[128];
     
    579579                        }
    580580                }
    581 
     581                try {
    582582                //recursive_directory_iterator end_iter;
    583583
     
    585585                out << numberOfDats;
    586586                datString = out.str();
    587                 try {
    588587                        for ( recursive_directory_iterator dir_itr( vanilla_dir );
    589588                                dir_itr != end_iter;
     
    599598                                                                importCommand += " packages/" + installedMods[i] + "/oni/" + dir_itr->path().parent_path().filename() + '/' + dir_itr->path().filename();
    600599
    601                                                         //else cout << " packages/VanillaDats/" + installedMods[i] + "/oni/";
     600                                                        //else cout << " VanillaDats/" + installedMods[i] + "/oni/";
    602601                                                }
    603602                                                importCommand += " ../GameDataFolder/" + dir_itr->path().filename() + ".dat >> Install.log";
Note: See TracChangeset for help on using the changeset viewer.