Ignore:
Timestamp:
May 5, 2009, 7:33:35 AM (16 years ago)
Author:
gumby
Message:
 
File:
1 edited

Legend:

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

    r315 r318  
    2222        #include <dirent.h>
    2323#endif
     24
     25const string strInstallerVersion = "1.0";
     26const bool SPLIT = 1;
     27const bool NOT_SPLIT = 0;
     28bool splitInstances;
    2429
    2530#ifdef WIN32
     
    3843using namespace std;
    3944
    40 const string strInstallerVersion = "1.0";
    41 const bool SPLIT = 1;
    42 const bool NOT_SPLIT = 0;
    43 bool splitInstances = SPLIT;
     45
    4446
    4547int main(void)
    4648{
     49        if ( exists( "../GameDataFolder/level0_Final.sep" ) ) splitInstances = NOT_SPLIT;
     50        else splitInstances = SPLIT;
    4751        //      SetConsoleTitle("AE Installer"); windows junk, convert to SDL
    4852#ifdef WIN32   
     
    547551        path vanilla_dir = "./packages/VanillaDats/";
    548552        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
    549566        if(splitInstances == SPLIT){
    550567                recursive_directory_iterator end_iter;
Note: See TracChangeset for help on using the changeset viewer.