Changeset 298 for AE/Installer/trunk/source/methods.h
- Timestamp:
- Apr 28, 2009, 4:45:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/methods.h
r294 r298 4 4 5 5 using namespace std; 6 6 static string SLASHSLASH = "//"; 7 static string DIRSLASH = "\\"; 7 8 struct ModPackage { 8 9 bool isInstalled; //replace with function … … 21 22 ModPackage(); 22 23 void doOutput() { 23 24 25 26 27 28 29 30 31 32 33 34 35 }24 cout << "Mod: " << name; cout << "\n"; //remove this when done 25 cout << " String: " << modStringName << " v." << modStringVersion << "\n"; 26 cout << " Category: " << category << "\n"; 27 cout << " Creator: " << creator << "\n"; 28 cout << " HasOnis: " << hasOnis << "\n"; 29 cout << " HasBSL: " << hasBSL << "\n"; 30 cout << " HasDeltas: " << hasDeltas << "\n"; 31 cout << " HasDats: " << hasDats << "\n"; 32 cout << " IsEngine: " << isEngine << "\n"; 33 cout << " GlobalNeeded: " << globalNeeded << "\n"; 34 cout << " Readme: " << readme << "\n"; 35 cout << "\n"; 36 } 36 37 37 38 }; 38 39 //Initialization 39 40 ModPackage::ModPackage() { 40 isInstalled = 0; //replace with function41 42 43 44 45 46 47 48 49 50 51 52 53 // void doOutput() const54 // { };41 isInstalled = 1; //replace with function 42 name = ""; 43 modStringName = ""; 44 modStringVersion = 0; 45 hasOnis = 0; 46 hasDeltas = 0; 47 hasBSL = 0; 48 hasDats = 0; 49 category = ""; 50 creator = ""; 51 isEngine = 0; 52 readme = ""; 53 globalNeeded = 1; 54 // void doOutput() const 55 // { }; 55 56 } 56 57 57 58 int mainMenu(); 58 59 vector<ModPackage> getPackages(); 60 vector<string> getInstallString(); 59 61 ModPackage fileToModPackage(fstream&); 60 62 … … 62 64 void uninstallPackages(); 63 65 void getInstalledPackages(); 66 void RecompileAll( vector<string>); 64 67 65 68 bool getDirectoryContents(char , char &); 66 69 67 70 //stolen token function... 68 71 void Tokenize(const string& str, 69 72 vector<string>& tokens, … … 85 88 } 86 89 } 90
Note:
See TracChangeset
for help on using the changeset viewer.