Changeset 400 for AE/Installer
- Timestamp:
- Jul 7, 2009, 1:53:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/main_window.cpp
r399 r400 130 130 131 131 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"; 139 139 140 140 vector<path> VanillaPaths; … … 170 170 create_directory( "packages" ); 171 171 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/" ); 175 175 //blah blah finish this. 176 //logfile << " packages/VanillaDats/level0_Final/ created";176 //logfile << "VanillaDats/level0_Final/ created"; 177 177 create_directory( Characters ); 178 178 create_directory( Particles ); … … 206 206 // setStatusArea(strOniSplit + " -export ../GameDataFolder/level" + levels[i] + "_Final ../../GameDataFolder/level" + levels[i] + "_Final.dat"); 207 207 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" ); 210 210 211 211 directory_iterator end_iter; … … 287 287 cout <<dir_itr->path().filename() << "\n"; 288 288 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()); 290 290 else remove(dir_itr->path()); 291 291 } … … 316 316 //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"); 317 317 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" 319 319 + 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" 321 321 + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log"); 322 322 system(sys_str.c_str() ); … … 548 548 setStatusArea("Importing levels..."); 549 549 //setStatusArea("Recompiling Data..."); 550 path vanilla_dir = "./ packages/VanillaDats/";550 path vanilla_dir = "./VanillaDats/"; 551 551 string importCommand = ""; 552 552 char statusString[128]; … … 579 579 } 580 580 } 581 581 try { 582 582 //recursive_directory_iterator end_iter; 583 583 … … 585 585 out << numberOfDats; 586 586 datString = out.str(); 587 try {588 587 for ( recursive_directory_iterator dir_itr( vanilla_dir ); 589 588 dir_itr != end_iter; … … 599 598 importCommand += " packages/" + installedMods[i] + "/oni/" + dir_itr->path().parent_path().filename() + '/' + dir_itr->path().filename(); 600 599 601 //else cout << " packages/VanillaDats/" + installedMods[i] + "/oni/";600 //else cout << " VanillaDats/" + installedMods[i] + "/oni/"; 602 601 } 603 602 importCommand += " ../GameDataFolder/" + dir_itr->path().filename() + ".dat >> Install.log";
Note:
See TracChangeset
for help on using the changeset viewer.