diff options
| author | lempamo <[email protected]> | 2017-07-27 10:33:02 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-27 10:33:02 -0400 |
| commit | 5b6110d97fa02cb0711f48a685d68caf080c0665 (patch) | |
| tree | 887057e001cc4ab92853e808e2b1abaf0bba3d15 | |
| parent | 2de78eddf69b017d24b67347468afc60767b5d2c (diff) | |
| download | histacom2-5b6110d97fa02cb0711f48a685d68caf080c0665.tar.gz histacom2-5b6110d97fa02cb0711f48a685d68caf080c0665.tar.bz2 histacom2-5b6110d97fa02cb0711f48a685d68caf080c0665.zip | |
dosnames for directories too
| -rw-r--r-- | TimeHACK.Engine/SaveSystem.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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<THFileInfo>(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<THFileInfo> Files { get; set; } } |
