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; }
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; }