Skip to content

Commit

Permalink
Added Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymekk44 committed Sep 21, 2024
1 parent 8427ece commit 355e2be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/Cosmos.System2/FileSystem/Disk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.Design.Serialization;
using System.Linq;
using System.Net.Mime;
using System.Text;
using Cosmos.HAL;
Expand Down Expand Up @@ -326,11 +327,17 @@ public void MountPartition(int index)
Array.Copy(volumeLabelBytes, trimmedVolumeLabelBytes, actualLength);
Label = Encoding.UTF8.GetString(trimmedVolumeLabelBytes);
global::System.Console.WriteLine("Label (saved): " + Label);
if(Label.Length == 0)
{
Label = VFSManager.GetNextFilesystemLetter();
global::System.Console.WriteLine("Label empty.");
global::System.Console.WriteLine("Generated new Label: " + Label);
}
}
else
{
Label = VFSManager.GetNextFilesystemLetter();
global::System.Console.WriteLine("Generated new Label " + Label);
global::System.Console.WriteLine("Generated new Label: " + Label);
}

string xRootPath = string.Concat(Label, VFSBase.VolumeSeparatorChar, VFSBase.DirectorySeparatorChar);
Expand Down

0 comments on commit 355e2be

Please sign in to comment.