mirror of
https://github.com/TangentFoxy/love-pe.git
synced 2025-07-27 17:52:16 +00:00
Icon file rename
This commit is contained in:
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
4
main.lua
4
main.lua
@@ -6,8 +6,8 @@ function love.load(args)
|
||||
love.graphics.setBackgroundColor(1,1,1,1)
|
||||
|
||||
local exeFile = assert(love.filesystem.newFile("love.exe","r"))
|
||||
local icoFile = assert(love.filesystem.newFile("test.ico","r"))
|
||||
local newFile = assert(love.filesystem.newFile("result-"..os.time()..".exe","w"))
|
||||
local icoFile = assert(love.filesystem.newFile("Icon.ico","r"))
|
||||
local newFile = assert(love.filesystem.newFile("Patched-"..os.time()..".exe","w"))
|
||||
|
||||
local success = lovePE.replaceIcon(exeFile,icoFile,newFile)
|
||||
|
||||
|
Reference in New Issue
Block a user