Advertisement
Guest User

Untitled

a guest
May 29th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.42 KB | None | 0 0
  1. package libnx;
  2.  
  3. import cpp.Star;
  4.  
  5. @:native("PrintConsole")
  6. extern class PrintConsole
  7. {
  8.  
  9. }
  10.  
  11. extern class ConsoleNative
  12. {
  13.     @:native("consoleInit")
  14.     static function consoleInit(console: Star<PrintConsole>): Void;
  15. }
  16.  
  17. @:cppFileCode("#include <switch.h>")
  18. class Console
  19. {
  20.     public static function init(): Void
  21.     {
  22.         ConsoleNative.consoleInit(null); // TODO: add proper PrintConsole struct
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement