mirror of
https://github.com/TangentFoxy/love-pe.git
synced 2025-07-28 02:02:16 +00:00
Project renaming
This commit is contained in:
2
conf.lua
2
conf.lua
@@ -1,5 +1,5 @@
|
|||||||
function love.conf(t)
|
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.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.version = "11.1" -- The LÖVE version this game was made for (string)
|
||||||
t.console = false -- Attach a console (boolean, Windows only)
|
t.console = false -- Attach a console (boolean, Windows only)
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
--love-icon-changer library by RamiLego4Game (Rami Sabbagh)
|
--love-icon-changer library by RamiLego4Game (Rami Sabbagh)
|
||||||
--[[
|
--[[
|
||||||
- Usage:
|
- Usage:
|
||||||
local iconChanger = require("icon-changer")
|
local lovePE = require("love-pe")
|
||||||
|
|
||||||
local icodata = iconChanger.extractIcon(exeFile)
|
local icodata = lovePE.extractIcon(exeFile)
|
||||||
|
|
||||||
- Reference:
|
- Reference:
|
||||||
Version File Resource: https://msdn.microsoft.com/en-us/library/ms647001(v=vs.85).aspx
|
Version File Resource: https://msdn.microsoft.com/en-us/library/ms647001(v=vs.85).aspx
|
4
main.lua
4
main.lua
@@ -1,13 +1,13 @@
|
|||||||
io.stdout:setvbuf("no")
|
io.stdout:setvbuf("no")
|
||||||
|
|
||||||
local iconChanger = require("icon-changer")
|
local lovePE = require("love-pe")
|
||||||
|
|
||||||
function love.load(args)
|
function love.load(args)
|
||||||
love.graphics.setBackgroundColor(1,1,1,1)
|
love.graphics.setBackgroundColor(1,1,1,1)
|
||||||
|
|
||||||
local exeFile = assert(love.filesystem.newFile("love.exe","r"))
|
local exeFile = assert(love.filesystem.newFile("love.exe","r"))
|
||||||
|
|
||||||
local iconData = iconChanger.extractIcon(exeFile)
|
local iconData = lovePE.extractIcon(exeFile)
|
||||||
|
|
||||||
if iconData then
|
if iconData then
|
||||||
love.filesystem.write("Extracted Icon.ico",iconData)
|
love.filesystem.write("Extracted Icon.ico",iconData)
|
||||||
|
Reference in New Issue
Block a user