How to read bootfile name from system.cnf?
Posted: August 2nd, 2013, 12:39 am
I want to add in my program possibility to start game discs, but I don't know how to read filename from inside system.cnf
GTA2 system.cnf
Testcode to start GTA2, only
GTA2 system.cnf
Code: Select all
BOOT = cdrom:\SLES_014.04;1
TCB = 4
EVENT = 10
STACK = 801ffff0
Code: Select all
#include <sys/types.h>
#include <libgte.h>
#include <libgpu.h>
#include <libcd.h>
#include <libetc.h>
char *file = "cdrom:\SLES_014.04;1";
int main( void )
{
ResetGraph(3);
StopCallback();
_96_init();
LoadExec(file, 0x801ffff0, 0);
}