Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
MESSAGEHANDLER(Init) | MESSAGEHANDLER(Init) | ||||
{ | { | ||||
UNUSED2(msg); | UNUSED2(msg); | ||||
g_Quickstart = true; | g_Quickstart = true; | ||||
// Mount mods if there are any specified as command line parameters | // Mount mods if there are any specified as command line parameters | ||||
if (!Init(g_AtlasGameLoop->args, g_InitFlags | INIT_MODS|INIT_MODS_PUBLIC)) | int flags = g_InitFlags | INIT_MODS | INIT_MODS_PUBLIC; | ||||
if (!Init(g_AtlasGameLoop->args, flags)) | |||||
{ | { | ||||
// There are no mods specified on the command line, | // There are no mods specified on the command line, | ||||
// but there are in the config file, so mount those. | // but there are in the config file, so mount those. | ||||
Shutdown(SHUTDOWN_FROM_CONFIG); | Shutdown(SHUTDOWN_FROM_CONFIG); | ||||
ENSURE(Init(g_AtlasGameLoop->args, g_InitFlags)); | //TODO: Init might set INIT_MODS_INFORM_INCOMPATIBLE flag, | ||||
// show that information in atlas | |||||
int initFlags = g_InitFlags; | |||||
ENSURE(Init(g_AtlasGameLoop->args, initFlags)); | |||||
} | } | ||||
// Initialise some graphics state for Atlas. | // Initialise some graphics state for Atlas. | ||||
// (This must be done after Init loads the config DB, | // (This must be done after Init loads the config DB, | ||||
// but before the UI constructs its GL canvases.) | // but before the UI constructs its GL canvases.) | ||||
g_VideoMode.InitNonSDL(); | g_VideoMode.InitNonSDL(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator