| 1 |
< |
#pragma once |
| 1 |
> |
#pragma once |
| 2 |
|
/* AE/Mod Installer header file */ |
| 3 |
|
#ifndef DOUBLE_HEADER |
| 4 |
|
#define DOUBLE_HEADER |
| 13 |
|
static string SLASHSLASH = "//"; |
| 14 |
|
static string DIRSLASH = "\\"; |
| 15 |
|
string strInstallCfg = "../GameDataFolder/Add.cfg"; |
| 16 |
< |
|
| 17 |
< |
|
| 16 |
> |
static string strInstallerVersion = "1.0"; |
| 17 |
|
|
| 18 |
|
#define STRUCT_DEFS |
| 19 |
|
struct ModPackage |
| 25 |
|
bool hasOnis; |
| 26 |
|
bool hasDeltas; |
| 27 |
|
bool hasBSL; |
| 28 |
+ |
bool hasAddon; |
| 29 |
|
bool hasDats; |
| 30 |
|
string category; |
| 31 |
|
string creator; |
| 33 |
|
string readme; |
| 34 |
|
bool globalNeeded; |
| 35 |
|
ModPackage(); |
| 36 |
+ |
|
| 37 |
|
void doOutput() |
| 38 |
|
{ |
| 39 |
|
cout << "Mod: " << name; cout << "\n"; // remove this when done |
| 49 |
|
cout << " Readme: " << readme << "\n"; |
| 50 |
|
cout << "\n"; |
| 51 |
|
} |
| 52 |
< |
|
| 53 |
< |
bool operator < (const ModPackage &fs) |
| 52 |
> |
|
| 53 |
> |
bool operator < (const ModPackage &fs) const |
| 54 |
|
{ return (name < fs.name);} |
| 55 |
|
|
| 56 |
< |
bool operator > (const ModPackage &fs) |
| 56 |
> |
bool operator > (const ModPackage &fs) const |
| 57 |
|
{ return (name > fs.name);} |
| 58 |
|
|
| 59 |
< |
bool operator == (const ModPackage &fs) |
| 59 |
> |
bool operator == (const ModPackage &fs) const |
| 60 |
|
{ return (name == fs.name);} |
| 61 |
|
}; |
| 62 |
|
|
| 71 |
|
hasOnis = false; |
| 72 |
|
hasDeltas = false; |
| 73 |
|
hasBSL = false; |
| 74 |
+ |
hasAddon = false; |
| 75 |
|
hasDats = false; |
| 76 |
|
category = ""; |
| 77 |
|
creator = ""; |
| 100 |
|
void setStatusArea( string ); |
| 101 |
|
void setProgressBar( int ); |
| 102 |
|
|
| 103 |
+ |
void copyBSL( string, vector<string>, ModPackage ); |
| 104 |
+ |
|
| 105 |
|
//New copy(path, path) function. Too lazy to implement my own, this is basically how I would have done it though. |
| 106 |
|
//No, really. :) |
| 107 |
|
//Move to utilities.cpp when the time comes. |