summaryrefslogtreecommitdiff
path: root/Resources/boot.lua
diff options
context:
space:
mode:
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"