Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Go to the source code of this file.
Enumerations | |
enum | InitFlags { INIT_HAVE_VMODE = 1 , INIT_NO_GUI = 2 , INIT_MODS = 8 , INIT_MODS_PUBLIC = 16 } |
Functions | |
void | EarlyInit () |
initialize global modules that are be needed before Init. More... | |
void | EndGame () |
const std::vector< CStr > & | GetMods (const CmdLineArgs &args, int flags) |
void | MountMods (const Paths &paths, const std::vector< CStr > &mods) |
Mounts all files of the given mods in the global VFS. More... | |
void | InitVfs (const CmdLineArgs &args) |
bool | Init (const CmdLineArgs &args, int flags) |
Returns true if successful, false if Init is aborted early (for instance if mods changed, or if we are using -dumpSchema). More... | |
void | InitInput () |
void | InitGraphics (const CmdLineArgs &args, int flags, const std::vector< CStr > &installedMods, ScriptContext &scriptContext, ScriptInterface &scriptInterface) |
ShutdownNetworkAndUI has to be called later. More... | |
bool | InitNonVisual (const CmdLineArgs &args) |
ShutdownNetworkAndUI has to be called later. More... | |
void | ShutdownNetworkAndUI () |
Has to be called before ShutdownConfigAndSubsequent . More... | |
void | ShutdownConfigAndSubsequent () |
void | CancelLoad (const CStrW &message) |
bool | InDevelopmentCopy () |
enum InitFlags |
void CancelLoad | ( | const CStrW & | message | ) |
void EarlyInit | ( | ) |
initialize global modules that are be needed before Init.
must be called from the very beginning of main.
void EndGame | ( | ) |
const std::vector< CStr > & GetMods | ( | const CmdLineArgs & | args, |
int | flags | ||
) |
bool InDevelopmentCopy | ( | ) |
bool Init | ( | const CmdLineArgs & | args, |
int | flags | ||
) |
Returns true if successful, false if Init is aborted early (for instance if mods changed, or if we are using -dumpSchema).
ShutdownConfigAndSubsequent
has to be called later.
void InitGraphics | ( | const CmdLineArgs & | args, |
int | flags, | ||
const std::vector< CStr > & | installedMods, | ||
ScriptContext & | scriptContext, | ||
ScriptInterface & | scriptInterface | ||
) |
ShutdownNetworkAndUI
has to be called later.
void InitInput | ( | ) |
bool InitNonVisual | ( | const CmdLineArgs & | args | ) |
ShutdownNetworkAndUI
has to be called later.
void InitVfs | ( | const CmdLineArgs & | args | ) |
void MountMods | ( | const Paths & | paths, |
const std::vector< CStr > & | mods | ||
) |
Mounts all files of the given mods in the global VFS.
Make sure to call CacheEnabledModVersions after every call to this.
void ShutdownConfigAndSubsequent | ( | ) |
void ShutdownNetworkAndUI | ( | ) |
Has to be called before ShutdownConfigAndSubsequent
.