mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Colorify SCSI MODE PAGE 1Ah
This commit is contained in:
60
Aaru.Decoders/Localization/Localization.Designer.cs
generated
60
Aaru.Decoders/Localization/Localization.Designer.cs
generated
@@ -19399,5 +19399,65 @@ namespace Aaru.Decoders {
|
||||
return ResourceManager.GetString("MediumTypes_CDR_Mixed_80", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string SCSI_Power_condition_page {
|
||||
get {
|
||||
return ResourceManager.GetString("SCSI_Power_condition_page", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Standby_timer_Z_is_set_to_0_ms {
|
||||
get {
|
||||
return ResourceManager.GetString("Standby_timer_Z_is_set_to_0_ms", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Standby_timer_Y_is_set_to_0_ms {
|
||||
get {
|
||||
return ResourceManager.GetString("Standby_timer_Y_is_set_to_0_ms", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Drive_will_not_enter_standby_mode {
|
||||
get {
|
||||
return ResourceManager.GetString("Drive_will_not_enter_standby_mode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Idle_timer_A_is_set_to_0_ms {
|
||||
get {
|
||||
return ResourceManager.GetString("Idle_timer_A_is_set_to_0_ms", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Idle_timer_B_is_set_to_0_ms {
|
||||
get {
|
||||
return ResourceManager.GetString("Idle_timer_B_is_set_to_0_ms", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Idle_timer_C_is_set_to_0_ms {
|
||||
get {
|
||||
return ResourceManager.GetString("Idle_timer_C_is_set_to_0_ms", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Drive_will_not_enter_idle_mode {
|
||||
get {
|
||||
return ResourceManager.GetString("Drive_will_not_enter_idle_mode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Background_take_precedence_over_low_power_conditions {
|
||||
get {
|
||||
return ResourceManager.GetString("Background_take_precedence_over_low_power_conditions", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Low_power_take_precedence_over_background {
|
||||
get {
|
||||
return ResourceManager.GetString("Low_power_take_precedence_over_background", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9757,4 +9757,34 @@
|
||||
<data name="MediumTypes_CDR_Mixed_80" xml:space="preserve">
|
||||
<value>80 mm CD-R with data and audio</value>
|
||||
</data>
|
||||
<data name="SCSI_Power_condition_page" xml:space="preserve">
|
||||
<value>SCSI Power condition page:</value>
|
||||
</data>
|
||||
<data name="Standby_timer_Z_is_set_to_0_ms" xml:space="preserve">
|
||||
<value>Standby timer Z is set to {0} ms</value>
|
||||
</data>
|
||||
<data name="Standby_timer_Y_is_set_to_0_ms" xml:space="preserve">
|
||||
<value>Standby timer Y is set to {0} ms</value>
|
||||
</data>
|
||||
<data name="Drive_will_not_enter_standby_mode" xml:space="preserve">
|
||||
<value>Drive will not enter standby mode</value>
|
||||
</data>
|
||||
<data name="Idle_timer_A_is_set_to_0_ms" xml:space="preserve">
|
||||
<value>Idle timer A is set to {0} ms</value>
|
||||
</data>
|
||||
<data name="Idle_timer_B_is_set_to_0_ms" xml:space="preserve">
|
||||
<value>Idle timer B is set to {0} ms</value>
|
||||
</data>
|
||||
<data name="Idle_timer_C_is_set_to_0_ms" xml:space="preserve">
|
||||
<value>Idle timer C is set to {0} ms</value>
|
||||
</data>
|
||||
<data name="Drive_will_not_enter_idle_mode" xml:space="preserve">
|
||||
<value>Drive will not enter idle mode</value>
|
||||
</data>
|
||||
<data name="Background_take_precedence_over_low_power_conditions" xml:space="preserve">
|
||||
<value>Performing background functions take precedence over maintaining low power conditions</value>
|
||||
</data>
|
||||
<data name="Low_power_take_precedence_over_background" xml:space="preserve">
|
||||
<value>Maintaining low power conditions take precedence over performing background functions</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -141,49 +141,59 @@ public static partial class Modes
|
||||
ModePage_1A page = modePage.Value;
|
||||
var sb = new StringBuilder();
|
||||
|
||||
sb.AppendLine("SCSI Power condition page:");
|
||||
sb.AppendLine($"[bold][blue]{Localization.SCSI_Power_condition_page}[/][/]");
|
||||
|
||||
if(page.PS) sb.AppendLine("\t" + Localization.Parameters_can_be_saved);
|
||||
if(page.PS) sb.AppendLine($"\t[green]{Localization.Parameters_can_be_saved}[/]");
|
||||
|
||||
if(page is { Standby: true, StandbyTimer: > 0 } or { Standby_Y: true, StandbyTimer_Y: > 0 })
|
||||
{
|
||||
if(page is { Standby: true, StandbyTimer: > 0 })
|
||||
sb.AppendFormat("\t" + "Standby timer Z is set to {0} ms", page.StandbyTimer * 100).AppendLine();
|
||||
sb.AppendFormat($"\t[slateblue1]{Localization.Standby_timer_Z_is_set_to_0_ms}[/]",
|
||||
$"[teal]{page.StandbyTimer * 100}[/]")
|
||||
.AppendLine();
|
||||
|
||||
if(page is { Standby_Y: true, StandbyTimer_Y: > 0 })
|
||||
sb.AppendFormat("\t" + "Standby timer Y is set to {0} ms", page.StandbyTimer_Y * 100).AppendLine();
|
||||
sb.AppendFormat($"\t[slateblue1]{Localization.Standby_timer_Y_is_set_to_0_ms}[/]",
|
||||
$"[teal]{page.StandbyTimer_Y * 100}[/]")
|
||||
.AppendLine();
|
||||
}
|
||||
else
|
||||
sb.AppendLine("\t" + "Drive will not enter standby mode");
|
||||
sb.AppendLine($"\t[red]{Localization.Drive_will_not_enter_standby_mode}[/]");
|
||||
|
||||
if(page is { Idle : true, IdleTimer : > 0 }
|
||||
or { Idle_B: true, IdleTimer_B: > 0 }
|
||||
or { Idle_C: true, IdleTimer_C: > 0 })
|
||||
{
|
||||
if(page is { Idle: true, IdleTimer: > 0 })
|
||||
sb.AppendFormat("\t" + "Idle timer A is set to {0} ms", page.IdleTimer * 100).AppendLine();
|
||||
sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_A_is_set_to_0_ms}[/]",
|
||||
$"[teal]{page.IdleTimer * 100}[/]")
|
||||
.AppendLine();
|
||||
|
||||
if(page is { Idle_B: true, IdleTimer_B: > 0 })
|
||||
sb.AppendFormat("\t" + "Idle timer B is set to {0} ms", page.IdleTimer_B * 100).AppendLine();
|
||||
sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_B_is_set_to_0_ms}[/]",
|
||||
$"[teal]{page.IdleTimer_B * 100}[/]")
|
||||
.AppendLine();
|
||||
|
||||
if(page is { Idle_C: true, IdleTimer_C: > 0 })
|
||||
sb.AppendFormat("\t" + "Idle timer C is set to {0} ms", page.IdleTimer_C * 100).AppendLine();
|
||||
sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_C_is_set_to_0_ms}[/]",
|
||||
$"[teal]{page.IdleTimer_C * 100}[/]")
|
||||
.AppendLine();
|
||||
}
|
||||
else
|
||||
sb.AppendLine("\t" + "Drive will not enter idle mode");
|
||||
sb.AppendLine($"\t[red]{Localization.Drive_will_not_enter_idle_mode}[/]");
|
||||
|
||||
switch(page.PM_BG_Precedence)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
sb.AppendLine("\t" +
|
||||
"Performing background functions take precedence over maintaining low power conditions");
|
||||
sb.AppendLine($"\t[olive]{
|
||||
Localization.Background_take_precedence_over_low_power_conditions}[/]");
|
||||
|
||||
break;
|
||||
case 2:
|
||||
sb.AppendLine("\t" +
|
||||
"Maintaining low power conditions take precedence over performing background functions");
|
||||
sb.AppendLine($"\t[green]{
|
||||
Localization.Low_power_take_precedence_over_background}[/]");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user