Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package libnx;
- import cpp.Star;
- @:native("PrintConsole")
- extern class PrintConsole
- {
- }
- extern class ConsoleNative
- {
- @:native("consoleInit")
- static function consoleInit(console: Star<PrintConsole>): Void;
- }
- @:cppFileCode("#include <switch.h>")
- class Console
- {
- public static function init(): Void
- {
- ConsoleNative.consoleInit(null); // TODO: add proper PrintConsole struct
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement