[GUI] Add encryption options to media dump window.

This commit is contained in:
2025-11-23 15:55:54 +00:00
parent 4ee2034475
commit 3628fcf9c2
5 changed files with 54 additions and 2 deletions

View File

@@ -170,6 +170,12 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
bool _paranoia;
[ObservableProperty]
bool _cureParanoia;
[ObservableProperty]
bool _storeEncryptedAsIs;
[ObservableProperty]
bool _readTitleKeys;
[ObservableProperty]
bool _isDvd;
public MediaDumpViewModel(Device device, string devicePath, DeviceInfo deviceInfo, Window view,
[CanBeNull] ScsiInfo scsiInfo = null)
@@ -205,6 +211,8 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
GenerateSubchannels = false;
Paranoia = false;
CureParanoia = false;
StoreEncryptedAsIs = true;
ReadTitleKeys = false;
MediaType mediaType;
@@ -315,6 +323,21 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
HasSubchannel = Track1PregapVisible;
IsDvd = mediaType switch
{
MediaType.DVDDownload
or MediaType.DVDPR
or MediaType.DVDPRDL
or MediaType.DVDPRW
or MediaType.DVDPRWDL
or MediaType.DVDR
or MediaType.DVDRAM
or MediaType.DVDROM
or MediaType.DVDRW
or MediaType.DVDRWDL => true,
_ => false
};
_dev = device;
_devicePath = devicePath;
}
@@ -724,8 +747,8 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
GenerateSubchannels,
64,
true,
true,
false,
StoreEncryptedAsIs,
ReadTitleKeys,
10,
true,
1080,