mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Redo Reformat and cleanup.
Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted. This is now done with Rider-stable.
This commit is contained in:
@@ -51,14 +51,12 @@ public sealed partial class ISO9660
|
||||
ApplicationIdentifier = StringHandlers.CToString(pvd.application_data).TrimEnd()
|
||||
};
|
||||
|
||||
if(pvd.creation_date[0] == '0' ||
|
||||
pvd.creation_date[0] == 0x00)
|
||||
if(pvd.creation_date[0] == '0' || pvd.creation_date[0] == 0x00)
|
||||
decodedVd.CreationTime = DateTime.MinValue;
|
||||
else
|
||||
decodedVd.CreationTime = DateHandlers.HighSierraToDateTime(pvd.creation_date);
|
||||
|
||||
if(pvd.modification_date[0] == '0' ||
|
||||
pvd.modification_date[0] == 0x00)
|
||||
if(pvd.modification_date[0] == '0' || pvd.modification_date[0] == 0x00)
|
||||
decodedVd.HasModificationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -66,8 +64,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ModificationTime = DateHandlers.HighSierraToDateTime(pvd.modification_date);
|
||||
}
|
||||
|
||||
if(pvd.expiration_date[0] == '0' ||
|
||||
pvd.expiration_date[0] == 0x00)
|
||||
if(pvd.expiration_date[0] == '0' || pvd.expiration_date[0] == 0x00)
|
||||
decodedVd.HasExpirationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -75,8 +72,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ExpirationTime = DateHandlers.HighSierraToDateTime(pvd.expiration_date);
|
||||
}
|
||||
|
||||
if(pvd.effective_date[0] == '0' ||
|
||||
pvd.effective_date[0] == 0x00)
|
||||
if(pvd.effective_date[0] == '0' || pvd.effective_date[0] == 0x00)
|
||||
decodedVd.HasEffectiveTime = false;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -48,14 +48,12 @@ public sealed partial class ISO9660
|
||||
ApplicationIdentifier = Encoding.ASCII.GetString(pvd.application_data).TrimEnd().Trim('\0')
|
||||
};
|
||||
|
||||
if(pvd.creation_date[0] == '0' ||
|
||||
pvd.creation_date[0] == 0x00)
|
||||
if(pvd.creation_date[0] == '0' || pvd.creation_date[0] == 0x00)
|
||||
decodedVd.CreationTime = DateTime.MinValue;
|
||||
else
|
||||
decodedVd.CreationTime = DateHandlers.HighSierraToDateTime(pvd.creation_date);
|
||||
|
||||
if(pvd.modification_date[0] == '0' ||
|
||||
pvd.modification_date[0] == 0x00)
|
||||
if(pvd.modification_date[0] == '0' || pvd.modification_date[0] == 0x00)
|
||||
decodedVd.HasModificationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -63,8 +61,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ModificationTime = DateHandlers.HighSierraToDateTime(pvd.modification_date);
|
||||
}
|
||||
|
||||
if(pvd.expiration_date[0] == '0' ||
|
||||
pvd.expiration_date[0] == 0x00)
|
||||
if(pvd.expiration_date[0] == '0' || pvd.expiration_date[0] == 0x00)
|
||||
decodedVd.HasExpirationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -72,8 +69,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ExpirationTime = DateHandlers.HighSierraToDateTime(pvd.expiration_date);
|
||||
}
|
||||
|
||||
if(pvd.effective_date[0] == '0' ||
|
||||
pvd.effective_date[0] == 0x00)
|
||||
if(pvd.effective_date[0] == '0' || pvd.effective_date[0] == 0x00)
|
||||
decodedVd.HasEffectiveTime = false;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -52,14 +52,12 @@ public sealed partial class ISO9660
|
||||
ApplicationIdentifier = StringHandlers.CToString(pvd.application_id, encoding).TrimEnd()
|
||||
};
|
||||
|
||||
if(pvd.creation_date[0] == '0' ||
|
||||
pvd.creation_date[0] == 0x00)
|
||||
if(pvd.creation_date[0] == '0' || pvd.creation_date[0] == 0x00)
|
||||
decodedVd.CreationTime = DateTime.MinValue;
|
||||
else
|
||||
decodedVd.CreationTime = DateHandlers.Iso9660ToDateTime(pvd.creation_date);
|
||||
|
||||
if(pvd.modification_date[0] == '0' ||
|
||||
pvd.modification_date[0] == 0x00)
|
||||
if(pvd.modification_date[0] == '0' || pvd.modification_date[0] == 0x00)
|
||||
decodedVd.HasModificationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -67,8 +65,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ModificationTime = DateHandlers.Iso9660ToDateTime(pvd.modification_date);
|
||||
}
|
||||
|
||||
if(pvd.expiration_date[0] == '0' ||
|
||||
pvd.expiration_date[0] == 0x00)
|
||||
if(pvd.expiration_date[0] == '0' || pvd.expiration_date[0] == 0x00)
|
||||
decodedVd.HasExpirationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -76,8 +73,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ExpirationTime = DateHandlers.Iso9660ToDateTime(pvd.expiration_date);
|
||||
}
|
||||
|
||||
if(pvd.effective_date[0] == '0' ||
|
||||
pvd.effective_date[0] == 0x00)
|
||||
if(pvd.effective_date[0] == '0' || pvd.effective_date[0] == 0x00)
|
||||
decodedVd.HasEffectiveTime = false;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -41,24 +41,26 @@ public sealed partial class ISO9660
|
||||
{
|
||||
SystemIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.system_id).Replace('\u0000', ' ').TrimEnd(),
|
||||
VolumeIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.volume_id).Replace('\u0000', ' ').TrimEnd(),
|
||||
VolumeSetIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.volume_set_id).Replace('\u0000', ' ').
|
||||
VolumeSetIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.volume_set_id).
|
||||
Replace('\u0000', ' ').
|
||||
TrimEnd(),
|
||||
PublisherIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.publisher_id).Replace('\u0000', ' ').
|
||||
PublisherIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.publisher_id).
|
||||
Replace('\u0000', ' ').
|
||||
TrimEnd(),
|
||||
DataPreparerIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.preparer_id).Replace('\u0000', ' ').
|
||||
DataPreparerIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.preparer_id).
|
||||
Replace('\u0000', ' ').
|
||||
TrimEnd(),
|
||||
ApplicationIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.application_id).Replace('\u0000', ' ').
|
||||
ApplicationIdentifier = Encoding.BigEndianUnicode.GetString(jolietvd.application_id).
|
||||
Replace('\u0000', ' ').
|
||||
TrimEnd()
|
||||
};
|
||||
|
||||
if(jolietvd.creation_date[0] < 0x31 ||
|
||||
jolietvd.creation_date[0] > 0x39)
|
||||
if(jolietvd.creation_date[0] < 0x31 || jolietvd.creation_date[0] > 0x39)
|
||||
decodedVd.CreationTime = DateTime.MinValue;
|
||||
else
|
||||
decodedVd.CreationTime = DateHandlers.Iso9660ToDateTime(jolietvd.creation_date);
|
||||
|
||||
if(jolietvd.modification_date[0] < 0x31 ||
|
||||
jolietvd.modification_date[0] > 0x39)
|
||||
if(jolietvd.modification_date[0] < 0x31 || jolietvd.modification_date[0] > 0x39)
|
||||
decodedVd.HasModificationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -66,8 +68,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ModificationTime = DateHandlers.Iso9660ToDateTime(jolietvd.modification_date);
|
||||
}
|
||||
|
||||
if(jolietvd.expiration_date[0] < 0x31 ||
|
||||
jolietvd.expiration_date[0] > 0x39)
|
||||
if(jolietvd.expiration_date[0] < 0x31 || jolietvd.expiration_date[0] > 0x39)
|
||||
decodedVd.HasExpirationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -75,8 +76,7 @@ public sealed partial class ISO9660
|
||||
decodedVd.ExpirationTime = DateHandlers.Iso9660ToDateTime(jolietvd.expiration_date);
|
||||
}
|
||||
|
||||
if(jolietvd.effective_date[0] < 0x31 ||
|
||||
jolietvd.effective_date[0] > 0x39)
|
||||
if(jolietvd.effective_date[0] < 0x31 || jolietvd.effective_date[0] > 0x39)
|
||||
decodedVd.HasEffectiveTime = false;
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user