- Timestamp:
- May 5, 2009, 7:33:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/subs.cpp
r315 r318 22 22 #include <dirent.h> 23 23 #endif 24 25 const string strInstallerVersion = "1.0"; 26 const bool SPLIT = 1; 27 const bool NOT_SPLIT = 0; 28 bool splitInstances; 24 29 25 30 #ifdef WIN32 … … 38 43 using namespace std; 39 44 40 const string strInstallerVersion = "1.0"; 41 const bool SPLIT = 1; 42 const bool NOT_SPLIT = 0; 43 bool splitInstances = SPLIT; 45 44 46 45 47 int main(void) 46 48 { 49 if ( exists( "../GameDataFolder/level0_Final.sep" ) ) splitInstances = NOT_SPLIT; 50 else splitInstances = SPLIT; 47 51 // SetConsoleTitle("AE Installer"); windows junk, convert to SDL 48 52 #ifdef WIN32 … … 547 551 path vanilla_dir = "./packages/VanillaDats/"; 548 552 string importCommand = ""; 553 554 directory_iterator end_iter_gdf; 555 for ( directory_iterator dir_itr_gdf( "../GameDataFolder" ); 556 dir_itr_gdf != end_iter_gdf; 557 ++dir_itr_gdf ) 558 { 559 //cout << dir_itr_gdf->path().extension() << "\n"; 560 if ( dir_itr_gdf->path().extension() == ".dat" || dir_itr_gdf->path().extension() == ".raw" || dir_itr_gdf->path().extension() == ".sep" ) { 561 remove( dir_itr_gdf->path() ); 562 } 563 564 } 565 549 566 if(splitInstances == SPLIT){ 550 567 recursive_directory_iterator end_iter;
Note:
See TracChangeset
for help on using the changeset viewer.