Update thingy.
This commit is contained in:
parent
84f2ec35cc
commit
98be1813ba
|
@ -86,19 +86,25 @@ namespace Li::Gui {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DumpDVD::reset() {
|
void DumpDVD::reset() {
|
||||||
if (this->GetCurrentSelectedDrive()->DiscInDrive()) {
|
if (this->drivesList->size() > 0) {
|
||||||
this->selectedDriveSpeed = this->GetCurrentSelectedDrive()->SupportedSpeeds()->size();
|
if (this->GetCurrentSelectedDrive()->DiscInDrive()) {
|
||||||
if (this->GetCurrentSelectedDrive()->HasCss()) {
|
this->selectedDriveSpeed = this->GetCurrentSelectedDrive()->SupportedSpeeds()->size();
|
||||||
this->decrypt = true;
|
if (this->GetCurrentSelectedDrive()->HasCss()) {
|
||||||
|
this->decrypt = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
this->selectedDriveSpeed = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::filesystem::path p = std::filesystem::path(Utils::GetDocumentsFolder());
|
||||||
|
p = p.append(GetCurrentSelectedDrive()->VolumeName()).replace_extension(".iso");
|
||||||
|
strncpy(this->outputFile, p.string().c_str(), sizeof(DumpDVD::outputFile) - 1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this->selectedDriveSpeed = 0;
|
this->selectedDriveSpeed = 0;
|
||||||
|
memset(this->outputFile, 0, sizeof(DumpDVD::outputFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::filesystem::path p = std::filesystem::path(Utils::GetDocumentsFolder());
|
|
||||||
p = p.append(GetCurrentSelectedDrive()->VolumeName()).replace_extension(".iso");
|
|
||||||
strncpy(this->outputFile, p.string().c_str(), sizeof(DumpDVD::outputFile)-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Li::Scsi::OpticalDrive* DumpDVD::GetCurrentSelectedDrive() {
|
Li::Scsi::OpticalDrive* DumpDVD::GetCurrentSelectedDrive() {
|
||||||
|
|
Loading…
Reference in New Issue