home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / vlc-1.1.2-win32.exe / lua / http / custom.lua < prev    next >
Encoding:
Text File  |  2010-07-30  |  403 b   |  18 lines

  1. local _G = _G
  2. module("custom",package.seeall)
  3.  
  4. local dialogs = setmetatable({}, {
  5. __index = function(self, name)
  6.     -- Cache the dialogs
  7.     return rawget(self, name) or
  8.            rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
  9. end})
  10.  
  11. _G.dialogs = function(...)
  12.     for i=1, select("#",...) do
  13.         dialogs[(select(i,...))]()
  14.     end
  15. end
  16.  
  17. _G.vlm = vlc.vlm()
  18.