From 5b6110d97fa02cb0711f48a685d68caf080c0665 Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 27 Jul 2017 10:33:02 -0400 Subject: dosnames for directories too --- TimeHACK.Engine/SaveSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index f98abcd..7dc5aaa 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -269,6 +269,9 @@ namespace TimeHACK.Engine info.IsProtected = isProtected; info.Label = label; + + info.DOSLabel = info.Label.ToUpper().Replace("*", "").Replace("+", "").Replace(":", "").Replace(";", "").Replace(".", "").Replace(" ", ""); + if (info.DOSLabel.Length > 8) info.DOSLabel = info.DOSLabel.Substring(0, 6) + "~1"; info.AllowBack = allowback; info.Files = new List(256); @@ -642,6 +645,7 @@ namespace TimeHACK.Engine { public bool IsProtected { get; set; } public string Label { get; set; } + public string DOSLabel { get; set; } public bool AllowBack { get; set; } public List Files { get; set; } } -- cgit v1.2.3