Ignore:
Timestamp:
Apr 28, 2009, 4:45:43 PM (16 years ago)
Author:
gumby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/Installer/trunk/source/methods.h

    r294 r298  
    44
    55using namespace std;
    6 
     6static string SLASHSLASH = "//";
     7static string DIRSLASH = "\\";
    78struct ModPackage {
    89        bool    isInstalled; //replace with function
     
    2122        ModPackage();
    2223        void doOutput() {
    23                         cout << "Mod: " << name; cout << "\n"; //remove this when done
    24                         cout << "       String: " << modStringName << " v." << modStringVersion << "\n";
    25                         cout << "       Category: " << category << "\n";
    26                         cout << "       Creator: " << creator << "\n";
    27                         cout << "       HasOnis: " << hasOnis << "\n";
    28                         cout << "       HasBSL: " << hasBSL << "\n";
    29                         cout << "       HasDeltas: " << hasDeltas << "\n";
    30                         cout << "       HasDats: " << hasDats << "\n";
    31                         cout << "       IsEngine: " << isEngine << "\n";
    32                         cout << "       GlobalNeeded: " << globalNeeded << "\n";
    33                         cout << "       Readme: " << readme << "\n";
    34                         cout << "\n";
    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        }
    3637
    3738};
    3839//Initialization
    3940ModPackage::ModPackage() {
    40                 isInstalled = 0; //replace with function
    41                 name = "";
    42                 modStringName = "";
    43                 modStringVersion = 0;
    44                 hasOnis = 0;
    45                 hasDeltas = 0;
    46                 hasBSL = 0;
    47                 hasDats = 0;
    48                 category = "";
    49                 creator = "";
    50                 isEngine = 0;
    51                 readme = "";
    52                 globalNeeded = 1;
    53 //              void doOutput() const
    54 //              { };
     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        //              { };
    5556}
    5657
    5758int mainMenu();
    5859vector<ModPackage> getPackages();
     60vector<string> getInstallString();
    5961ModPackage fileToModPackage(fstream&);
    6062
     
    6264void uninstallPackages();
    6365void getInstalledPackages();
     66void RecompileAll( vector<string>);
    6467
    6568bool getDirectoryContents(char , char &);
    6669
    67 
     70//stolen token function...
    6871void Tokenize(const string& str,
    6972                          vector<string>& tokens,
     
    8588        }
    8689}
     90
Note: See TracChangeset for help on using the changeset viewer.