Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions options.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export struct Options
bool kreon_partial_ss;
bool dvd_raw;
bool bd_raw;
bool force_omnidrive;
bool disable_cdtext;
bool correct_offset_shift;
bool offset_shift_relocate;
Expand Down Expand Up @@ -126,6 +127,7 @@ export struct Options
, kreon_partial_ss(false)
, dvd_raw(false)
, bd_raw(false)
, force_omnidrive(false)
, disable_cdtext(false)
, correct_offset_shift(false)
, offset_shift_relocate(false)
Expand Down Expand Up @@ -292,6 +294,8 @@ export struct Options
dvd_raw = true;
else if(key == "--bd-raw")
bd_raw = true;
else if(key == "--force-omnidrive")
force_omnidrive = true;
else if(key == "--disable-cdtext")
disable_cdtext = true;
else if(key == "--correct-offset-shift")
Expand Down Expand Up @@ -445,6 +449,7 @@ export struct Options
LOG("\t--kreon-partial-ss \tget minimal security sector (fixes bad firmware)");
LOG("\t--dvd-raw \tdump raw DVD sectors (OmniDrive)");
LOG("\t--bd-raw \tdump raw BD sectors (OmniDrive)");
LOG("\t--force-omnidrive \tforce OmniDrive mode (if drive enclosure overwrites drive inquiry)");
LOG("\t--disable-cdtext \tdisable CD-TEXT reading");
LOG("");
LOG("\t(offset)");
Expand Down
8 changes: 8 additions & 0 deletions redumper.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import scsi.cmd;
import scsi.mmc;
import scsi.sptd;
import skeleton;
import utils.endian;
import utils.file_io;
import utils.logger;
import utils.misc;
Expand Down Expand Up @@ -433,6 +434,13 @@ export int redumper(Options &options)
drive_override_config(ctx.drive_config, options.drive_type.get(), options.drive_read_offset.get(), options.drive_c2_shift.get(), options.drive_pregap_start.get(),
options.drive_read_method.get(), options.drive_sector_order.get());

if(options.force_omnidrive && !is_omnidrive_firmware(ctx.drive_config))
{
char vvv[3];
endian_swap_to_array(vvv, omnidrive_minimum_version());
ctx.drive_config.reserved5 = std::string("OmniDrive") + std::string(vvv, sizeof(vvv));
}

std::optional<GET_CONFIGURATION_FeatureCode_ProfileList> current_profile;
if(aggregate.drive_ready)
{
Expand Down
Loading