From e97552c2d3fa31efbc0446e2c55cb929c88f3acd Mon Sep 17 00:00:00 2001 From: chuanweizhang2013 Date: Wed, 9 Apr 2014 17:54:10 +0800 Subject: [PATCH] add reload --- .../frameworks/runtime-src/Classes/Runtime.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp b/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp index e1984c19d7..72db4b8023 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp @@ -649,6 +649,11 @@ public: bodyvalue.AddMember(objectfiles[i].GetString(),1,dReplyParse.GetAllocator()); } } + if (0 == objectfiles.Size()) + { + reloadScript(""); + } + dReplyParse.AddMember("body",bodyvalue,dReplyParse.GetAllocator()); } dReplyParse.AddMember("code",0,dReplyParse.GetAllocator());