Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/GameSetup/GameSetup.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
bool g_DoRenderGui = true; | bool g_DoRenderGui = true; | ||||
bool g_DoRenderLogger = true; | bool g_DoRenderLogger = true; | ||||
bool g_DoRenderCursor = true; | bool g_DoRenderCursor = true; | ||||
shared_ptr<ScriptRuntime> g_ScriptRuntime; | shared_ptr<ScriptRuntime> g_ScriptRuntime; | ||||
static const int SANE_TEX_QUALITY_DEFAULT = 5; // keep in sync with code | static const int SANE_TEX_QUALITY_DEFAULT = 5; // keep in sync with code | ||||
static const CStr g_EventNameGameLoadProgress = "GameLoadProgress"; | |||||
bool g_InDevelopmentCopy; | bool g_InDevelopmentCopy; | ||||
bool g_CheckedIfInDevelopmentCopy = false; | bool g_CheckedIfInDevelopmentCopy = false; | ||||
static void SetTextureQuality(int quality) | static void SetTextureQuality(int quality) | ||||
{ | { | ||||
int q_flags; | int q_flags; | ||||
GLint filter; | GLint filter; | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | void GUI_DisplayLoadProgress(int percent, const wchar_t* pending_task) | ||||
JS::AutoValueVector paramData(cx); | JS::AutoValueVector paramData(cx); | ||||
paramData.append(JS::NumberValue(percent)); | paramData.append(JS::NumberValue(percent)); | ||||
JS::RootedValue valPendingTask(cx); | JS::RootedValue valPendingTask(cx); | ||||
scriptInterface.ToJSVal(cx, &valPendingTask, pending_task); | scriptInterface.ToJSVal(cx, &valPendingTask, pending_task); | ||||
paramData.append(valPendingTask); | paramData.append(valPendingTask); | ||||
g_GUI->SendEventToAll("GameLoadProgress", paramData); | g_GUI->SendEventToAll(g_EventNameGameLoadProgress, paramData); | ||||
} | } | ||||
bool ShouldRender() | bool ShouldRender() | ||||
{ | { | ||||
return !g_app_minimized && (g_app_has_focus || !g_VideoMode.IsInFullscreen()); | return !g_app_minimized && (g_app_has_focus || !g_VideoMode.IsInFullscreen()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,474 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator