From 04a9b5c2c644bbff1108bbee9748f67f460668d6 Mon Sep 17 00:00:00 2001 From: chuanweizhang2013 Date: Fri, 4 Jul 2014 13:40:49 +0800 Subject: [PATCH] add setXXTEAKeyAndSign --- .../frameworks/runtime-src/Classes/AppDelegate.cpp | 2 +- templates/lua-template-runtime/runtime/config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/AppDelegate.cpp b/templates/lua-template-runtime/frameworks/runtime-src/Classes/AppDelegate.cpp index 41f4174c25..1b2efff673 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/AppDelegate.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/AppDelegate.cpp @@ -55,7 +55,7 @@ bool AppDelegate::applicationDidFinishLaunching() auto engine = LuaEngine::getInstance(); ScriptEngineManager::getInstance()->setScriptEngine(engine); - LuaStack* stack = pEngine->getLuaStack(); + LuaStack* stack = engine->getLuaStack(); stack->setXXTEAKeyAndSign("2dxLua", strlen("2dxLua"), "XXTEA", strlen("XXTEA")); //register custom function diff --git a/templates/lua-template-runtime/runtime/config.json b/templates/lua-template-runtime/runtime/config.json index 8a77b47f54..abd50a5aed 100644 --- a/templates/lua-template-runtime/runtime/config.json +++ b/templates/lua-template-runtime/runtime/config.json @@ -1,5 +1,5 @@ { - "version":"v3-lua-runtime-1.1.3", + "version":"v3-lua-runtime-1.2", "zip_file_size":"21522933", "repo_name":"cocos-runtime-bin", "repo_parent":"https://github.com/chukong/"