Attached is a sample startup project for anyone who is just starting out with PureGDK.
It allows you to have your own debugging (trace) as well as visual studios, you can cheat with OO style global vars, and a cleanup facility.
Okay, a few things need to be added:
1. The dialogue for changing the screen prefs. (50% done)
2. A few more checks on the system calls.
prefs.cpp
prefs::prefs(void)
{
FILE *fp = fopen( ipref_file, "r" );
if ( !fp ) {
width = 800;
height = 600;
depth = 32;
fullscreen = 0;
}
else {
fread( &width, sizeof(int), 1, fp );
fread( &height, sizeof(int), 1, fp );
fread( &depth, sizeof(int), 1, fp );
fread( &fullscreen, sizeof(bool), 1, fp );
fclose ( fp );
}
}
To change resolution, delete "prefs.zzz" and change these values.
I will update this code as I start to make some improvements.
Fingers crossed this 'will' actually help someone too.
Warning! May contain Nuts!