mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 08:29:31 +00:00
Updated LSH to use the new constants
Doesn't change much anyway.
This commit is contained in:
parent
e5467b663d
commit
694159f444
2 changed files with 3 additions and 9 deletions
|
|
@ -8,7 +8,7 @@ local function saveGraphicsState()
|
|||
local old = {gfx.get3D(), gfx.color.getDefault(), gfx.color.getBackground(),
|
||||
gfx.font.getDefault()}
|
||||
|
||||
local mono = gfx.font.load(ctruLua.root .. "resources/VeraMono.ttf")
|
||||
local mono = gfx.font.load(ctr.root .. "resources/VeraMono.ttf")
|
||||
|
||||
gfx.set3D(false)
|
||||
gfx.color.setDefault(0xFFFDFDFD)
|
||||
|
|
|
|||
|
|
@ -2,14 +2,8 @@ local ctr = require("ctr")
|
|||
local fs = require("ctr.fs")
|
||||
local gfx = require("ctr.gfx")
|
||||
|
||||
-- Initializing "constants"
|
||||
ctruLua = {}
|
||||
|
||||
--- The ctruLua root directory's absolute path
|
||||
ctruLua.root = fs.getDirectory()
|
||||
|
||||
-- Set up path
|
||||
local ldir = fs.getDirectory().."libs/"
|
||||
local ldir = ctr.root.."libs/"
|
||||
package.path = package.path..";".. ldir.."?.lua;".. ldir.."?/init.lua"
|
||||
|
||||
-- Erroring
|
||||
|
|
@ -17,7 +11,7 @@ local function displayError(err)
|
|||
gfx.set3D(false)
|
||||
gfx.color.setBackground(0xFF0000B3)
|
||||
gfx.color.setDefault(0xFFFDFDFD)
|
||||
gfx.font.setDefault(gfx.font.load(ctruLua.root .. "resources/VeraMono.ttf"))
|
||||
gfx.font.setDefault(gfx.font.load(ctr.root .. "resources/VeraMono.ttf"))
|
||||
|
||||
while ctr.run() do
|
||||
gfx.start(gfx.TOP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue