static void destroy(RomMapperMatraINK* rm) { amdFlashDestroy(rm->flash); slotUnregister(rm->slot, rm->sslot, rm->startPage); deviceManagerUnregister(rm->deviceHandle); free(rm); }
static void destroy(RomMapperObsonet* rm) { amdFlashDestroy(rm->amdFlash); rtl8019Destroy(rm->rtl8019); slotUnregister(rm->slot, rm->sslot, rm->startPage); deviceManagerUnregister(rm->deviceHandle); free(rm); }
static void destroy(RomMapperMegaFlashRomScc* rm) { amdFlashDestroy(rm->flash); slotUnregister(rm->slot, rm->sslot, rm->startPage); deviceManagerUnregister(rm->deviceHandle); sccDestroy(rm->scc); free(rm->romData); free(rm); }
static void destroy(void* _rm) { RomMapperNoWind* rm = (RomMapperNoWind*)_rm; int i; amdFlashDestroy(rm->amdFlash); #ifdef USE_NOWIND_DLL for (i = 0; i < 4; i++) { if (rm->deviceId[i] != -1) { deviceIdFree(rm->deviceId[i]); } } if (--nowindLoaded == 0) { if (nowindusb_cleanup) nowindusb_cleanup(); nowindUnloadDll(); } #endif slotUnregister(rm->slot, rm->sslot, rm->startPage); deviceManagerUnregister(rm->deviceHandle); free(rm); }