From e39fc57a0d90e6466cd25a313d1c09ce11fae197 Mon Sep 17 00:00:00 2001 From: Rebecca Wallander Date: Sun, 30 Nov 2025 10:28:03 +0100 Subject: [PATCH] Actually ask if you want to test Lite-On command --- Aaru.Localization/UI.resx | 3 +++ Aaru/Commands/Device/DeviceReport.cs | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/Aaru.Localization/UI.resx b/Aaru.Localization/UI.resx index fa017cf6b..d405f3e7b 100644 --- a/Aaru.Localization/UI.resx +++ b/Aaru.Localization/UI.resx @@ -288,6 +288,9 @@ In you are unsure, please press N to not continue. Do you have want to try MediaTek vendor command F1h subcommand 06h? + + + Do you have want to try Lite-On vendor commands? THIS IS DANGEROUS AND CAN IRREVERSIBLY DESTROY YOUR DRIVE (IF IN DOUBT PRESS 'N') diff --git a/Aaru/Commands/Device/DeviceReport.cs b/Aaru/Commands/Device/DeviceReport.cs index 21180daad..76aa9ebec 100644 --- a/Aaru/Commands/Device/DeviceReport.cs +++ b/Aaru/Commands/Device/DeviceReport.cs @@ -699,6 +699,14 @@ sealed class DeviceReportCommand : AsyncCommand false); } + if(!tryLiteOn) + { + tryLiteOn |= + AnsiConsole + .Confirm($"[italic]{UI.Do_you_want_to_try_LiteOn_commands} [red]{UI.This_is_dangerous}[/][/]", + false); + } + tryMediaTekF106 = AnsiConsole .Confirm($"[italic]{UI.Do_you_want_to_try_MediaTek_commands} [red]{UI.This_is_dangerous}[/][/]",