Start the work on the icon changer

This commit is contained in:
RamiLego4Game
2018-05-10 11:22:57 +03:00
parent c1e9887db0
commit 8a1618c034
3 changed files with 117 additions and 0 deletions

26
main.lua Normal file
View File

@@ -0,0 +1,26 @@
local iconChanger = require("icon-changer")
function love.load(args)
love.graphics.setBackgroundColor(1,1,1,1)
local exeFile = assert(love.filesystem.newFile("love.exe","r"))
local iconData = iconChanger.extractIcon(exeFile)
if iconData then
love.filesystem.write("Extracted Icon.ico",iconData)
love.system.openURL("file://"..love.filesystem.getSaveDirectory())
end
love.event.quit(0)
end
function love.draw()
love.graphics.setColor(0,0,0,1)
love.graphics.printf("Icon extracted",0,200/2-5,300,"center")
end
function love.update(dt)
end