@@ -1,3 +1,7 @@ | |||||
### 1.2.0 (in development) | |||||
- Add Lua script engine. | |||||
- Add security warning when loading script from patch or module preset. | |||||
### 1.1.1 (2019-09-27) | ### 1.1.1 (2019-09-27) | ||||
- Switch JavaScript engine to QuickJS from Duktape. Supports ES2020 and is ~2x faster. | - Switch JavaScript engine to QuickJS from Duktape. Supports ES2020 and is ~2x faster. | ||||
- Automatically reload script when script file changes. | - Automatically reload script when script file changes. | ||||
@@ -70,8 +70,7 @@ $(luajit): | |||||
$(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz" | $(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz" | ||||
$(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979 | $(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979 | ||||
cd dep && $(UNTAR) ../LuaJIT-2.0.5.tar.gz | cd dep && $(UNTAR) ../LuaJIT-2.0.5.tar.gz | ||||
cd dep/LuaJIT-2.0.5 && $(MAKE) | |||||
cd dep/LuaJIT-2.0.5 && $(MAKE) PREFIX="$(DEP_PATH)" install | |||||
cd dep/LuaJIT-2.0.5 && $(MAKE) BUILDMODE=static PREFIX="$(DEP_PATH)" install | |||||
endif | endif | ||||
# Python | # Python | ||||
@@ -59,7 +59,7 @@ __attribute__((constructor(1000))) | |||||
template<typename TScriptEngine> | template<typename TScriptEngine> | ||||
void addScriptEngine(std::string extension) { | void addScriptEngine(std::string extension) { | ||||
struct TScriptEngineFactory : ScriptEngineFactory { | struct TScriptEngineFactory : ScriptEngineFactory { | ||||
ScriptEngine* createScriptEngine() { | |||||
ScriptEngine* createScriptEngine() override { | |||||
return new TScriptEngine; | return new TScriptEngine; | ||||
} | } | ||||
}; | }; | ||||