Created
April 5, 2019 12:43
-
-
Save thrimbor/62a550b36cb5ab65a7b6ceacc4fbd084 to your computer and use it in GitHub Desktop.
Simple C++ NXDK sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <xboxrt/debug.h> | |
| #include <pbkit/pbkit.h> | |
| #include <hal/xbox.h> | |
| #include "stdio.h" | |
| class Testclass { | |
| public: | |
| Testclass(); | |
| bool worked; | |
| }; | |
| Testclass::Testclass () { | |
| int i; | |
| switch(pb_init()) | |
| { | |
| case 0: break; | |
| default: | |
| XSleep(2000); | |
| XReboot(); | |
| return; | |
| } | |
| pb_show_debug_screen(); | |
| while(1) { | |
| debugPrint("Hello NXDK!"); | |
| XSleep(2000); | |
| } | |
| pb_kill(); | |
| XReboot(); | |
| } | |
| Testclass t; | |
| void main () | |
| { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment