| 183 | } |
| 184 | |
| 185 | bool AppScripting::eval(const std::string& code) { |
| 186 | initEngine(); |
| 187 | if (engine) { |
| 188 | return engine->eval(code); |
| 189 | } |
| 190 | inject<script::EngineDelegate>{}->onConsolePrint("No compatible scripting engine."); |
| 191 | return false; |
| 192 | } |
| 193 | |
| 194 | bool AppScripting::evalFile(const std::string& fileName) { |
| 195 | m_fileName = fileName; |
no test coverage detected