20#define NEWLIB_PORT_AWARE
23#define defaultIODriver { (void *)fioOpen, fioClose, fioRead, FIO_O_RDONLY }
25extern char g_RomName[];
27#ifdef F__info_internals
29char g_RomName[15] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
32#ifdef F_GetRomNameWithIODriver
33char *GetRomNameWithIODriver(
char *romname,
_io_driver *driver)
37 fd = driver->open(
"rom0:ROMVER", driver->openFlags);
38 driver->read(fd, romname, 14);
48 return GetRomNameWithIODriver(romname, &driver);
52#ifdef F_IsDESRMachineWithIODriver
53int IsDESRMachineWithIODriver(
_io_driver *driver)
57 fd = driver->open(
"rom0:PSXVER", driver->openFlags);
71 return IsDESRMachineWithIODriver(&driver);
75#ifdef F_IsT10KWithIODriver
79 if (g_RomName[0] == 0)
80 GetRomNameWithIODriver(g_RomName, driver);
81 return (g_RomName[4] ==
'T' && g_RomName[5] !=
'Z') ? 1 : 0;
89 return IsT10KWithIODriver(&driver);
char * GetRomName(char *romname)