Skip to content

Commit

Permalink
- Fix unknown drive variant crash
Browse files Browse the repository at this point in the history
  • Loading branch information
emukidid committed Mar 29, 2019
1 parent 8e4e82b commit df5bb11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cube/swiss/source/devices/dvd/dvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ void dvd_enable_patches()
if(!driveVersion) return; // Unsupported drive

void* patchCode = drive_patch_ptr(driveVersion);

if(patchCode == NULL) {
return; // Unsupported drive
}
print_gecko("Drive date %08X\r\nUnlocking DVD\r\n",driveVersion);
dvd_unlock();
print_gecko("Unlocking DVD - done\r\nWrite patch\r\n");
Expand Down

0 comments on commit df5bb11

Please sign in to comment.