Skip to content

Commit 9f84e26

Browse files
GrocelSligWolf
andcommitted
Recompiled radio models. Removed an unneeded function.
Co-Authored-By: Wolf <17761396+sligwolf@users.noreply.github.com>
1 parent 8ffd79a commit 9f84e26

File tree

20 files changed

+3
-88
lines changed

20 files changed

+3
-88
lines changed

lua/streamradio_core/_include.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ loadSH("streamradio_core/vr.lua")
5757
loadSH("streamradio_core/wire.lua")
5858

5959
loadSV("streamradio_core/server/sv_lib.lua")
60-
loadSV("streamradio_core/server/sv_res.lua")
60+
loadSV("streamradio_core/server/sv_resource.lua")
6161
loadSV("streamradio_core/server/sv_playlist_edit.lua")
6262
loadSV("streamradio_core/server/sv_permaprops.lua")
6363
loadSV("streamradio_core/server/sv_whitelist.lua")

lua/streamradio_core/classes/base.lua

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -110,91 +110,6 @@ function CLASS:CallHook(name, ...)
110110
return func(self, ...)
111111
end
112112

113-
local function getTrace(level, maxcount)
114-
level = level or 2
115-
maxcount = maxcount or 0
116-
117-
local trace = {}
118-
119-
if level == 0 then
120-
return trace
121-
end
122-
123-
while true do
124-
local index = #trace
125-
if maxcount > 0 and index > maxcount then break end
126-
127-
local info = debug.getinfo( level, "Sln" )
128-
if not info then break end
129-
130-
local data = {}
131-
data.what = info.what
132-
data.name = info.name
133-
data.isC = info.what == "C"
134-
135-
if not data.isC then
136-
data.line = info.currentline
137-
data.file = info.short_src
138-
end
139-
140-
trace[index + 1] = data
141-
level = level + 1
142-
end
143-
144-
return trace
145-
end
146-
147-
local color1 = Color(60, 200, 60)
148-
local color2 = Color(120, 200, 120)
149-
local color3 = Color(240, 120, 60)
150-
151-
function CLASS:Print(...)
152-
local trace = getTrace(3)
153-
local args = {...}
154-
155-
MsgC(color1, tostring(self), ":\n")
156-
157-
for k, info in pairs(trace) do
158-
local name = info.name and "\"" .. info.name .. "\"" or "(unknown)"
159-
160-
if info.isC then
161-
MsgC(color2, string.format( " %2.0f: C function %-30s\n", k, name ) )
162-
else
163-
MsgC(color2, string.format( " %2.0f: %-30s %s:%i\n", k, name, info.file, info.line ) )
164-
end
165-
end
166-
167-
Msg("\n")
168-
169-
if #args == 1 and istable(args[1]) then
170-
args = args[1]
171-
local i = 1
172-
173-
for k, v in pairs(args) do
174-
MsgC(color3, string.format( "#%02.0f:\n", i) )
175-
MsgC(color3, string.format( " key -> %10s:\t", i, type(k) ) )
176-
Msg(tostring(k), "\n")
177-
178-
MsgC(color3, string.format( " value -> %10s:\t", i, type(k) ) )
179-
Msg(tostring(v), "\n")
180-
Msg("\n")
181-
182-
i = i + 1
183-
end
184-
185-
return
186-
end
187-
188-
for k, v in pairs(args) do
189-
MsgC(color3, string.format( "#%02.0f -> %10s:\t", k, type(v) ) )
190-
Msg(tostring(v), "\n")
191-
end
192-
193-
Msg("\n\n")
194-
end
195-
196-
CLASS.print = CLASS.Print
197-
198113
local g_string_format = string.format
199114

200115
function CLASS:_ToStringFailback()
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
441
2-
1704408199
1+
442
2+
1704655335
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)