Skip to content
Snippets Groups Projects
Commit 9000a13d authored by dg's avatar dg
Browse files

mouahah

git-svn-id: http://svn.net-core.org/repos/t-engine4@6187 51575b47-30f0-44d4-a5cc-537603b46e54
parent 22e90a6a
No related branches found
No related tags found
No related merge requests found
......@@ -733,6 +733,23 @@ getmetatable(tmps).__index.size = function(font, str)
return mw, mh
end
local virtualimages = {}
function core.display.virtualImage(path, data)
virtualimages[path] = data
end
local oldloadimage = core.display.loadImage
function core.display.loadImage(path)
if virtualimages[path] then return core.display.loadImageMemory(virtualimages[path]) end
return oldloadimage(path)
end
local oldfsexists = fs.exists
function fs.exists(path)
if virtualimages[path] then return true end
return oldfsexists(path)
end
tstring = {}
tstring.is_tstring = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment