MCPcopy Create free account
hub / github.com/Svxy/The-Simpsons-Hit-and-Run / ExecuteScript

Method ExecuteScript

game/code/console/console.cpp:2214–2227  ·  view source on GitHub ↗

============================================================================== Console::ExecuteScript ============================================================================== Description: Parameters: Return: ==============================================================================

Source from the content-addressed store, hash-verified

2212//
2213//==============================================================================
2214void Console::ExecuteScript
2215(
2216 const char* filename,
2217 Console::ExecuteScriptCallback* pCallback,
2218 void* pUserData,
2219 bool reload
2220)
2221{
2222 rTuneAssert( filename != 0 );
2223 rTuneAssert( pCallback != 0 );
2224
2225 mpCallback = pCallback;
2226 GetLoadingManager()->AddRequest( FILEHANDLER_CONSOLE, filename, HeapMgr()->GetCurrentHeap(), this, pUserData );
2227}
2228
2229//==============================================================================
2230// Console::OnProcessRequestsComplete

Callers 1

LoadScriptAsyncMethod · 0.80

Calls 4

GetLoadingManagerFunction · 0.85
HeapMgrFunction · 0.85
GetCurrentHeapMethod · 0.80
AddRequestMethod · 0.45

Tested by

no test coverage detected