mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
23 lines
541 B
Plaintext
23 lines
541 B
Plaintext
|
lfs = require "lfs"
|
||
|
|
||
|
return {
|
||
|
getVersion: ->
|
||
|
0, 10, 1, "Super Toast"
|
||
|
filesystem:
|
||
|
getDirectoryItems: (path) ->
|
||
|
ok, results = pcall ->
|
||
|
results = {}
|
||
|
for file in lfs.dir lfs.currentdir! .. "/" .. path
|
||
|
table.insert results, file
|
||
|
return results
|
||
|
if ok
|
||
|
return results
|
||
|
else
|
||
|
return {}
|
||
|
graphics:
|
||
|
getWidth: ->
|
||
|
return 1280
|
||
|
getHeight: ->
|
||
|
return 720
|
||
|
}
|