-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.lua
More file actions
23 lines (23 loc) · 986 Bytes
/
conf.lua
File metadata and controls
23 lines (23 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function love.conf(t)
love.filesystem.setIdentity("ytpplusstudio_1")
local Enums = require("enums") --conf enums
local Data = require("data")
local ver = Data.Version.Major.."."..Data.Version.Minor.."."..Data.Version.Patch
if Data.Version.Label ~= nil then ver = ver.."-"..Data.Version.Label.."."..Data.Version.Candidate end
local path = love.filesystem.getSource()
local cli = ""
love.filesystem.mount(love.filesystem.getSourceBaseDirectory(), "")
local info = love.filesystem.getInfo("YTPPlusCLI")
if info then --does not exist
cli = "[cli v"..love.filesystem.read("YTPPlusCLI/version.txt").."]"
end
if string.find(path, ".love") or string.find(path, ".exe") then
t.window.title = "ytp+ studio [v"..ver.."] "..cli
else
t.window.title = "ytp+ studio "..cli
end
t.window.width = Enums.Width
t.window.height = Enums.Height
t.window.icon = "logo.png"
t.console = true
end