Update ClientinfoCreator.cs

This commit is contained in:
Bitl 2021-11-03 11:11:20 -07:00
parent e2e37e78e7
commit 89f3405819
1 changed files with 1 additions and 2 deletions

View File

@ -419,8 +419,7 @@ public partial class ClientinfoEditor : Form
{ {
string fileMD5 = SecurityFuncs.GenerateMD5(file.FullName); string fileMD5 = SecurityFuncs.GenerateMD5(file.FullName);
string filePathStrip = file.FullName.Replace(SelectedClientInfoPath, ""); string filePathStrip = file.FullName.Replace(SelectedClientInfoPath, "");
string filePathStripCheck = (string.IsNullOrWhiteSpace(RelativePath) ? filePathStrip.Replace(@"/", "").Replace(@"\", "") : filePathStrip); text.Add("<validate>" + filePathStrip.TrimStart('/', '\\') + "|" + fileMD5 + "</validate>");
text.Add("<validate>" + filePathStripCheck + "|" + fileMD5 + "</validate>");
} }
string joined = string.Join("\r\n", text); string joined = string.Join("\r\n", text);