1
0
mirror of synced 2024-11-28 01:10:51 +01:00

Fix some issues with bea archives

This commit is contained in:
KillzXGaming 2019-05-15 20:54:00 -04:00
parent f08a08ce32
commit c061c9b052
7 changed files with 24 additions and 2 deletions

Binary file not shown.

View File

@ -294,6 +294,11 @@ namespace FirstPlugin
}
private void PrintRecursive(TreeNode treeNode)
{
if (treeNode is FileEntry)
{
((FileEntry)treeNode).OnDoubleMouseClick(treeNode.TreeView);
}
// Print each node recursively.
foreach (TreeNode tn in treeNode.Nodes)
{
@ -378,6 +383,19 @@ namespace FirstPlugin
}
}
public override void OnClick(TreeView treeView)
{
HexEditor editor = (HexEditor)LibraryGUI.Instance.GetActiveContent(typeof(HexEditor));
if (editor == null)
{
editor = new HexEditor();
LibraryGUI.Instance.LoadEditor(editor);
}
editor.Text = Text;
editor.Dock = DockStyle.Fill;
editor.LoadData(GetASSTData(this));
}
public override void OnDoubleMouseClick(TreeView treeview)
{
if (GetASSTData(this) != null)
@ -499,7 +517,7 @@ namespace FirstPlugin
fileEntry.unk1 = asset.unk;
fileEntry.unk2 = asset.unk2;
fileEntry.IsCompressed = IsCompressed;
// fileEntry.data = asset.FileData;
fileEntry.data = asset.FileData;
//Now check magic
//Todo clean this part up

View File

@ -110,6 +110,7 @@ namespace FirstPlugin
if (ofd.ShowDialog() == DialogResult.OK)
{
Runtime.SmoGamePath = ofd.SelectedPath;
Config.Save();
OpenCostumeDialog(Runtime.SmoGamePath);
}
}

View File

@ -18,12 +18,14 @@ deploy:
prerelease: true
force_update: true
after_build:
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Version.txt"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Toolbox.exe.config"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Toolbox.pdb"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Toolbox.exe"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Lib"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Version.txt"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Updater.exe"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Updater.pdb"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Updater.exe.config"
@ -36,5 +38,6 @@ after_build:
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\System.Buffers.dll"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\System.Memory.dll"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Octokit.dll"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\System.Numerics.Vectors.dll"
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\System.Runtime.CompilerServices.Unsafe.dll"
- appveyor PushArtifact "Switch-Toolbox-Latest.zip"