DragonMinded / libdragon

Open source library for N64 development.
https://libdragon.dev
The Unlicense
746 stars 108 forks source link

Disable rumble pak on reset/crash #581

Open s4Ys369 opened 4 months ago

s4Ys369 commented 4 months ago

Rumble pak stays active if active when the console is reset or the exception screen pops up.

A forced reset/deactivation should be added to these, and possibly other, edge cases.

gyrovorbis commented 4 months ago

Heh. I know a certain other homebrew SDK for a certain Caster of Dreams console which has this issue too. :rofl:

networkfusion commented 4 months ago

If it helps, this has been added to the N64Flashcart menu on menu load in the latest release.

s4Ys369 commented 4 months ago

Using an EDX7 and iirc support is WIP

networkfusion commented 4 months ago

Then,

JOYPAD_PORT_FOREACH (port) {
    joypad_set_rumble_active(port, false);
}

might help, but I am not sure if that is able to be performed by the crash handler, as the system is probably already locked up...