Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/GameSetup/GameSetup.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
* enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style | * enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style | ||||
*/ | */ | ||||
extern void RenderCursor(bool RenderingState); | extern void RenderCursor(bool RenderingState); | ||||
class CmdLineArgs; | class CmdLineArgs; | ||||
class Paths; | class Paths; | ||||
extern const std::vector<CStr>& GetMods(const CmdLineArgs& args, int flags); | extern const std::vector<CStr>& GetMods(const CmdLineArgs& args, int flags); | ||||
/** | |||||
* Mounts all files of the given mods in the global VFS. | |||||
* Make sure to call CacheEnabledModVersions after every call to this. | |||||
*/ | |||||
extern void MountMods(const Paths& paths, const std::vector<CStr>& mods); | extern void MountMods(const Paths& paths, const std::vector<CStr>& mods); | ||||
/** | /** | ||||
* Returns true if successful, false if mods changed and restart_engine was called. | * 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. | * In the latter case the caller should call Shutdown() with SHUTDOWN_FROM_CONFIG. | ||||
*/ | */ | ||||
extern bool Init(const CmdLineArgs& args, int flags); | extern bool Init(const CmdLineArgs& args, int flags); | ||||
extern void InitGraphics(const CmdLineArgs& args, int flags, | extern void InitGraphics(const CmdLineArgs& args, int flags, | ||||
const std::vector<CStr>& installedMods = std::vector<CStr>()); | const std::vector<CStr>& installedMods = std::vector<CStr>()); | ||||
extern void InitNonVisual(const CmdLineArgs& args); | extern void InitNonVisual(const CmdLineArgs& args); | ||||
extern void Shutdown(int flags); | extern void Shutdown(int flags); | ||||
extern void CancelLoad(const CStrW& message); | extern void CancelLoad(const CStrW& message); | ||||
extern bool InDevelopmentCopy(); | extern bool InDevelopmentCopy(); | ||||
#endif // INCLUDED_GAMESETUP | #endif // INCLUDED_GAMESETUP |
Wildfire Games · Phabricator