MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / scriptCall

Method scriptCall

Source/ScriptingEngine.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408bool cScriptingEngine::scriptCall(const std::string& pFilename) {
409
410 auto path = g_ResourceMan->GetScriptPath(pFilename);
411
412 if (path.size()) {
413 auto script = g_ResourceMan->FileReadStr(path);
414 return scriptRun(script, pFilename);
415 }
416
417 return false;
418}
419
420bool cScriptingEngine::scriptsLoadFolder(const std::string& pFolder) {
421

Callers

nothing calls this directly

Calls 3

GetScriptPathMethod · 0.80
FileReadStrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected