diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 284e8589..bf033ec9 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide index fa348103..11aed00e 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal index 06648d71..3348179f 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal differ diff --git a/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs b/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs index 3430396d..042e79bd 100644 --- a/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs +++ b/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs @@ -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 diff --git a/Switch_FileFormatsMain/Main.cs b/Switch_FileFormatsMain/Main.cs index 46ae148c..119a8770 100644 --- a/Switch_FileFormatsMain/Main.cs +++ b/Switch_FileFormatsMain/Main.cs @@ -110,6 +110,7 @@ namespace FirstPlugin if (ofd.ShowDialog() == DialogResult.OK) { Runtime.SmoGamePath = ofd.SelectedPath; + Config.Save(); OpenCostumeDialog(Runtime.SmoGamePath); } } diff --git a/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache index 66f3e471..08423834 100644 Binary files a/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache and b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache differ diff --git a/appveyor.yml b/appveyor.yml index 735a8a34..05d3890e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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" \ No newline at end of file