Recompiled radio models. Removed an unneeded function.

Co-Authored-By: Wolf <17761396+sligwolf@users.noreply.github.com>
This commit is contained in:
Grocel 2024-01-07 20:22:15 +01:00
parent 8ffd79a393
commit 9f84e26fdd
20 changed files with 3 additions and 88 deletions

View File

@ -57,7 +57,7 @@ loadSH("streamradio_core/vr.lua")
loadSH("streamradio_core/wire.lua")
loadSV("streamradio_core/server/sv_lib.lua")
loadSV("streamradio_core/server/sv_res.lua")
loadSV("streamradio_core/server/sv_resource.lua")
loadSV("streamradio_core/server/sv_playlist_edit.lua")
loadSV("streamradio_core/server/sv_permaprops.lua")
loadSV("streamradio_core/server/sv_whitelist.lua")

View File

@ -110,91 +110,6 @@ function CLASS:CallHook(name, ...)
return func(self, ...)
end
local function getTrace(level, maxcount)
level = level or 2
maxcount = maxcount or 0
local trace = {}
if level == 0 then
return trace
end
while true do
local index = #trace
if maxcount > 0 and index > maxcount then break end
local info = debug.getinfo( level, "Sln" )
if not info then break end
local data = {}
data.what = info.what
data.name = info.name
data.isC = info.what == "C"
if not data.isC then
data.line = info.currentline
data.file = info.short_src
end
trace[index + 1] = data
level = level + 1
end
return trace
end
local color1 = Color(60, 200, 60)
local color2 = Color(120, 200, 120)
local color3 = Color(240, 120, 60)
function CLASS:Print(...)
local trace = getTrace(3)
local args = {...}
MsgC(color1, tostring(self), ":\n")
for k, info in pairs(trace) do
local name = info.name and "\"" .. info.name .. "\"" or "(unknown)"
if info.isC then
MsgC(color2, string.format( " %2.0f: C function %-30s\n", k, name ) )
else
MsgC(color2, string.format( " %2.0f: %-30s %s:%i\n", k, name, info.file, info.line ) )
end
end
Msg("\n")
if #args == 1 and istable(args[1]) then
args = args[1]
local i = 1
for k, v in pairs(args) do
MsgC(color3, string.format( "#%02.0f:\n", i) )
MsgC(color3, string.format( " key -> %10s:\t", i, type(k) ) )
Msg(tostring(k), "\n")
MsgC(color3, string.format( " value -> %10s:\t", i, type(k) ) )
Msg(tostring(v), "\n")
Msg("\n")
i = i + 1
end
return
end
for k, v in pairs(args) do
MsgC(color3, string.format( "#%02.0f -> %10s:\t", k, type(v) ) )
Msg(tostring(v), "\n")
end
Msg("\n\n")
end
CLASS.print = CLASS.Print
local g_string_format = string.format
function CLASS:_ToStringFailback()

View File

@ -1,2 +1,2 @@
441
1704408199
442
1704655335