[Dev Console] Fix formatting and crashes for VT2
This commit is contained in:
parent
a455f76eeb
commit
f28fd3672e
1 changed files with 10 additions and 1 deletions
|
@ -24,7 +24,16 @@ local function open_dev_console()
|
|||
|
||||
local print_hook_function = function(func, ...)
|
||||
if _console_data.enabled then
|
||||
CommandWindow.print(...)
|
||||
if VT1 then
|
||||
CommandWindow.print(...)
|
||||
else
|
||||
local console_message = {...}
|
||||
for i, element in ipairs(console_message) do
|
||||
console_message[i] = tostring(element)
|
||||
end
|
||||
table.insert(console_message, '\n')
|
||||
CommandWindow.print(table.concat(console_message, " "))
|
||||
end
|
||||
func(...)
|
||||
else
|
||||
func(...)
|
||||
|
|
Loading…
Add table
Reference in a new issue