mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added an Aaru metadata editor.
This commit is contained in:
@@ -70,12 +70,12 @@ public sealed class AtaInfoViewModel : ViewModelBase
|
||||
{
|
||||
AtaMcptText = (ataMcptError.Value.DeviceHead & 0x7) switch
|
||||
{
|
||||
0 => Localization.Core.Device_reports_incorrect_media_card_type,
|
||||
1 => Localization.Core.Device_contains_SD_card,
|
||||
2 => Localization.Core.Device_contains_MMC,
|
||||
3 => Localization.Core.Device_contains_SDIO_card,
|
||||
4 => Localization.Core.Device_contains_SM_card,
|
||||
_ => string.Format(Localization.Core.Device_contains_unknown_media_card_type_0,
|
||||
0 => Aaru.Localization.Core.Device_reports_incorrect_media_card_type,
|
||||
1 => Aaru.Localization.Core.Device_contains_SD_card,
|
||||
2 => Aaru.Localization.Core.Device_contains_MMC,
|
||||
3 => Aaru.Localization.Core.Device_contains_SDIO_card,
|
||||
4 => Aaru.Localization.Core.Device_contains_SM_card,
|
||||
_ => string.Format(Aaru.Localization.Core.Device_contains_unknown_media_card_type_0,
|
||||
ataMcptError.Value.DeviceHead & 0x07)
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ public sealed class AtaInfoViewModel : ViewModelBase
|
||||
|
||||
var specificData = (ushort)(ataMcptError.Value.CylinderHigh * 0x100 + ataMcptError.Value.CylinderLow);
|
||||
|
||||
AtaMcptSpecificDataText = string.Format(Localization.Core.Card_specific_data_0, specificData);
|
||||
AtaMcptSpecificDataText = string.Format(Aaru.Localization.Core.Card_specific_data_0, specificData);
|
||||
}
|
||||
|
||||
AtaIdentifyText = Identify.Prettify(_ata);
|
||||
|
||||
@@ -135,8 +135,10 @@ public sealed partial class PcmciaInfoViewModel : ViewModelBase
|
||||
|
||||
break;
|
||||
default:
|
||||
tupleCode = $"0x{(byte)tuple.Code:X2}";
|
||||
tupleDescription = string.Format(Localization.Core.Found_unknown_tuple_ID_0, (byte)tuple.Code);
|
||||
tupleCode = $"0x{(byte)tuple.Code:X2}";
|
||||
|
||||
tupleDescription =
|
||||
string.Format(Aaru.Localization.Core.Found_unknown_tuple_ID_0, (byte)tuple.Code);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
case 0x30:
|
||||
{
|
||||
if(Modes.IsAppleModePage_30(page.PageResponse))
|
||||
decodedText = Localization.Core.Drive_identifies_as_Apple_OEM_drive;
|
||||
decodedText = Aaru.Localization.Core.Drive_identifies_as_Apple_OEM_drive;
|
||||
else
|
||||
goto default;
|
||||
|
||||
@@ -608,7 +608,9 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
evpdPageTitle = string.Format(UI.Page_0_h, page.Key);
|
||||
evpdDecodedPage = UI.Undecoded;
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Found_undecoded_SCSI_VPD_page_0, page.Key);
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
Aaru.Localization.Core.Found_undecoded_SCSI_VPD_page_0,
|
||||
page.Key);
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -627,16 +629,18 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
|
||||
Features.SeparatedFeatures ftr = Features.Separate(_configuration);
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.GET_CONFIGURATION_length_is_0, ftr.DataLength);
|
||||
AaruLogging.Debug(MODULE_NAME, Aaru.Localization.Core.GET_CONFIGURATION_length_is_0, ftr.DataLength);
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.GET_CONFIGURATION_current_profile_is_0, ftr.CurrentProfile);
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
Aaru.Localization.Core.GET_CONFIGURATION_current_profile_is_0,
|
||||
ftr.CurrentProfile);
|
||||
|
||||
if(ftr.Descriptors != null)
|
||||
{
|
||||
foreach(Features.FeatureDescriptor desc in ftr.Descriptors)
|
||||
{
|
||||
var featureNumber = string.Format(Localization.Core.Feature_0, desc.Code);
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Feature_0, desc.Code);
|
||||
var featureNumber = string.Format(Aaru.Localization.Core.Feature_0, desc.Code);
|
||||
AaruLogging.Debug(MODULE_NAME, Aaru.Localization.Core.Feature_0, desc.Code);
|
||||
|
||||
string featureDescription = desc.Code switch
|
||||
{
|
||||
@@ -709,7 +713,7 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
}
|
||||
}
|
||||
else
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.GET_CONFIGURATION_returned_no_feature_descriptors);
|
||||
AaruLogging.Debug(MODULE_NAME, Aaru.Localization.Core.GET_CONFIGURATION_returned_no_feature_descriptors);
|
||||
}
|
||||
|
||||
public byte[] InquiryData { get; }
|
||||
|
||||
@@ -58,11 +58,11 @@ public sealed class XboxInfoViewModel
|
||||
if(xgdInfo != null)
|
||||
{
|
||||
XboxInformationVisible = true;
|
||||
XboxL0VideoText = string.Format(Localization.Core._0_sectors, xgdInfo.L0Video);
|
||||
XboxL1VideoText = string.Format(Localization.Core._0_sectors, xgdInfo.L1Video);
|
||||
XboxMiddleZoneText = string.Format(Localization.Core._0_sectors, xgdInfo.MiddleZone);
|
||||
XboxGameSizeText = string.Format(Localization.Core._0_sectors, xgdInfo.GameSize);
|
||||
XboxTotalSizeText = string.Format(Localization.Core._0_sectors, xgdInfo.TotalSize);
|
||||
XboxL0VideoText = string.Format(Aaru.Localization.Core._0_sectors, xgdInfo.L0Video);
|
||||
XboxL1VideoText = string.Format(Aaru.Localization.Core._0_sectors, xgdInfo.L1Video);
|
||||
XboxMiddleZoneText = string.Format(Aaru.Localization.Core._0_sectors, xgdInfo.MiddleZone);
|
||||
XboxGameSizeText = string.Format(Aaru.Localization.Core._0_sectors, xgdInfo.GameSize);
|
||||
XboxTotalSizeText = string.Format(Aaru.Localization.Core._0_sectors, xgdInfo.TotalSize);
|
||||
XboxRealBreakText = xgdInfo.LayerBreak.ToString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user