Esempio n. 1
0
void AboutDlgProc(void)
{
    char args[256];

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

	LoadConf();

	return 0;
}
Esempio n. 4
0
File: cfg.c Progetto: bsv798/pcsxr
void AboutDlgProc(void)
{
	char args[256];

	sprintf(args, "ABOUT");
	ExecCfg(args);
}
Esempio n. 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);
}
Esempio n. 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()
Esempio n. 7
0
void CALLBACK CDVDabout() {
  ExecCfg("about");
} // END CDVDabout()
Esempio n. 8
0
void CALLBACK CDVDconfigure() {
  ExecCfg("configure");
} // END CDVDconfigure()
Esempio n. 9
0
void SoftDlgProc(void)
{
    ExecCfg("configure");
}
Esempio n. 10
0
void CALLBACK NETabout() {
	ExecCfg("about", 1);
}
Esempio n. 11
0
void CALLBACK NETconfigure() {
	ExecCfg("configure", 1);
}
Esempio n. 12
0
File: cdr.c Progetto: bsv798/pcsxr
void CDRabout() {
	ExecCfg("about");
}
Esempio n. 13
0
File: cdr.c Progetto: bsv798/pcsxr
long CDRconfigure() {
#ifndef USE_NULL
	ExecCfg("configure");
#endif
	return 0;
}
Esempio n. 14
0
File: cfg.c Progetto: bsv798/pcsxr
void SoftDlgProc(void)
{
	ExecCfg("CFG");
}