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 1 commit
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
Next Next commit
RibShark FW detection
Deterous authored Jan 22, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 547874d5454d6bad5abed567487387a8c1389fa5
4 changes: 3 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,9 @@ name: CMake

on:
push:
branches: [ main ]
branches:
- main
- dev
pull_request:

env:
3 changes: 3 additions & 0 deletions cd/cd_dump.ixx
Original file line number Diff line number Diff line change
@@ -764,6 +764,9 @@ export bool redumper_dump_cd(Context &ctx, const Options &options, bool refine)
}

store = true;

if (lba == lba_end && drive_is_asus_ribshark(ctx.drive_config))
LOG_R("RibShark FW: Reading lead-out");
}
}

12 changes: 12 additions & 0 deletions dump.ixx
Original file line number Diff line number Diff line change
@@ -155,6 +155,18 @@ 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 == "WM01601KLZL4TG5625"
&& drive_config.read_method == DriveConfig::ReadMethod::BE_CDDA
&& drive_config.sector_order == DriveConfig::SectorOrder::DATA_C2_SUB
&& ctx.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";