mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add configuration variable for enabling/disabling utf8 support
This commit is contained in:
parent
03f2b0736c
commit
0c91c05caf
7
init.lua
7
init.lua
@ -8,7 +8,6 @@ require(path .. ".libraries.util")
|
|||||||
require(path .. ".libraries.skins")
|
require(path .. ".libraries.skins")
|
||||||
require(path .. ".libraries.templates")
|
require(path .. ".libraries.templates")
|
||||||
require(path .. ".libraries.debug")
|
require(path .. ".libraries.debug")
|
||||||
require(path .. ".libraries.utf8")
|
|
||||||
local loveframes = require(path .. ".libraries.common")
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- library info
|
-- library info
|
||||||
@ -24,6 +23,7 @@ loveframes.config["ACTIVESKIN"] = "Blue"
|
|||||||
loveframes.config["INDEXSKINIMAGES"] = true
|
loveframes.config["INDEXSKINIMAGES"] = true
|
||||||
loveframes.config["DEBUG"] = false
|
loveframes.config["DEBUG"] = false
|
||||||
loveframes.config["ENABLE_SYSTEM_CURSORS"] = true
|
loveframes.config["ENABLE_SYSTEM_CURSORS"] = true
|
||||||
|
loveframes.config["ENABLE_UTF8_SUPPORT"] = true
|
||||||
|
|
||||||
-- misc library vars
|
-- misc library vars
|
||||||
loveframes.state = "none"
|
loveframes.state = "none"
|
||||||
@ -57,6 +57,11 @@ loveframes.config["DIRECTORY"] = dir
|
|||||||
-- enable key repeat
|
-- enable key repeat
|
||||||
love.keyboard.setKeyRepeat(true)
|
love.keyboard.setKeyRepeat(true)
|
||||||
|
|
||||||
|
-- check if utf8 support is enabled
|
||||||
|
if loveframes.config["ENABLE_UTF8_SUPPORT"] then
|
||||||
|
require(path .. ".libraries.utf8")
|
||||||
|
end
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
--[[---------------------------------------------------------
|
||||||
- func: update(deltatime)
|
- func: update(deltatime)
|
||||||
- desc: updates all library objects
|
- desc: updates all library objects
|
||||||
|
Loading…
Reference in New Issue
Block a user