1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Fix hash only sarcs from saving

This commit is contained in:
KillzXGaming 2019-03-31 17:06:12 -04:00
parent 831efdb027
commit b87cc40857
8 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@ -195,12 +195,15 @@ namespace FirstPlugin
{
string dir = Path.GetDirectoryName(sarc.FullName);
if (dir == string.Empty)
sarc.FullName = sarc.Text;
else
sarc.FullName = Path.Combine(dir, sarc.Text);
if (!sarcData.HashOnly)
{
if (dir == string.Empty)
sarc.FullName = sarc.Text;
else
sarc.FullName = Path.Combine(dir, sarc.Text);
sarc.FullName = sarc.FullName.Replace(@"\", "/");
sarc.FullName = sarc.FullName.Replace(@"\", "/");
}
sarcData.Files.Add(sarc.FullName, sarc.Data);
}

Binary file not shown.

Binary file not shown.