mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Add encryption options to media dump window.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -196,6 +196,23 @@
|
||||
</CheckBox>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<TabItem.Header>
|
||||
<controls:SpectreTextBlock Text="{x:Static localization:UI.Encryption}" />
|
||||
</TabItem.Header>
|
||||
<StackPanel Orientation="Vertical"
|
||||
Spacing="8">
|
||||
<CheckBox IsChecked="{Binding StoreEncryptedAsIs, Mode=TwoWay}">
|
||||
<TextBlock Text="{x:Static localization:UI.Store_encrypted_data_as_is}"
|
||||
TextWrapping="Wrap" />
|
||||
</CheckBox>
|
||||
<CheckBox IsChecked="{Binding ReadTitleKeys, Mode=TwoWay}"
|
||||
IsVisible="{Binding IsDvd, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static localization:UI.Try_to_read_the_title_keys_from_CSS_DVDs}"
|
||||
TextWrapping="Wrap" />
|
||||
</CheckBox>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<!-- TODO: Image options -->
|
||||
</TabControl>
|
||||
<Grid Grid.Row="1"
|
||||
|
||||
6
Aaru.Localization/UI.Designer.cs
generated
6
Aaru.Localization/UI.Designer.cs
generated
@@ -6669,5 +6669,11 @@ namespace Aaru.Localization {
|
||||
return ResourceManager.GetString("Errors", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Encryption {
|
||||
get {
|
||||
return ResourceManager.GetString("Encryption", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3335,4 +3335,7 @@ Probadores:
|
||||
<data name="Errors" xml:space="preserve">
|
||||
<value>Errores</value>
|
||||
</data>
|
||||
<data name="Encryption" xml:space="preserve">
|
||||
<value>Encriptación</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -3410,4 +3410,7 @@ Do you want to continue?</value>
|
||||
<data name="Errors" xml:space="preserve">
|
||||
<value>Errors</value>
|
||||
</data>
|
||||
<data name="Encryption" xml:space="preserve">
|
||||
<value>Encryption</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user