Fix hash only sarcs from saving
This commit is contained in:
parent
831efdb027
commit
b87cc40857
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user