initial commit
This commit is contained in:
19
support/3rd_party/vlc/lua/http/custom.lua
vendored
Normal file
19
support/3rd_party/vlc/lua/http/custom.lua
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
-- make xgettext fetch strings from html code
|
||||
function gettext(text) print(vlc.gettext._(text)) end
|
||||
|
||||
local _G = _G
|
||||
|
||||
local dialogs = setmetatable({}, {
|
||||
__index = function(self, name)
|
||||
-- Cache the dialogs
|
||||
return rawget(self, name) or
|
||||
rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
|
||||
end})
|
||||
|
||||
_G.dialogs = function(...)
|
||||
for i=1, select("#",...) do
|
||||
dialogs[(select(i,...))]()
|
||||
end
|
||||
end
|
||||
|
||||
_G.vlm = vlc.vlm()
|
||||
Reference in New Issue
Block a user