summaryrefslogtreecommitdiff
path: root/Resources/boot.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-26 00:19:10 +0800
committerchai <chaifix@163.com>2021-10-26 00:19:10 +0800
commit3c4c41d72c21e56a7d5d19dd92f73be29397e7f0 (patch)
treef4d57a8dee33d8df88fed5cb36d667acc79a4ba1 /Resources/boot.lua
parent7ecf913256fb396e3027aac3318d996a716a52ef (diff)
*misc
Diffstat (limited to 'Resources/boot.lua')
-rw-r--r--Resources/boot.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/Resources/boot.lua b/Resources/boot.lua
index a07c96a..6f49da7 100644
--- a/Resources/boot.lua
+++ b/Resources/boot.lua
@@ -1,6 +1,4 @@
--- "macros"
-GAMELAB_PROFILE = true
-GAMELAB_DEBUG = true
+require("macro")
-- 模块搜索目录
local engineLuaLibs = "./DefaultContent/Libraries/?.lua" .. ";./DefaultContent/Libraries/?/init.lua" .. ";./DefaultContent/Libraries/?/?.lua" .. ";./DefaultContent/Libraries/?/?" ..
@@ -18,7 +16,9 @@ package.cpath=package.cpath .. ";" .. engineCLibs .. ";" .. editorCLibs
require("LuaPanda").start("127.0.0.1",8818)
-- redirect
-print = GameLab.Debug.Log
+if GAMELAB_DEBUG then
+ print = GameLab.Debug.Log
+end
-- load gamelab modules
require "GameLab"