Skip to content

Instantly share code, notes, and snippets.

@thrimbor
thrimbor / main.c
Created April 10, 2019 23:31
List files with NXDK
#include <xboxrt/debug.h>
#include <pbkit/pbkit.h>
#include <hal/xbox.h>
#include "stdio.h"
#include <hal/fileio.h>
void main(void)
{
int i;
@thrimbor
thrimbor / main.cpp
Created April 5, 2019 12:43
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;
};
#include <stdio.h>
#include <xboxkrnl/xboxkrnl.h>
#include <assert.h>
#include <string.h>
int main() {
FILE *fp;
fp = fopen("D:\\test.txt", "w");
assert(fp != NULL);
// Expected output:
// r=0
// r=1
#include <xboxrt/debug.h>
#include <pbkit/pbkit.h>
#include <hal/xbox.h>
#include "stdio.h"
#include <setjmp.h>
This file has been truncated, but you can view the full file.
Frame 0
glXGetCurrentContext( ) = ptr=0x56186E070508
glGetString( GL_VERSION ) = ["4.6.0 NVIDIA 390.48"]
glGetString( GL_VERSION ) = ["4.6.0 NVIDIA 390.48"]
glGenTextures( 1, ptr=0x7FFEB545F784 size=4 elements=1 pointee_type=GLUINT [38] )
glXGetCurrentContext( ) = ptr=0x56186E070508
glGetString( GL_VERSION ) = ["4.6.0 NVIDIA 390.48"]
glGetString( GL_VERSION ) = ["4.6.0 NVIDIA 390.48"]
glBindTexture( GL_TEXTURE_2D, 38 )
glXGetCurrentContext( ) = ptr=0x56186E070508