1
0
mirror of synced 2025-01-31 12:23:52 +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); string dir = Path.GetDirectoryName(sarc.FullName);
if (!sarcData.HashOnly)
{
if (dir == string.Empty) if (dir == string.Empty)
sarc.FullName = sarc.Text; sarc.FullName = sarc.Text;
else else
sarc.FullName = Path.Combine(dir, sarc.Text); sarc.FullName = Path.Combine(dir, sarc.Text);
sarc.FullName = sarc.FullName.Replace(@"\", "/"); sarc.FullName = sarc.FullName.Replace(@"\", "/");
}
sarcData.Files.Add(sarc.FullName, sarc.Data); sarcData.Files.Add(sarc.FullName, sarc.Data);
} }

Binary file not shown.

Binary file not shown.