Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/GameSetup/GameSetup.cpp
Show First 20 Lines • Show All 1,609 Lines • ▼ Show 20 Lines | bool AutostartVisualReplay(const std::string& replayFile) | ||||
return true; | return true; | ||||
} | } | ||||
void CancelLoad(const CStrW& message) | void CancelLoad(const CStrW& message) | ||||
{ | { | ||||
shared_ptr<ScriptInterface> pScriptInterface = g_GUI->GetActiveGUI()->GetScriptInterface(); | shared_ptr<ScriptInterface> pScriptInterface = g_GUI->GetActiveGUI()->GetScriptInterface(); | ||||
ScriptInterface::Request rq(pScriptInterface); | ScriptInterface::Request rq(pScriptInterface); | ||||
JS::RootedValue global(rq.cx, pScriptInterface->GetGlobalObject()); | JS::RootedValue global(rq.cx, rq.globalValue()); | ||||
LDR_Cancel(); | LDR_Cancel(); | ||||
if (g_GUI && | if (g_GUI && | ||||
g_GUI->GetPageCount() && | g_GUI->GetPageCount() && | ||||
pScriptInterface->HasProperty(global, "cancelOnLoadGameError")) | pScriptInterface->HasProperty(global, "cancelOnLoadGameError")) | ||||
pScriptInterface->CallFunctionVoid(global, "cancelOnLoadGameError", message); | pScriptInterface->CallFunctionVoid(global, "cancelOnLoadGameError", message); | ||||
} | } | ||||
Show All 10 Lines |
Wildfire Games · Phabricator