--- AE/Installer/trunk/source/installer.h 2009/05/26 18:51:14 325 +++ AE/Installer/trunk/source/installer.h 2009/10/10 02:49:27 462 @@ -1,4 +1,4 @@ -#pragma once + #pragma once /* AE/Mod Installer header file */ #ifndef DOUBLE_HEADER #define DOUBLE_HEADER @@ -13,8 +13,7 @@ using namespace std; static string SLASHSLASH = "//"; static string DIRSLASH = "\\"; string strInstallCfg = "../GameDataFolder/Add.cfg"; - - +static string strInstallerVersion = "1.0"; #define STRUCT_DEFS struct ModPackage @@ -26,6 +25,7 @@ struct ModPackage bool hasOnis; bool hasDeltas; bool hasBSL; + bool hasAddon; bool hasDats; string category; string creator; @@ -33,6 +33,7 @@ struct ModPackage string readme; bool globalNeeded; ModPackage(); + void doOutput() { cout << "Mod: " << name; cout << "\n"; // remove this when done @@ -48,7 +49,15 @@ struct ModPackage cout << " Readme: " << readme << "\n"; cout << "\n"; } - + + bool operator < (const ModPackage &fs) const + { return (name < fs.name);} + + bool operator > (const ModPackage &fs) const + { return (name > fs.name);} + + bool operator == (const ModPackage &fs) const + { return (name == fs.name);} }; #define METHOD_DEFS @@ -62,6 +71,7 @@ ModPackage::ModPackage() hasOnis = false; hasDeltas = false; hasBSL = false; + hasAddon = false; hasDats = false; category = ""; creator = ""; @@ -90,6 +100,8 @@ void writeInstalledMods( vector void setStatusArea( string ); void setProgressBar( int ); +void copyBSL( string, vector&, ModPackage ); + //New copy(path, path) function. Too lazy to implement my own, this is basically how I would have done it though. //No, really. :) //Move to utilities.cpp when the time comes.