Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
GameSetup.h File Reference
#include "ps/CStr.h"
#include <vector>
Include dependency graph for GameSetup.h:
This graph shows which files directly or indirectly include this file:

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 ()
 

Enumeration Type Documentation

◆ InitFlags

enum InitFlags
Enumerator
INIT_HAVE_VMODE 
INIT_NO_GUI 
INIT_MODS 
INIT_MODS_PUBLIC 

Function Documentation

◆ CancelLoad()

void CancelLoad ( const CStrW &  message)

◆ EarlyInit()

void EarlyInit ( )

initialize global modules that are be needed before Init.

must be called from the very beginning of main.

◆ EndGame()

void EndGame ( )

◆ GetMods()

const std::vector< CStr > & GetMods ( const CmdLineArgs args,
int  flags 
)

◆ InDevelopmentCopy()

bool InDevelopmentCopy ( )

◆ Init()

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.

◆ InitGraphics()

void InitGraphics ( const CmdLineArgs args,
int  flags,
const std::vector< CStr > &  installedMods,
ScriptContext scriptContext,
ScriptInterface scriptInterface 
)

ShutdownNetworkAndUI has to be called later.

◆ InitInput()

void InitInput ( )

◆ InitNonVisual()

bool InitNonVisual ( const CmdLineArgs args)

ShutdownNetworkAndUI has to be called later.

◆ InitVfs()

void InitVfs ( const CmdLineArgs args)

◆ MountMods()

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.

◆ ShutdownConfigAndSubsequent()

void ShutdownConfigAndSubsequent ( )

◆ ShutdownNetworkAndUI()

void ShutdownNetworkAndUI ( )

Has to be called before ShutdownConfigAndSubsequent.