MCPcopy Create free account
hub / github.com/TASEmulators/fceux / startLuaScript

Method startLuaScript

src/drivers/Qt/LuaControl.cpp:418–431  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

416}
417//----------------------------------------------------
418void LuaControlDialog_t::startLuaScript(void)
419{
420#ifdef _S9XLUA_H
421 outBuf.clear();
422 FCEU_WRAPPER_LOCK();
423 if (0 == FCEU_LoadLuaCode(scriptPath->text().toStdString().c_str(), scriptArgs->text().toStdString().c_str()))
424 {
425 char error_msg[2048];
426 sprintf( error_msg, "Error: Could not open the selected lua script: '%s'\n", scriptPath->text().toStdString().c_str());
427 FCEUD_PrintError(error_msg);
428 }
429 FCEU_WRAPPER_UNLOCK();
430#endif
431}
432//----------------------------------------------------
433void LuaControlDialog_t::stopLuaScript(void)
434{

Callers

nothing calls this directly

Calls 3

FCEU_LoadLuaCodeFunction · 0.85
FCEUD_PrintErrorFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected