Skip to content

Commit

Permalink
- Fix reboot on FlippyDrive with non-DI devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jan 21, 2025
1 parent c94d94a commit 1364833
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cube/swiss/source/swiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,9 @@ void load_app(ExecutableFile *fileToPatch)
kenobi_install_engine();
}

if(devices[DEVICE_PATCHES] && !(devices[DEVICE_PATCHES]->quirks & QUIRK_NO_DEINIT)) {
devices[DEVICE_PATCHES]->deinit(devices[DEVICE_PATCHES]->initial);
}
// Don't spin down the drive when running something from it...
if(!(devices[DEVICE_CUR]->quirks & QUIRK_NO_DEINIT)) {
devices[DEVICE_CUR]->deinit(devices[DEVICE_CUR]->initial);
Expand All @@ -1216,8 +1219,9 @@ void load_app(ExecutableFile *fileToPatch)
// Check DVD Status, make sure it's error code 0
print_gecko("DVD: %08X\r\n",dvd_get_error());
}
if(devices[DEVICE_PATCHES] && !(devices[DEVICE_PATCHES]->quirks & QUIRK_NO_DEINIT)) {
devices[DEVICE_PATCHES]->deinit(devices[DEVICE_PATCHES]->initial);
else if(swissSettings.hasFlippyDrive) {
flippy_bypass(false);
flippy_reset();
}

DrawDispose(progBox);
Expand Down

0 comments on commit 1364833

Please sign in to comment.