Project renaming

This commit is contained in:
RamiLego4Game
2018-05-11 10:55:26 +03:00
parent d027467eb4
commit 32ff1dc160
3 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
function love.conf(t)
t.identity = "love-exe-icon-changer"-- The name of the save directory (string)
t.identity = "love-pe"-- The name of the save directory (string)
t.appendidentity = false -- Search files in source directory before save directory (boolean)
t.version = "11.1" -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)

View File

@@ -1,9 +1,9 @@
--love-icon-changer library by RamiLego4Game (Rami Sabbagh)
--[[
- Usage:
local iconChanger = require("icon-changer")
local lovePE = require("love-pe")
local icodata = iconChanger.extractIcon(exeFile)
local icodata = lovePE.extractIcon(exeFile)
- Reference:
Version File Resource: https://msdn.microsoft.com/en-us/library/ms647001(v=vs.85).aspx

View File

@@ -1,13 +1,13 @@
io.stdout:setvbuf("no")
local iconChanger = require("icon-changer")
local lovePE = require("love-pe")
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)
local iconData = lovePE.extractIcon(exeFile)
if iconData then
love.filesystem.write("Extracted Icon.ico",iconData)