Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RibShark FW detection #204

Closed
wants to merge 9 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cd/cd_dump.ixx
Original file line number Diff line number Diff line change
@@ -897,6 +897,9 @@ export bool redumper_dump_cd(Context &ctx, const Options &options, bool refine)
// grow lead-out overread if we still can read
if(lba + 1 == lba_overread && !options.lba_end && (lba_overread - lba_end <= 100 || options.overread_leadout))
++lba_overread;

if(lba == lba_end + 10 && drive_is_asus_ribshark(ctx.drive_config))
LOG_R("RibShark FW: Reading lead-out");
}
else
{
7 changes: 7 additions & 0 deletions dump.ixx
Original file line number Diff line number Diff line change
@@ -155,6 +155,13 @@ export TOC choose_toc(const std::vector<uint8_t> &toc_buffer, const std::vector<
}


export bool drive_is_asus_ribshark(const DriveConfig &drive_config)
{
return drive_config.vendor_id == "ASUS" && drive_config.product_id == "BW-16D1HT" && drive_config.product_revision_level == "3.10" && drive_config.vendor_specific.starts_with("WM01601")
&& drive_config.read_method == DriveConfig::ReadMethod::BE_CDDA && drive_config.sector_order == DriveConfig::SectorOrder::DATA_C2_SUB && drive_config.type == DriveConfig::Type::GENERIC;
}


export bool drive_is_plextor4824(const DriveConfig &drive_config)
{
return drive_config.vendor_id == "PLEXTOR" && drive_config.product_id == "CD-R PX-W4824A";