1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/utils/print_override.lua

20 lines
307 B
Lua
Raw Normal View History

2019-02-20 12:43:29 +02:00
local Public = {}
2020-11-29 22:20:39 +02:00
local locale_string = {'', nil, nil}
2019-02-20 12:43:29 +02:00
local raw_print = print
2020-11-29 22:20:39 +02:00
function print(str, tag)
if tag then
locale_string[2] = tag
else
locale_string[2] = '[PRINT]'
end
2020-11-29 22:26:49 +02:00
2019-02-20 12:43:29 +02:00
locale_string[3] = str
log(locale_string)
end
Public.raw_print = raw_print
return Public