Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 1 file). Show all
Unified · Split
| @@ -715,10 +715,6 @@ void ScriptManager::init() { · 714 unmodified lines | |||
| 715 | scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this)); | 715 | scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this)); |
| 716 | #endif | 716 | #endif |
| 717 | 717 | ||
| 718 | scriptEngine->globalObject().setProperty("KALILA", "isWaifu"); | ||
| 719 | scriptEngine->globalObject().setProperty("Kute", scriptEngine->newFunction([](ScriptContext* context, ScriptEngine* engine) -> ScriptValue { | ||
| 720 | return context->engine()->newValue(context->argument(0).toString().toLower() == "kalila" ? true : false); | ||
| 721 | })); | ||
| 722 | } | 718 | } |
| 723 | 719 | ||
| 724 | // registers a global object by name | 720 | // registers a global object by name |