source: AE/Installer/trunk/source/installer.h@ 865

Last change on this file since 865 was 505, checked in by gumby, 15 years ago

More improvements.

File size: 2.2 KB
Line 
1/***************************************************************************\
2| Project: AE Installer |
3| By: Gumby & Iritscen |
4| File: Installer.h |
5| Function: Contains the real meat of the installation process. |
6| Created: 24/05/2009 19:39:00 |
7\***************************************************************************/
8
9#ifndef DOUBLE_HEADER
10#define DOUBLE_HEADER
11
12#include <string>
13#include <vector>
14#include <iostream>
15#include "globals.h"
16#ifdef WIN32
17#ifndef __GUICON_H__
18#define __GUICON_H__
19#endif
20#include <fstream>
21#include <windows.h>
22#include <stdio.h>
23#include <fcntl.h>
24#include <io.h>
25
26void RedirectIOToConsole();
27// maximum mumber of lines the output console should have
28static const WORD MAX_CONSOLE_LINES = 500;
29#endif
30
31
32#pragma mark GLOBALS
33static string SLASHSLASH = "//";
34static string DIRSLASH = "\\";
35extern bool busy;
36extern string strInstallCfg;// = "../GameDataFolder/Add.cfg";
37extern Install_info_cfg currentAE, updateAE;
38extern bool splitInstances;
39extern string strImportOption;
40extern string strOniSplit;
41extern vector<ModPackage> globalPackages;
42extern string strEUFN; // I don't mind long variable names, but even I think strEditionUpdateFolderName is a bit much
43#ifndef WIN32
44void Sleep(int ms); // crudely converts the Windows sleep() call, which operates in ms, to the Mac sleep() call that operates in seconds
45#endif
46
47
48#pragma mark PROTOTYPES
49int mainMenu(void);
50vector<string> getInstallString(string = strInstallCfg);
51int installPackages(void);
52int uninstallPackages(void);
53int listInstalledPackages(void);
54int printInstallerInfo(void);
55ModPackage fileToModPackage(fstream&, string);
56bool StringIsLegalPathForDeletion(string);
57vector<ModPackage> getPackages(string packageDir = "./packages");
58void MakePathLocalToGlobalize(string*);
59bool SortBySize(string, string);
60void tokenize(const string&, vector<string>&, const string& delimiters = " ");
61void StripNewlines(string *);
62void clearOldDats(void);
63void writeInstalledMods( vector<string> );
64void copyBSL( string, vector<string>&, ModPackage );
65bool ReadInstallInfoCfg(fstream *, Install_info_cfg *);
66
67/* End of File */
68
69//End of File
70
71#endif
Note: See TracBrowser for help on using the repository browser.