18#ifndef INCLUDED_GAMESETUP
19#define INCLUDED_GAMESETUP
29namespace Script {
class Context; }
30namespace Script {
class Interface; }
65extern void MountMods(
const Paths& paths,
const std::vector<CStr>& mods);
void MountMods(const Paths &paths, const std::vector< CStr > &mods)
Mounts all files of the given mods in the global VFS.
Definition: GameSetup.cpp:159
bool InitNonVisual(const CmdLineArgs &args)
ShutdownNetworkAndUI has to be called later.
Definition: GameSetup.cpp:661
void EarlyInit()
initialize global modules that are be needed before Init.
Definition: GameSetup.cpp:459
void EndGame()
Definition: GameSetup.cpp:315
bool Init(const CmdLineArgs &args, int flags)
Returns true if successful, false if Init is aborted early (for instance if mods changed,...
Definition: GameSetup.cpp:487
std::unique_ptr< InputHandlers > InitGraphics(const CmdLineArgs &args, int flags, const std::vector< CStr > &installedMods, Script::Context &scriptContext, Script::Interface &scriptInterface)
ShutdownNetworkAndUI has to be called later.
Definition: GameSetup.cpp:595
bool InDevelopmentCopy()
Definition: GameSetup.cpp:883
std::queue< Input::Handler< Input::Reaction(&)(const SDL_Event &)> > InputHandlers
Definition: GameSetup.h:76
void CancelLoad(const CStrW &message)
Definition: GameSetup.cpp:868
void ShutdownNetworkAndUI()
Has to be called before ShutdownConfigAndSubsequent.
Definition: GameSetup.cpp:328
std::unique_ptr< InputHandlers > MakeInputHandlers()
Definition: GameSetup.cpp:248
void InitVfs(const CmdLineArgs &args)
Definition: GameSetup.cpp:191
const std::vector< CStr > & GetMods(const CmdLineArgs &args, int flags)
InitFlags
Definition: GameSetup.h:41
@ INIT_MODS
Definition: GameSetup.h:52
@ INIT_MODS_PUBLIC
Definition: GameSetup.h:56
@ INIT_NO_GUI
Definition: GameSetup.h:49
@ INIT_HAVE_VMODE
Definition: GameSetup.h:45
void ShutdownConfigAndSubsequent()
Definition: GameSetup.cpp:362
Definition: CmdLineArgs.h:31
Wrapper class for OS paths used by the game.
Definition: Paths.h:29
Definition: Interface.h:93
Abstraction around a SpiderMonkey JSContext.
Definition: DapInterface.h:32