Fix some issues with bea archives
This commit is contained in:
parent
f08a08ce32
commit
c061c9b052
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -294,6 +294,11 @@ namespace FirstPlugin
|
|||||||
}
|
}
|
||||||
private void PrintRecursive(TreeNode treeNode)
|
private void PrintRecursive(TreeNode treeNode)
|
||||||
{
|
{
|
||||||
|
if (treeNode is FileEntry)
|
||||||
|
{
|
||||||
|
((FileEntry)treeNode).OnDoubleMouseClick(treeNode.TreeView);
|
||||||
|
}
|
||||||
|
|
||||||
// Print each node recursively.
|
// Print each node recursively.
|
||||||
foreach (TreeNode tn in treeNode.Nodes)
|
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)
|
public override void OnDoubleMouseClick(TreeView treeview)
|
||||||
{
|
{
|
||||||
if (GetASSTData(this) != null)
|
if (GetASSTData(this) != null)
|
||||||
@ -499,7 +517,7 @@ namespace FirstPlugin
|
|||||||
fileEntry.unk1 = asset.unk;
|
fileEntry.unk1 = asset.unk;
|
||||||
fileEntry.unk2 = asset.unk2;
|
fileEntry.unk2 = asset.unk2;
|
||||||
fileEntry.IsCompressed = IsCompressed;
|
fileEntry.IsCompressed = IsCompressed;
|
||||||
// fileEntry.data = asset.FileData;
|
fileEntry.data = asset.FileData;
|
||||||
|
|
||||||
//Now check magic
|
//Now check magic
|
||||||
//Todo clean this part up
|
//Todo clean this part up
|
||||||
|
@ -110,6 +110,7 @@ namespace FirstPlugin
|
|||||||
if (ofd.ShowDialog() == DialogResult.OK)
|
if (ofd.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
Runtime.SmoGamePath = ofd.SelectedPath;
|
Runtime.SmoGamePath = ofd.SelectedPath;
|
||||||
|
Config.Save();
|
||||||
OpenCostumeDialog(Runtime.SmoGamePath);
|
OpenCostumeDialog(Runtime.SmoGamePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -18,12 +18,14 @@ deploy:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
force_update: true
|
force_update: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
after_build:
|
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.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.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\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\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.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.pdb"
|
||||||
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\Updater.exe.config"
|
- 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.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\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\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"
|
- 7z a "Switch-Toolbox-Latest.zip" "%APPVEYOR_BUILD_FOLDER%\Toolbox\bin\Release\System.Runtime.CompilerServices.Unsafe.dll"
|
||||||
- appveyor PushArtifact "Switch-Toolbox-Latest.zip"
|
- appveyor PushArtifact "Switch-Toolbox-Latest.zip"
|
Loading…
x
Reference in New Issue
Block a user