nike4613 / BeatSaber-IPA-Reloaded

A Unity mod injector built for Beat Saber.
https://nike4613.github.io/BeatSaber-IPA-Reloaded/
Other
185 stars 28 forks source link

A way for an IDisablablePlugin to signal it finished disabling itself #24

Closed Zingabopp closed 4 years ago

Zingabopp commented 5 years ago

It would be nice for the mods that need some time to clean up before they're disabled to have a way of signalling when they're finished. Mostly to make the Enable button in ModList inactive until the mod is finished.

nike4613 commented 4 years ago

BSIPA 4's system will allow disable methods to return a Task that will be used to wait for completion. You will be able to use a TaskCompletionSource to provide that if you aren't using tasks already.

nike4613 commented 4 years ago

See above. BSIPA 4 is now merged.