Skip to content

Commit

Permalink
added function to check for not-so-good PLEXTOR 4824
Browse files Browse the repository at this point in the history
  • Loading branch information
superg committed Aug 18, 2024
1 parent adde32b commit 39d36a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dump.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,20 @@ export TOC choose_toc(const std::vector<uint8_t> &toc_buffer, const std::vector<
}


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


export bool toc_enable_cdtext(const Context &ctx, const TOC &toc, const Options &options)
{
if(options.disable_cdtext)
return false;
else if(options.force_cdtext_reading)
return true;
else
return !(ctx.drive_config.vendor_id == "PLEXTOR" && ctx.drive_config.product_id == "CD-R PX-W4824A") || toc.sessions.size() <= 1;
return !drive_is_plextor4824(ctx.drive_config) || toc.sessions.size() <= 1;
}


Expand Down

0 comments on commit 39d36a2

Please sign in to comment.