----------------------------------------------------
| 416 | } |
| 417 | //---------------------------------------------------- |
| 418 | void 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 | //---------------------------------------------------- |
| 433 | void LuaControlDialog_t::stopLuaScript(void) |
| 434 | { |
nothing calls this directly
no test coverage detected