Skip to content

Commit

Permalink
minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyng43 committed Dec 14, 2024
1 parent 2cf2221 commit 1256c5c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ private void Form1_Load(object sender, EventArgs e)
dataGridView1.DragEnter += dataGridView1_DragEnter;
dataGridView1.DragDrop += dataGridView1_DragDrop;

label2.Visible = false;
label4.Visible = false;

button2.Visible = false;
button4.Visible = false;

LoadReferenceHeader();
LoadReferenceBody();
}
Expand Down Expand Up @@ -205,11 +211,13 @@ private void PopulateTrackData(string filePath)
byte[] fileBodyBytes = reader.ReadBytes((int)(fs.Length - 0x6800));
if (!fileBodyBytes.SequenceEqual(referenceBytesBody.Take(fileBodyBytes.Length)))
{
label2.Visible = true;
label2.Text = "Modified: True";
}

if (fileBodyBytes.SequenceEqual(referenceBytesBody.Take(fileBodyBytes.Length)))
{
label2.Visible = true;
label2.Text = "Modified: False";
}

Expand Down Expand Up @@ -284,8 +292,13 @@ private void PopulateTrackData(string filePath)
trackIndex++;
}
label1.Text = "SYSTEM.nub is Loaded";
label2.Visible = true;
label3.Visible = false;
label4.Visible = true;
label4.Text = "Loaded Version: MT6";

button2.Visible = true;
button4.Visible = true;
}
}
catch (Exception ex)
Expand Down

0 comments on commit 1256c5c

Please sign in to comment.