Exemple #1
0
static int DoLibInit()					// Do Init of Burn library driver
{
	int nRet = 0;

	BArchiveOpen(false);

	// If there is a problem with the romset, report it
	switch (BArchiveStatus()) {
		case BARC_STATUS_BADDATA: {
			//FBAPopupDisplay(PUF_TYPE_WARNING);
			//BArchiveClose();
			//return 1;
			break;
		}
		case BARC_STATUS_ERROR: {
			FBAPopupDisplay(PUF_TYPE_ERROR);

#if 0 || !defined FBA_DEBUG
			// Don't even bother trying to start the game if we know it won't work
			BArchiveClose();
			return 1;
#endif

			break;
		}
		default: {

#if 0 && defined FBA_DEBUG
			FBAPopupDisplay(PUF_TYPE_INFO);
#else
			FBAPopupDisplay(PUF_TYPE_INFO | PUF_TYPE_LOGONLY);
#endif

		}
	}

	//ProgressCreate();

	nRet = BurnDrvInit();

	BArchiveClose();

	//ProgressDestroy();

	if (nRet) {
		return 3;
	} else {
		return 0;
	}
}
Exemple #2
0
static int DoLibInit()					// Do Init of Burn library driver
{
	int nRet;

	BzipOpen(false);

	//ProgressCreate();

	nRet = BurnDrvInit();

	BzipClose();

	if (nRet) {
		return 1;
	} else {
		return 0;
	}
}
Exemple #3
0
static int DoLibInit()					// Do Init of Burn library driver
{
	int nRet = 0;

	if (DrvBzipOpen()) {
		return 1;
	}
    ProgressCreate();
	nRet = BurnDrvInit();

	BzipClose();

    ProgressDestroy();

	if (nRet) {
		return 3;
	} else {
		return 0;
	}
}
Exemple #4
0
static int DoLibInit()					// Do Init of Burn library driver
{
	int nRet = 0;

	if ((BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) != HARDWARE_SNK_MVS) {
		ProgressCreate();
	}
	
	if (DrvBzipOpen()) {
		return 1;
	}

	nRet = BurnDrvInit();

	BzipClose();

	ProgressDestroy();

	if (nRet) {
		return 3;
	} else {
		return 0;
	}
}