[Dev Console] Forbid using in official realm (VT2)
Fatshark's demand.
This commit is contained in:
parent
d7f2d31897
commit
e3d16127e9
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,12 @@ if not _console_data.original_print then _console_data.original_print = print en
|
||||||
|
|
||||||
local function open_dev_console()
|
local function open_dev_console()
|
||||||
|
|
||||||
|
-- Forbid using dev console in official realm. Hopefully, temporarily restriction. So no localization.
|
||||||
|
if not VT1 and not script_data["eac-untrusted"] then
|
||||||
|
vmf:echo("You can't use developer console in official realm.")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if not _console_data.enabled then
|
if not _console_data.enabled then
|
||||||
|
|
||||||
local print_hook_function = function(func, ...)
|
local print_hook_function = function(func, ...)
|
||||||
|
|
Loading…
Add table
Reference in a new issue