示例#1
0
EXPORT_C_(s32) FWinit()
{
	LoadConfig();
	LogInit();
	FWLog.WriteLn("FWnull plugin version %d,%d", revision, build);
	FWLog.WriteLn("Initializing FWnull");

	memset(phyregs, 0, sizeof(phyregs));
	// Initializing our registers.
	fwregs = (s8*)calloc(0x10000,1);
	if (fwregs == NULL)
	{
		FWLog.Message("Error allocating Memory");
		return -1;
	}
	return 0;
}
示例#2
0
文件: USB.cpp 项目: Dyndrilliac/pcsx2
USBinit()
{
    LoadConfig();
    LogInit();
    USBLog.WriteLn("USBnull plugin version %d,%d", revision, build);
    USBLog.WriteLn("Initializing USBnull");

    // Initialize memory structures here.
    usbregs = (s8 *)calloc(0x10000, 1);

    if (usbregs == NULL) {
        USBLog.Message("Error allocating memory");
        return -1;
    }

    return 0;
}