Pyrogenesis  trunk
Enumerations | Functions
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_HAVE_DISPLAY_ERROR = 4, INIT_MODS = 8,
  INIT_MODS_PUBLIC = 16
}
 
enum  ShutdownFlags { SHUTDOWN_FROM_CONFIG = 1 }
 

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...
 
bool Init (const CmdLineArgs &args, int flags)
 Returns true if successful, false if mods changed and restart_engine was called. More...
 
void InitInput ()
 
void InitGraphics (const CmdLineArgs &args, int flags, const std::vector< CStr > &installedMods=std::vector< CStr >())
 
bool InitNonVisual (const CmdLineArgs &args)
 
void Shutdown (int flags)
 
void CancelLoad (const CStrW &message)
 
bool InDevelopmentCopy ()
 

Enumeration Type Documentation

◆ InitFlags

enum InitFlags
Enumerator
INIT_HAVE_VMODE 
INIT_NO_GUI 
INIT_HAVE_DISPLAY_ERROR 
INIT_MODS 
INIT_MODS_PUBLIC 

◆ ShutdownFlags

Enumerator
SHUTDOWN_FROM_CONFIG 

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 mods changed and restart_engine was called.

In the latter case the caller should call Shutdown() with SHUTDOWN_FROM_CONFIG.

◆ InitGraphics()

void InitGraphics ( const CmdLineArgs args,
int  flags,
const std::vector< CStr > &  installedMods = std::vector< CStr >() 
)

◆ InitInput()

void InitInput ( )

◆ InitNonVisual()

bool InitNonVisual ( 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.

◆ Shutdown()

void Shutdown ( int  flags)