mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Migrate pcmcia info from Eto.Forms to Avalonia.
This commit is contained in:
@@ -371,6 +371,12 @@ namespace Aaru.Gui.ViewModels
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.DVD_BCA))
|
||||
dvdBca = imageFormat.ReadDiskTag(MediaTagType.DVD_BCA);
|
||||
|
||||
DvdInfo = new DvdInfoTab
|
||||
{
|
||||
DataContext = new DvdInfoViewModel(imageFormat.Info.MediaType, dvdPfi, dvdDmi, dvdCmi,
|
||||
hddvdCopyrightInformation, dvdBca, null, decodedPfi, _view)
|
||||
};
|
||||
|
||||
byte[] dvdRamDds = null;
|
||||
byte[] dvdRamCartridgeStatus = null;
|
||||
byte[] dvdRamSpareArea = null;
|
||||
@@ -517,7 +523,6 @@ namespace Aaru.Gui.ViewModels
|
||||
tabXboxInfo.LoadData(null, xboxDmi, xboxSecuritySector, decodedXboxSecuritySector);
|
||||
tabInfos.Pages.Add(tabXboxInfo);
|
||||
*/
|
||||
/* TODO: tabPcmciaInfo
|
||||
|
||||
byte[] pcmciaCis = null;
|
||||
|
||||
@@ -525,79 +530,79 @@ namespace Aaru.Gui.ViewModels
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.PCMCIA_CIS))
|
||||
pcmciaCis = imageFormat.ReadDiskTag(MediaTagType.PCMCIA_CIS);
|
||||
|
||||
var tabPcmciaInfo = new tabPcmciaInfo();
|
||||
tabPcmciaInfo.LoadData(pcmciaCis);
|
||||
tabInfos.Pages.Add(tabPcmciaInfo);
|
||||
*/
|
||||
/* TODO: tabSdMmcInfo
|
||||
|
||||
DeviceType deviceType = DeviceType.Unknown;
|
||||
byte[] cid = null;
|
||||
byte[] csd = null;
|
||||
byte[] ocr = null;
|
||||
byte[] extendedCsd = null;
|
||||
byte[] scr = null;
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_CID))
|
||||
PcmciaInfo = new PcmciaInfoTab
|
||||
{
|
||||
cid = imageFormat.ReadDiskTag(MediaTagType.SD_CID);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
DataContext = new PcmciaInfoViewModel(pcmciaCis, _view)
|
||||
};
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_CSD))
|
||||
{
|
||||
csd = imageFormat.ReadDiskTag(MediaTagType.SD_CSD);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
/* TODO: SD/MMC
|
||||
DeviceType deviceType = DeviceType.Unknown;
|
||||
byte[] cid = null;
|
||||
byte[] csd = null;
|
||||
byte[] ocr = null;
|
||||
byte[] extendedCsd = null;
|
||||
byte[] scr = null;
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_OCR))
|
||||
{
|
||||
ocr = imageFormat.ReadDiskTag(MediaTagType.SD_OCR);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_CID))
|
||||
{
|
||||
cid = imageFormat.ReadDiskTag(MediaTagType.SD_CID);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_SCR))
|
||||
{
|
||||
scr = imageFormat.ReadDiskTag(MediaTagType.SD_SCR);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_CSD))
|
||||
{
|
||||
csd = imageFormat.ReadDiskTag(MediaTagType.SD_CSD);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_CID))
|
||||
{
|
||||
cid = imageFormat.ReadDiskTag(MediaTagType.MMC_CID);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_OCR))
|
||||
{
|
||||
ocr = imageFormat.ReadDiskTag(MediaTagType.SD_OCR);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_CSD))
|
||||
{
|
||||
csd = imageFormat.ReadDiskTag(MediaTagType.MMC_CSD);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.SD_SCR))
|
||||
{
|
||||
scr = imageFormat.ReadDiskTag(MediaTagType.SD_SCR);
|
||||
deviceType = DeviceType.SecureDigital;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_OCR))
|
||||
{
|
||||
ocr = imageFormat.ReadDiskTag(MediaTagType.MMC_OCR);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_CID))
|
||||
{
|
||||
cid = imageFormat.ReadDiskTag(MediaTagType.MMC_CID);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_ExtendedCSD))
|
||||
{
|
||||
extendedCsd = imageFormat.ReadDiskTag(MediaTagType.MMC_ExtendedCSD);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_CSD))
|
||||
{
|
||||
csd = imageFormat.ReadDiskTag(MediaTagType.MMC_CSD);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
|
||||
var tabSdMmcInfo = new tabSdMmcInfo();
|
||||
tabSdMmcInfo.LoadData(deviceType, cid, csd, ocr, extendedCsd, scr);
|
||||
tabInfos.Pages.Add(tabSdMmcInfo);
|
||||
*/
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_OCR))
|
||||
{
|
||||
ocr = imageFormat.ReadDiskTag(MediaTagType.MMC_OCR);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
|
||||
if(imageFormat.Info.ReadableMediaTags != null &&
|
||||
imageFormat.Info.ReadableMediaTags.Contains(MediaTagType.MMC_ExtendedCSD))
|
||||
{
|
||||
extendedCsd = imageFormat.ReadDiskTag(MediaTagType.MMC_ExtendedCSD);
|
||||
deviceType = DeviceType.MMC;
|
||||
}
|
||||
|
||||
var tabSdMmcInfo = new tabSdMmcInfo();
|
||||
tabSdMmcInfo.LoadData(deviceType, cid, csd, ocr, extendedCsd, scr);
|
||||
tabInfos.Pages.Add(tabSdMmcInfo);
|
||||
*/
|
||||
if(imageFormat is IOpticalMediaImage opticalMediaImage)
|
||||
{
|
||||
try
|
||||
@@ -646,6 +651,7 @@ namespace Aaru.Gui.ViewModels
|
||||
public DvdInfoTab DvdInfo { get; }
|
||||
public DvdWritableInfoTab DvdWritableInfo { get; }
|
||||
public BlurayInfoTab BlurayInfo { get; }
|
||||
public PcmciaInfoTab PcmciaInfo { get; }
|
||||
public Bitmap MediaLogo { get; }
|
||||
public string ImagePathText { get; }
|
||||
public string FilterText { get; }
|
||||
|
||||
Reference in New Issue
Block a user