void AboutDlgProc(void) { char args[256]; sprintf(args, "about %d %d %s", revision, build, RELEASE_DATE); ExecCfg(args); }
s32 CALLBACK CDVDctrlTrayOpen() { int i; #ifdef VERBOSE_FUNCTION_INTERFACE PrintLog("CDVDiso interface: CDVDctrlTrayOpen()"); #endif /* VERBOSE_FUNCTION_INTERFACE */ // Close() isofile = IsoFileClose(isofile); deviceopencount = 50; // and re-Open() if ((conf.isoname[0] == 0) || ((conf.restartconfigure != 0) && (deviceopencount > 0))) { ExecCfg("configure"); LoadConf(); } // ENDIF- Haven't initialized the configure program yet? Do so now. isofile = IsoFileOpenForRead(conf.isoname); if (isofile == NULL) { #ifdef VERBOSE_FUNCTION_INTERFACE PrintLog("CDVDiso interface: Failed to open ISO file!"); #endif /* VERBOSE_FUNCTION_INTERFACE */ } // ENDIF- Trouble opening file? Abort. if (deviceopencount > 0) { i = 0; while ((i < 2048) && (isocdcheck[i] == isobuffer[i])) i++; if (i == 2048) deviceopencount = 0; // Same CD/DVD? No delay. } // ENDIF- Is this a restart? Check for disc change. for (i = 0; i < 2048; i++) isocdcheck[i] = isobuffer[i]; return (0); } // END CDVDctrlTrayOpen()
long sockOpen() { if (ExecCfg("open", 0) == 0) return -1; LoadConf(); return 0; }
void AboutDlgProc(void) { char args[256]; sprintf(args, "ABOUT"); ExecCfg(args); }
void SysMessage(const char *fmt, ...) { va_list list; char msg[512]; char cmd[512]; va_start(list, fmt); vsprintf(msg, fmt, list); va_end(list); sprintf(cmd, "message %s\n", msg); ExecCfg(cmd, 1); }
s32 CALLBACK CDVDopen(const char* pTitleFilename) { int retval; int i; #ifdef VERBOSE_FUNCTION_INTERFACE PrintLog("CDVDiso interface: CDVDopen()"); #endif /* VERBOSE_FUNCTION_INTERFACE */ LoadConf(); if (pTitleFilename != NULL) strcpy(conf.isoname, pTitleFilename); if ((conf.isoname[0] == 0) || ((conf.startconfigure != 0) && (deviceopencount == 0)) || ((conf.restartconfigure != 0) && (deviceopencount > 0))) { ExecCfg("configure"); LoadConf(); } // ENDIF- Haven't initialized the configure program yet? Do so now. isofile = IsoFileOpenForRead(conf.isoname); if (isofile == NULL) { #ifdef VERBOSE_FUNCTION_INTERFACE PrintLog("CDVDiso interface: Failed to open ISO file!"); #endif /* VERBOSE_FUNCTION_INTERFACE */ // return(-1); // Taken out for "NULL" device simulation for (i = 0; i < 2048; i++) isocdcheck[i] = 0; return (0); } // ENDIF- Trouble opening file? Abort. retval = IsoFileSeek(isofile, 16); if (retval != 0) return (-1); retval = IsoFileRead(isofile, isobuffer); if (retval != 0) return (-1); if (deviceopencount > 0) { i = 0; while ((i < 2048) && (isocdcheck[i] == isobuffer[i])) i++; if (i == 2048) deviceopencount = 0; // Same CD/DVD? No delay. } // ENDIF- Is this a restart? Check for disc change. for (i = 0; i < 2048; i++) isocdcheck[i] = isobuffer[i]; return (0); } // END CDVDopen()
void CALLBACK CDVDabout() { ExecCfg("about"); } // END CDVDabout()
void CALLBACK CDVDconfigure() { ExecCfg("configure"); } // END CDVDconfigure()
void SoftDlgProc(void) { ExecCfg("configure"); }
void CALLBACK NETabout() { ExecCfg("about", 1); }
void CALLBACK NETconfigure() { ExecCfg("configure", 1); }
void CDRabout() { ExecCfg("about"); }
long CDRconfigure() { #ifndef USE_NULL ExecCfg("configure"); #endif return 0; }
void SoftDlgProc(void) { ExecCfg("CFG"); }