Changeset 320 for AE/Installer
- Timestamp:
- May 5, 2009, 8:56:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/subs.cpp
r319 r320 43 43 using namespace std; 44 44 45 string strInstallCfg = "../GameDataFolder/ Install.cfg";45 string strInstallCfg = "../GameDataFolder/Add.cfg"; 46 46 47 47 … … 49 49 { 50 50 if ( exists( "../GameDataFolder/level0_Final.sep" ) ) splitInstances = NOT_SPLIT; 51 else splitInstances = SPLIT;51 else splitInstances = NOT_SPLIT; 52 52 // SetConsoleTitle("AE Installer"); windows junk, convert to SDL 53 53 #ifdef WIN32 … … 68 68 { 69 69 if( exists( "../GameDataFolder" ) ) { 70 cout << "\n1. Installnew packages\n";71 cout << "2. Uninstallpackages\n";70 cout << "\n1. Add new packages\n"; 71 cout << "2. Remove packages\n"; 72 72 cout << "3. See what is installed\n"; 73 73 cout << "4. Globalize data\n"; … … 341 341 << (*package_iter).readme << "\n\n" 342 342 << "Please enter a number choice\n" 343 << " 1. Install\n"344 << " 2. Don't Install\n"343 << " 1. Add\n" 344 << " 2. Don't Add\n" 345 345 << ""; 346 346 index++; … … 373 373 if (installed_something == 0) 374 374 { 375 cout << "Warning: You didn't installanything!\n";375 cout << "Warning: You didn't add anything!\n"; 376 376 //would you like to recombine your data? 377 377 return 0; … … 424 424 << (*package_iter).readme << "\n\n" 425 425 << "Please enter a number choice\n" 426 << " 1. Uninstall\n"427 << " 2. Don't Uninstall\n"426 << " 1. Remove\n" 427 << " 2. Don't Remove\n" 428 428 << ""; 429 429 … … 457 457 else 458 458 { 459 cout << "\nWarning: You didn't uninstallanything!";459 cout << "\nWarning: You didn't remove anything!"; 460 460 } 461 461 //would you like to recombine your data? … … 674 674 cout << "Warning, exception " << ex.what() << "!\n" 675 675 << "You probably need to re-globalize."; 676 create_directory( "./packages/VanillaDats" );676 //create_directory( "./packages/VanillaDats" ); 677 677 } 678 678 … … 688 688 if ( is_directory( dir_itr->status() ) ) 689 689 { 690 system((strOniSplit + " " + strImportOption + " " + vanilla_dir.string() + dir_itr->path().filename() + " " + "../GameDataFolder/" + dir_itr->path().filename() 691 + ".dat").c_str()); 690 importCommand = strOniSplit + " " + strImportOption + " " + vanilla_dir.string() + dir_itr->path().filename() + " " + "../GameDataFolder/" + dir_itr->path().filename() 691 + ".dat"; 692 for (int i = 0; i < installedMods.size(); ++i) { 693 if (exists("packages/" + installedMods[i] + "/oni/" + dir_itr->path().filename() )) 694 importCommand += " packages/" + installedMods[i] + "/oni/" + dir_itr->path().filename(); 695 } 696 importCommand += " ../GameDataFolder/" + dir_itr->path().filename() + ".dat"; 697 system(importCommand.c_str()); 692 698 } 693 699 }
Note:
See TracChangeset
for help on using the changeset viewer.