Exemple #1
0
void AboutDlgProc(void)
{
    char args[256];

    sprintf(args, "about %d %d %s", revision, build, RELEASE_DATE);
    ExecCfg(args);
}
Exemple #2
0
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()
Exemple #3
0
long sockOpen() {
	if (ExecCfg("open", 0) == 0) return -1;

	LoadConf();

	return 0;
}
Exemple #4
0
void AboutDlgProc(void)
{
	char args[256];

	sprintf(args, "ABOUT");
	ExecCfg(args);
}
Exemple #5
0
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);
}
Exemple #6
0
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()
Exemple #7
0
void CALLBACK CDVDabout() {
  ExecCfg("about");
} // END CDVDabout()
Exemple #8
0
void CALLBACK CDVDconfigure() {
  ExecCfg("configure");
} // END CDVDconfigure()
Exemple #9
0
void SoftDlgProc(void)
{
    ExecCfg("configure");
}
Exemple #10
0
void CALLBACK NETabout() {
	ExecCfg("about", 1);
}
Exemple #11
0
void CALLBACK NETconfigure() {
	ExecCfg("configure", 1);
}
Exemple #12
0
void CDRabout() {
	ExecCfg("about");
}
Exemple #13
0
long CDRconfigure() {
#ifndef USE_NULL
	ExecCfg("configure");
#endif
	return 0;
}
Exemple #14
0
void SoftDlgProc(void)
{
	ExecCfg("CFG");
}