Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes-containers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-11-04 15:53:02 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-11-04 15:53:02 +0300
commitee11aae7f78810c4e002e26b03754a46d0a18ddd (patch)
treef3e9dbd43ab59e69cb1b1a9e2f92f6bc7eecf563 /FdsBlockDiskInfo.cs
parentc02d5efa89d71092675d73744e76e9aeb518d813 (diff)
Nullable types
Diffstat (limited to 'FdsBlockDiskInfo.cs')
-rw-r--r--FdsBlockDiskInfo.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/FdsBlockDiskInfo.cs b/FdsBlockDiskInfo.cs
index 9f91957..5a893ef 100644
--- a/FdsBlockDiskInfo.cs
+++ b/FdsBlockDiskInfo.cs
@@ -653,7 +653,7 @@ namespace com.clusterrr.Famicom.Containers
public Company LicenseeCode { get => (Company)manufacturerCode; set => manufacturerCode = (byte)value; }
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
- byte[] gameName;
+ byte[] gameName = Encoding.ASCII.GetBytes("---");
/// <summary>
/// 3-letter ASCII code per game (e.g. ZEL for The Legend of Zelda)
/// </summary>
@@ -718,7 +718,7 @@ namespace com.clusterrr.Famicom.Containers
readonly byte unknown06 = 0xFF;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
- byte[] manufacturingDate;
+ byte[] manufacturingDate = { 0, 0, 0 };
/// <summary>
/// Manufacturing date
/// </summary>
@@ -769,10 +769,10 @@ namespace com.clusterrr.Famicom.Containers
readonly ushort unknown09 = 0x0200;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
// Speculative: some kind of game information representation?
- readonly byte[] unknown10;
+ readonly byte[] unknown10 = { 0, 0, 0, 0, 0 };
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
- byte[] rewrittenDate;
+ byte[] rewrittenDate = { 0, 0, 0 };
/// <summary>
/// "Rewritten disk" date. It's speculated this refers to the date the disk was formatted and rewritten by something like a Disk Writer kiosk.
/// In the case of an original (non-copied) disk, this should be the same as Manufacturing date
@@ -881,7 +881,7 @@ namespace com.clusterrr.Famicom.Containers
}
/// <summary>
- /// Return raw data
+ /// Returns raw data
/// </summary>
/// <returns>Data</returns>
public byte[] ToBytes()