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

Comparing AE/Installer/trunk/source/subs.cpp (file contents):
Revision 315 by gumby, Sun May 3 15:07:19 2009 UTC vs.
Revision 318 by gumby, Tue May 5 05:33:35 2009 UTC

# Line 22 | Line 22
22          #include <dirent.h>
23   #endif
24  
25 + const string strInstallerVersion = "1.0";
26 + const bool SPLIT = 1;
27 + const bool NOT_SPLIT = 0;
28 + bool splitInstances;
29 +
30   #ifdef WIN32
31          const string strOniSplit = "Onisplit.exe";
32          const string strImportOption = "-import:nosep";
# Line 37 | Line 42
42   using namespace boost::filesystem;
43   using namespace std;
44  
45 < const string strInstallerVersion = "1.0";
41 < const bool SPLIT = 1;
42 < const bool NOT_SPLIT = 0;
43 < bool splitInstances = SPLIT;
45 >
46  
47   int main(void)
48   {
49 +        if ( exists( "../GameDataFolder/level0_Final.sep" ) ) splitInstances = NOT_SPLIT;
50 +        else splitInstances = SPLIT;
51          //      SetConsoleTitle("AE Installer"); windows junk, convert to SDL
52   #ifdef WIN32    
53          system("color 0A");
# Line 546 | Line 550 | void recompileAll(vector<string> install
550          cout << "Recompiling Data...\n";
551          path vanilla_dir = "./packages/VanillaDats/";
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 +
566          if(splitInstances == SPLIT){
567                  recursive_directory_iterator end_iter;
568                  try {

Diff Legend

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