MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Poll

Method Poll

Source/ScriptStatus.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ScriptStatus::Poll()
73{
74 if (ScriptModule::sHasPythonEverSuccessfullyInitialized)
75 ScriptModule::InitializePythonIfNecessary();
76
77 if (!ScriptModule::sPythonInitialized)
78 return;
79
80 if (gTime > mNextUpdateTime)
81 {
82 mStatus = py::str(py::globals());
83 ofStringReplace(mStatus, ",", "\n");
84 mNextUpdateTime = gTime + 100;
85 }
86}
87
88void ScriptStatus::DrawModule()
89{

Callers

nothing calls this directly

Calls 1

ofStringReplaceFunction · 0.85

Tested by

no test coverage detected