Add template for error handling and fix console printing
This commit is contained in:
parent
3fff14bd0b
commit
291abf3249
5 changed files with 57 additions and 158 deletions
|
|
@ -2,7 +2,7 @@ import sets, strutils
|
|||
import libnx/[graphics, console, account, input, app]
|
||||
import libnx/ext/integer128
|
||||
|
||||
proc main() =
|
||||
mainFunction:
|
||||
graphics.initDefault()
|
||||
console.init()
|
||||
|
||||
|
|
@ -43,5 +43,3 @@ proc main() =
|
|||
|
||||
if ControllerKey.Plus in keysDown:
|
||||
break
|
||||
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import sets
|
|||
import libnx/[graphics, console, app, input]
|
||||
|
||||
|
||||
proc main() =
|
||||
mainFunction:
|
||||
initDefault()
|
||||
console.init()
|
||||
|
||||
|
|
@ -15,5 +15,3 @@ proc main() =
|
|||
|
||||
if ControllerKey.Plus in keysDown:
|
||||
break
|
||||
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue