Skip to content

Instantly share code, notes, and snippets.

@thrimbor
Created April 5, 2019 12:43
Show Gist options
  • Save thrimbor/62a550b36cb5ab65a7b6ceacc4fbd084 to your computer and use it in GitHub Desktop.
Save thrimbor/62a550b36cb5ab65a7b6ceacc4fbd084 to your computer and use it in GitHub Desktop.
Simple C++ NXDK sample
#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