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

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

More improvements.

File size: 2.2 KB
RevLine 
[487]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
[325]9#ifndef DOUBLE_HEADER
10#define DOUBLE_HEADER
11
12#include <string>
13#include <vector>
[487]14#include <iostream>
15#include "globals.h"
16#ifdef WIN32
17#ifndef __GUICON_H__
18#define __GUICON_H__
19#endif
[325]20#include <fstream>
[487]21#include <windows.h>
22#include <stdio.h>
23#include <fcntl.h>
24#include <io.h>
[325]25
[487]26void RedirectIOToConsole();
27// maximum mumber of lines the output console should have
28static const WORD MAX_CONSOLE_LINES = 500;
29#endif
[325]30
[487]31
32#pragma mark GLOBALS
[325]33static string SLASHSLASH = "//";
34static string DIRSLASH = "\\";
[487]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
[325]46
[461]47
[487]48#pragma mark PROTOTYPES
[325]49int mainMenu(void);
[487]50vector<string> getInstallString(string = strInstallCfg);
[325]51int installPackages(void);
52int uninstallPackages(void);
53int listInstalledPackages(void);
54int printInstallerInfo(void);
[505]55ModPackage fileToModPackage(fstream&, string);
[487]56bool StringIsLegalPathForDeletion(string);
57vector<ModPackage> getPackages(string packageDir = "./packages");
58void MakePathLocalToGlobalize(string*);
59bool SortBySize(string, string);
[325]60void tokenize(const string&, vector<string>&, const string& delimiters = " ");
[499]61void StripNewlines(string *);
[325]62void clearOldDats(void);
63void writeInstalledMods( vector<string> );
[462]64void copyBSL( string, vector<string>&, ModPackage );
[487]65bool ReadInstallInfoCfg(fstream *, Install_info_cfg *);
[461]66
[325]67/* End of File */
68
[487]69//End of File
[325]70
71#endif
Note: See TracBrowser for help on using the repository browser.