1
0
mirror of synced 2025-02-26 06:49:45 +01:00

Improve path saving for byaml

This commit is contained in:
KillzXGaming 2019-05-30 17:40:54 -04:00
parent ccf45c7961
commit 225d98ae43
7 changed files with 3 additions and 8 deletions

Binary file not shown.

View File

@ -141,11 +141,9 @@ namespace FirstPlugin
bool IsDialog = false;
BymlFileData data;
private bool SupportPaths = false;
public ByamlEditor OpenForm()
{
ByamlEditor editor = new ByamlEditor(data.RootNode, SupportPaths, data.Version, data.byteOrder, IsDialog, this);
ByamlEditor editor = new ByamlEditor(data.RootNode, data.SupportPaths, data.Version, data.byteOrder, IsDialog, this);
editor.FileFormat = this;
editor.Text = FileName;
editor.Dock = DockStyle.Fill;
@ -158,8 +156,7 @@ namespace FirstPlugin
IsDialog = IFileInfo != null && IFileInfo.InArchive;
data = ByamlFile.LoadN(stream, true);
SupportPaths = data.SupportPaths;
data = ByamlFile.LoadN(stream);
}
public void Unload()
{
@ -168,14 +165,12 @@ namespace FirstPlugin
public byte[] Save()
{
SupportPaths = false;
MemoryStream mem = new MemoryStream();
ByamlFile.SaveN(mem, new BymlFileData
{
Version = data.Version,
byteOrder = data.byteOrder,
SupportPaths = SupportPaths,
SupportPaths = data.SupportPaths,
RootNode = data.RootNode
});

Binary file not shown.

Binary file not shown.