MCPcopy Create free account
hub / github.com/danomatika/ofxLua / loadScript

Method loadScript

luaExample/src/ofApp.cpp:130–136  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

128
129//--------------------------------------------------------------
130void ofApp::loadScript(std::string &script) {
131 // exit, reinit the lua state, and load the script
132 lua.scriptExit();
133 lua.init(); // abort on error
134 lua.doScript(script, true);
135 lua.scriptSetup();
136}
137
138void ofApp::reloadScript() {
139 loadScript(scripts[currentScript]);

Callers

nothing calls this directly

Calls 4

scriptExitMethod · 0.80
initMethod · 0.80
doScriptMethod · 0.80
scriptSetupMethod · 0.80

Tested by

no test coverage detected