DragonMinded / libdragon

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

Disable rumble pak on reset/crash #581

Open s4Ys369 opened 1 month ago

s4Ys369 commented 1 month 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 1 month ago

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

networkfusion commented 1 month ago

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

s4Ys369 commented 1 month ago

Using an EDX7 and iirc support is WIP

networkfusion commented 1 month 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...