!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 */
| 304 | @param sFileName path of the script that has to be reloaded |
| 305 | */ |
| 306 | int 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 |
nothing calls this directly
no test coverage detected