Esempio n. 1
0
int checkRumble() {
    if (__dsimode)
        return 0;

    sysSetCartOwner(BUS_OWNER_ARM9);

    OpenNorWrite();
    uint32 rumbleID = ReadNorFlashID();
    CloseNorWrite();


    if (isRumbleInserted())
        return 1; //Warioware / Official rumble found.
    else if (rumbleID != 0)
        return 2; //3in1 found
    else
        return 0; //No rumble found
}
Esempio n. 2
0
int RumbleCheck(void)
{
	sysSetCartOwner(BUS_OWNER_ARM9);

	if (isRumbleInserted()) {
		// Warioware / Official rumble
		rumbleType = 1;
	} else {
		// 3-in-1 found
		OpenNorWrite();
		uint32 rumbleID = ReadNorFlashID();
		CloseNorWrite();
		if (rumbleID != 0) rumbleType = 2; 
		else rumbleType = 0;
	}

	return rumbleType;
}