From 3c4c41d72c21e56a7d5d19dd92f73be29397e7f0 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 26 Oct 2021 00:19:10 +0800 Subject: *misc --- Resources/boot.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Resources/boot.lua') 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" -- cgit v1.1-26-g67d0