mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 08:29:31 +00:00
Changed the icon, and deleted the test files.
The new one is much nicer. As for the test files, they had nothing to do here from the start.
This commit is contained in:
parent
05c9adc2a0
commit
1f23b86379
2 changed files with 0 additions and 37 deletions
BIN
icon.png
BIN
icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,37 +0,0 @@
|
||||||
local ctr = require("ctr")
|
|
||||||
local gfx = require("ctr.gfx")
|
|
||||||
local hid = require("ctr.hid")
|
|
||||||
local httpc = require("ctr.httpc")
|
|
||||||
|
|
||||||
local err = 0
|
|
||||||
|
|
||||||
--assert(httpc.init())
|
|
||||||
|
|
||||||
local context = assert(httpc.context())
|
|
||||||
|
|
||||||
assert(context:open("http://firew0lf.github.io/"))
|
|
||||||
assert(context:beginRequest())
|
|
||||||
|
|
||||||
local data = assert(context:downloadData())
|
|
||||||
|
|
||||||
while ctr.run() do
|
|
||||||
hid.read()
|
|
||||||
keys = hid.keys()
|
|
||||||
if keys.held.start then break end
|
|
||||||
if keys.down.b then
|
|
||||||
assert(context:open("http://firew0lf.github.io/"))
|
|
||||||
assert(context:beginRequest())
|
|
||||||
data = assert(context:downloadData())
|
|
||||||
data = (data.."!")
|
|
||||||
end
|
|
||||||
|
|
||||||
gfx.start(gfx.TOP)
|
|
||||||
gfx.text(0, 0, data)
|
|
||||||
gfx.stop()
|
|
||||||
|
|
||||||
gfx.render()
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
context:close()
|
|
||||||
--httpc.shutdown()
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue