File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ const REQUIRE_CMD_LINE = false
45
45
# PRefix for this file when using mod_log or dev_log
46
46
const LOG_NAME = "ModLoader"
47
47
48
+ # Enables logging messages made with dev_log. Usually these are enabled with the
49
+ # command line arg `--mod-dev`, but you can also enable them this way if you're
50
+ # debugging in the editor. Don't forget to set this back to `false` when
51
+ # distrubuting compiled builds!
52
+ const ENABLE_DEV_LOG = false
53
+
48
54
# Stores data for every found/loaded mod
49
55
var mod_data = {}
50
56
@@ -104,7 +110,7 @@ func _init():
104
110
105
111
106
112
func dev_log (text :String , mod_name :String = "" , pretty :bool = false ):
107
- if (_check_cmd_line_arg ("--mod-dev" )):
113
+ if ENABLE_DEV_LOG || (_check_cmd_line_arg ("--mod-dev" )):
108
114
mod_log (text , mod_name , pretty )
109
115
110
116
You can’t perform that action at this time.
0 commit comments