Skip to content

Commit

Permalink
Updated LSH to use the new constants
Browse files Browse the repository at this point in the history
Doesn't change much anyway.
  • Loading branch information
Neil Zeke Cecchini authored and Neil Zeke Cecchini committed Mar 13, 2016
1 parent e5467b6 commit 694159f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sdcard/3ds/ctruLua/libs/filepicker.lua
Expand Up @@ -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)
Expand Down
10 changes: 2 additions & 8 deletions sdcard/3ds/ctruLua/main.lua
Expand Up @@ -2,22 +2,16 @@ 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
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)
Expand Down

0 comments on commit 694159f

Please sign in to comment.