2020-04-12 06:21:50 +00:00
|
|
|
#include "i_interface.h"
|
2022-06-06 09:45:02 +00:00
|
|
|
#include "st_start.h"
|
2022-10-02 18:33:18 +00:00
|
|
|
#include "gamestate.h"
|
|
|
|
#include "startupinfo.h"
|
|
|
|
#include "c_cvars.h"
|
|
|
|
#include "gstrings.h"
|
2020-04-12 06:21:50 +00:00
|
|
|
|
2022-07-02 07:30:37 +00:00
|
|
|
static_assert(sizeof(void*) == 8, "32 builds are not supported");
|
|
|
|
|
2020-04-23 19:18:40 +00:00
|
|
|
// Some global engine variables taken out of the backend code.
|
2022-06-06 09:45:02 +00:00
|
|
|
FStartupScreen* StartWindow;
|
2020-10-03 15:04:45 +00:00
|
|
|
SystemCallbacks sysCallbacks;
|
2020-04-23 19:18:40 +00:00
|
|
|
FString endoomName;
|
|
|
|
bool batchrun;
|
2020-09-27 08:03:53 +00:00
|
|
|
float menuBlurAmount;
|
2020-04-23 19:18:40 +00:00
|
|
|
|
2022-10-02 18:33:18 +00:00
|
|
|
bool AppActive = true;
|
|
|
|
int chatmodeon;
|
|
|
|
gamestate_t gamestate = GS_STARTUP;
|
|
|
|
bool ToggleFullscreen;
|
|
|
|
int paused;
|
|
|
|
bool pauseext;
|
|
|
|
|
|
|
|
FStartupInfo GameStartupInfo;
|
|
|
|
|
|
|
|
CVAR(Bool, queryiwad, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
|
|
|
|
CVAR(String, defaultiwad, "", CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
|
|
|
|
CVAR(Bool, vid_fps, false, 0)
|
|
|
|
|
|
|
|
EXTERN_CVAR(Bool, ui_generic)
|
|
|
|
|
|
|
|
CUSTOM_CVAR(String, language, "auto", CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
|
|
|
{
|
|
|
|
GStrings.UpdateLanguage(self);
|
|
|
|
UpdateGenericUI(ui_generic);
|
|
|
|
if (sysCallbacks.LanguageChanged) sysCallbacks.LanguageChanged(self);
|
|
|
|
}
|
|
|
|
|