MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / ReloadScript

Method ReloadScript

CrySystem/ScriptObjectScript.cpp:306–318  ·  view source on GitHub ↗

!reload a specified script. If the script wasn't loaded at least once before the function will fail @param sFileName path of the script that has to be reloaded */

Source from the content-addressed store, hash-verified

304 @param sFileName path of the script that has to be reloaded
305*/
306int CScriptObjectScript::ReloadScript(IFunctionHandler *pH)
307{
308 CHECK_PARAMETERS(1);
309 const char *sFileName;
310 pH->GetParam(1,sFileName);
311
312 if(!sFileName)
313 return pH->EndFunction(); // ReloadScript filename is nil
314
315 m_pScriptSystem->ExecuteFile(sFileName,true,true);
316 //m_pScriptSystem->ReloadScript(sFileName);
317 return pH->EndFunction();
318}
319
320/*!load a specified script
321 @param sFileName path of the script that has to be loaded

Callers

nothing calls this directly

Calls 3

EndFunctionMethod · 0.80
ExecuteFileMethod · 0.80
GetParamMethod · 0.45

Tested by

no test coverage detected