mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Res: Add resources from xowa_app_windows_64_v4.5.26.1810
This commit is contained in:
25
res/bin/any/xowa/xtns/JsonConfig/JCLuaLibrary.lua
Normal file
25
res/bin/any/xowa/xtns/JsonConfig/JCLuaLibrary.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
local object = {}
|
||||
local php
|
||||
|
||||
function object.setupInterface( options )
|
||||
-- Remove setup function
|
||||
object.setupInterface = nil
|
||||
|
||||
-- Copy the PHP callbacks to a local variable, and remove the global
|
||||
php = mw_interface
|
||||
mw_interface = nil
|
||||
|
||||
-- Install into the mw global
|
||||
mw = mw or {}
|
||||
mw.ext = mw.ext or {}
|
||||
mw.ext.data = object
|
||||
|
||||
-- Indicate that we're loaded
|
||||
package.loaded['mw.ext.data'] = object
|
||||
end
|
||||
|
||||
function object.get( title, language )
|
||||
return php.get( title, language )
|
||||
end
|
||||
|
||||
return object
|
||||
Reference in New Issue
Block a user