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

Last change on this file since 491 was 487, checked in by iritscen, 15 years ago

Adding update feature; moving/neatening some code; adding globals.h

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);
55ModPackage fileToModPackage(fstream&);
[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 = " ");
61void clearOldDats(void);
62void writeInstalledMods( vector<string> );
[462]63void copyBSL( string, vector<string>&, ModPackage );
[487]64bool ReadInstallInfoCfg(fstream *, Install_info_cfg *);
[461]65
[325]66/* End of File */
67
[487]68//End of File
[325]69
70#endif
Note: See TracBrowser for help on using the repository browser.