diff --git a/Archive/Builds/DDS_D3DTX_Converter.zip b/Archive/Builds/DDS_D3DTX_Converter.zip deleted file mode 100644 index 02b19ee..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter.zip and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Base.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Base.dll deleted file mode 100644 index 5d9e415..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Base.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.DataGrid.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.DataGrid.dll deleted file mode 100644 index 53ae7f8..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.DataGrid.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.dll deleted file mode 100644 index cebdfc2..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Controls.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.DesignerSupport.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.DesignerSupport.dll deleted file mode 100644 index 4fa6328..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.DesignerSupport.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Desktop.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Desktop.dll deleted file mode 100644 index 1f09276..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Desktop.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Dialogs.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Dialogs.dll deleted file mode 100644 index 73885d6..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Dialogs.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Fonts.Inter.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Fonts.Inter.dll deleted file mode 100644 index bc25642..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Fonts.Inter.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.FreeDesktop.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.FreeDesktop.dll deleted file mode 100644 index 4d6d8d2..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.FreeDesktop.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.Xaml.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.Xaml.dll deleted file mode 100644 index 516bc22..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.Xaml.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.dll deleted file mode 100644 index c883aed..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Markup.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Metal.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Metal.dll deleted file mode 100644 index 1c6bfca..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Metal.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.MicroCom.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.MicroCom.dll deleted file mode 100644 index 79b7ec4..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.MicroCom.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Native.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Native.dll deleted file mode 100644 index 33796f6..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Native.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.OpenGL.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.OpenGL.dll deleted file mode 100644 index 1f8d6aa..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.OpenGL.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Remote.Protocol.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Remote.Protocol.dll deleted file mode 100644 index dcf90a2..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Remote.Protocol.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Skia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Skia.dll deleted file mode 100644 index 41974ae..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Skia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Svg.Skia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Svg.Skia.dll deleted file mode 100644 index c3eff1b..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Svg.Skia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Themes.Fluent.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Themes.Fluent.dll deleted file mode 100644 index 52bbd3e..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Themes.Fluent.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Win32.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Win32.dll deleted file mode 100644 index 1282373..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Win32.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.X11.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.X11.dll deleted file mode 100644 index e40bcfd..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.X11.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Custom.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Custom.dll deleted file mode 100644 index a6f9eda..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Custom.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.DragAndDrop.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.DragAndDrop.dll deleted file mode 100644 index fc1bd2c..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.DragAndDrop.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Draggable.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Draggable.dll deleted file mode 100644 index 8c8cbf1..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Draggable.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Events.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Events.dll deleted file mode 100644 index b71fc78..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Events.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Responsive.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Responsive.dll deleted file mode 100644 index 325208f..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.Responsive.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.dll deleted file mode 100644 index 66484d4..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactions.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactivity.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactivity.dll deleted file mode 100644 index 5d0437b..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.Xaml.Interactivity.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.dll deleted file mode 100644 index 29d4ff5..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/BitMiracle.LibTiff.NET.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/BitMiracle.LibTiff.NET.dll deleted file mode 100644 index f008577..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/BitMiracle.LibTiff.NET.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ColorTextBlock.Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ColorTextBlock.Avalonia.dll deleted file mode 100644 index 63b75e9..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ColorTextBlock.Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/CommunityToolkit.Mvvm.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/CommunityToolkit.Mvvm.dll deleted file mode 100644 index 9c5f266..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/CommunityToolkit.Mvvm.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.deps.json b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.deps.json deleted file mode 100644 index 5821b37..0000000 --- a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.deps.json +++ /dev/null @@ -1,1105 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v8.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v8.0": { - "DDS_D3DTX_Converter/1.0.0": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Controls.DataGrid": "11.0.10", - "Avalonia.Desktop": "11.0.10", - "Avalonia.Fonts.Inter": "11.0.10", - "Avalonia.Svg.Skia": "11.0.0.14", - "Avalonia.Themes.Fluent": "11.0.10", - "Avalonia.Xaml.Behaviors": "11.0.10", - "BitMiracle.LibTiff.NET": "2.4.649", - "CommunityToolkit.Mvvm": "8.2.2", - "DirectXTexNet": "1.0.3", - "HyperText.Avalonia": "2.0.0", - "MessageBox.Avalonia": "3.1.5.1", - "Newtonsoft.Json": "13.0.3", - "Pfim": "0.11.2", - "SixLabors.ImageSharp": "3.1.3" - }, - "runtime": { - "DDS_D3DTX_Converter.dll": {} - } - }, - "Avalonia/11.0.10": { - "dependencies": { - "Avalonia.BuildServices": "0.0.29", - "Avalonia.Remote.Protocol": "11.0.10", - "MicroCom.Runtime": "0.11.0", - "System.ComponentModel.Annotations": "4.5.0" - }, - "runtime": { - "lib/net6.0/Avalonia.Base.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.Controls.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.DesignerSupport.dll": { - "assemblyVersion": "0.7.0.0", - "fileVersion": "0.7.0.0" - }, - "lib/net6.0/Avalonia.Dialogs.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.Markup.Xaml.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.Markup.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.Metal.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.MicroCom.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.OpenGL.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - }, - "lib/net6.0/Avalonia.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Angle.Windows.Natives/2.1.0.2023020321": { - "runtimeTargets": { - "runtimes/win-arm64/native/av_libglesv2.dll": { - "rid": "win-arm64", - "assetType": "native", - "fileVersion": "2.1.0.0" - }, - "runtimes/win-x64/native/av_libglesv2.dll": { - "rid": "win-x64", - "assetType": "native", - "fileVersion": "2.1.0.0" - }, - "runtimes/win-x86/native/av_libglesv2.dll": { - "rid": "win-x86", - "assetType": "native", - "fileVersion": "2.1.0.0" - } - } - }, - "Avalonia.BuildServices/0.0.29": {}, - "Avalonia.Controls.DataGrid/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Remote.Protocol": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.Controls.DataGrid.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Desktop/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Native": "11.0.10", - "Avalonia.Skia": "11.0.10", - "Avalonia.Win32": "11.0.10", - "Avalonia.X11": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.Desktop.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Fonts.Inter/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.Fonts.Inter.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.FreeDesktop/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Tmds.DBus.Protocol": "0.15.0" - }, - "runtime": { - "lib/net6.0/Avalonia.FreeDesktop.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Native/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.Native.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - }, - "runtimeTargets": { - "runtimes/osx/native/libAvaloniaNative.dylib": { - "rid": "osx", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "Avalonia.Remote.Protocol/11.0.10": { - "runtime": { - "lib/net6.0/Avalonia.Remote.Protocol.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Skia/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "HarfBuzzSharp": "7.3.0", - "HarfBuzzSharp.NativeAssets.Linux": "7.3.0", - "HarfBuzzSharp.NativeAssets.WebAssembly": "7.3.0", - "SkiaSharp": "2.88.7", - "SkiaSharp.NativeAssets.Linux": "2.88.7", - "SkiaSharp.NativeAssets.WebAssembly": "2.88.7" - }, - "runtime": { - "lib/net6.0/Avalonia.Skia.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Svg.Skia/11.0.0.14": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Skia": "11.0.10", - "SkiaSharp": "2.88.7", - "Svg.Skia": "1.0.0.14" - }, - "runtime": { - "lib/net8.0/Avalonia.Svg.Skia.dll": { - "assemblyVersion": "11.0.0.14", - "fileVersion": "11.0.0.14" - } - } - }, - "Avalonia.Themes.Fluent/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.Themes.Fluent.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Win32/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Angle.Windows.Natives": "2.1.0.2023020321", - "System.Numerics.Vectors": "4.5.0" - }, - "runtime": { - "lib/net6.0/Avalonia.Win32.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.X11/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.FreeDesktop": "11.0.10", - "Avalonia.Skia": "11.0.10" - }, - "runtime": { - "lib/net6.0/Avalonia.X11.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Behaviors/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactions": "11.0.10", - "Avalonia.Xaml.Interactions.Custom": "11.0.10", - "Avalonia.Xaml.Interactions.DragAndDrop": "11.0.10", - "Avalonia.Xaml.Interactions.Draggable": "11.0.10", - "Avalonia.Xaml.Interactions.Events": "11.0.10", - "Avalonia.Xaml.Interactions.Responsive": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - } - }, - "Avalonia.Xaml.Interactions/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactions.Custom/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10", - "System.Reactive": "6.0.0" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.Custom.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactions.DragAndDrop/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.DragAndDrop.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactions.Draggable/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.Draggable.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactions.Events/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.Events.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactions.Responsive/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Xaml.Interactivity": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactions.Responsive.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "Avalonia.Xaml.Interactivity/11.0.10": { - "dependencies": { - "Avalonia": "11.0.10" - }, - "runtime": { - "lib/net8.0/Avalonia.Xaml.Interactivity.dll": { - "assemblyVersion": "11.0.10.0", - "fileVersion": "11.0.10.0" - } - } - }, - "BitMiracle.LibTiff.NET/2.4.649": { - "runtime": { - "lib/netstandard2.0/BitMiracle.LibTiff.NET.dll": { - "assemblyVersion": "2.4.649.0", - "fileVersion": "2.4.649.0" - } - } - }, - "ColorTextBlock.Avalonia/11.0.2": { - "dependencies": { - "Avalonia": "11.0.10" - }, - "runtime": { - "lib/net6.0/ColorTextBlock.Avalonia.dll": { - "assemblyVersion": "11.0.2.0", - "fileVersion": "11.0.2.0" - } - } - }, - "CommunityToolkit.Mvvm/8.2.2": { - "runtime": { - "lib/net6.0/CommunityToolkit.Mvvm.dll": { - "assemblyVersion": "8.2.0.0", - "fileVersion": "8.2.2.1" - } - } - }, - "DialogHost.Avalonia/0.7.7": { - "dependencies": { - "Avalonia": "11.0.10", - "System.Reactive": "6.0.0" - }, - "runtime": { - "lib/netstandard2.0/DialogHost.Avalonia.dll": { - "assemblyVersion": "0.7.7.0", - "fileVersion": "0.7.7.0" - } - } - }, - "DirectXTexNet/1.0.3": { - "runtime": { - "lib/net5.0/DirectXTexNet.dll": { - "assemblyVersion": "1.0.3.0", - "fileVersion": "1.0.3.0" - } - }, - "runtimeTargets": { - "runtimes/win-x64/native/DirectXTexNetImpl.dll": { - "rid": "win-x64", - "assetType": "native", - "assemblyVersion": "1.0.3.0", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x64/native/Ijwhost.dll": { - "rid": "win-x64", - "assetType": "native", - "fileVersion": "5.0.1021.41214" - }, - "runtimes/win-x86/native/DirectXTexNetImpl.dll": { - "rid": "win-x86", - "assetType": "native", - "assemblyVersion": "1.0.3.0", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x86/native/Ijwhost.dll": { - "rid": "win-x86", - "assetType": "native", - "fileVersion": "5.0.1021.41214" - } - } - }, - "ExCSS/4.2.3": { - "runtime": { - "lib/net7.0/ExCSS.dll": { - "assemblyVersion": "4.2.3.0", - "fileVersion": "4.2.3.0" - } - } - }, - "HarfBuzzSharp/7.3.0": { - "dependencies": { - "HarfBuzzSharp.NativeAssets.Win32": "7.3.0", - "HarfBuzzSharp.NativeAssets.macOS": "7.3.0" - }, - "runtime": { - "lib/net6.0/HarfBuzzSharp.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "7.3.0.0" - } - } - }, - "HarfBuzzSharp.NativeAssets.Linux/7.3.0": { - "dependencies": { - "HarfBuzzSharp": "7.3.0" - }, - "runtimeTargets": { - "runtimes/linux-arm/native/libHarfBuzzSharp.so": { - "rid": "linux-arm", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-arm64/native/libHarfBuzzSharp.so": { - "rid": "linux-arm64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-musl-x64/native/libHarfBuzzSharp.so": { - "rid": "linux-musl-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-x64/native/libHarfBuzzSharp.so": { - "rid": "linux-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "HarfBuzzSharp.NativeAssets.macOS/7.3.0": { - "runtimeTargets": { - "runtimes/osx/native/libHarfBuzzSharp.dylib": { - "rid": "osx", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "HarfBuzzSharp.NativeAssets.WebAssembly/7.3.0": {}, - "HarfBuzzSharp.NativeAssets.Win32/7.3.0": { - "runtimeTargets": { - "runtimes/win-arm64/native/libHarfBuzzSharp.dll": { - "rid": "win-arm64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x64/native/libHarfBuzzSharp.dll": { - "rid": "win-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x86/native/libHarfBuzzSharp.dll": { - "rid": "win-x86", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "HyperText.Avalonia/2.0.0": { - "dependencies": { - "Avalonia": "11.0.10", - "Avalonia.Desktop": "11.0.10" - }, - "runtime": { - "lib/netstandard2.0/HyperText.Avalonia.dll": { - "assemblyVersion": "2.0.0.0", - "fileVersion": "2.0.0.0" - } - } - }, - "Markdown.Avalonia.Tight/11.0.2": { - "dependencies": { - "Avalonia": "11.0.10", - "ColorTextBlock.Avalonia": "11.0.2" - }, - "runtime": { - "lib/net6.0/Markdown.Avalonia.dll": { - "assemblyVersion": "11.0.2.0", - "fileVersion": "11.0.2.0" - } - } - }, - "MessageBox.Avalonia/3.1.5.1": { - "dependencies": { - "Avalonia": "11.0.10", - "DialogHost.Avalonia": "0.7.7", - "Markdown.Avalonia.Tight": "11.0.2" - }, - "runtime": { - "lib/netstandard2.0/MsBox.Avalonia.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.0.0.0" - } - } - }, - "MicroCom.Runtime/0.11.0": { - "runtime": { - "lib/net5.0/MicroCom.Runtime.dll": { - "assemblyVersion": "0.11.0.0", - "fileVersion": "0.11.0.0" - } - } - }, - "Newtonsoft.Json/13.0.3": { - "runtime": { - "lib/net6.0/Newtonsoft.Json.dll": { - "assemblyVersion": "13.0.0.0", - "fileVersion": "13.0.3.27908" - } - } - }, - "Pfim/0.11.2": { - "runtime": { - "lib/netstandard2.0/Pfim.dll": { - "assemblyVersion": "0.11.2.0", - "fileVersion": "0.11.2.0" - } - } - }, - "ShimSkiaSharp/1.0.0.14": { - "runtime": { - "lib/net8.0/ShimSkiaSharp.dll": { - "assemblyVersion": "1.0.0.14", - "fileVersion": "1.0.0.14" - } - } - }, - "SixLabors.ImageSharp/3.1.3": { - "runtime": { - "lib/net6.0/SixLabors.ImageSharp.dll": { - "assemblyVersion": "3.0.0.0", - "fileVersion": "3.1.3.0" - } - } - }, - "SkiaSharp/2.88.7": { - "dependencies": { - "SkiaSharp.NativeAssets.Win32": "2.88.7", - "SkiaSharp.NativeAssets.macOS": "2.88.7" - }, - "runtime": { - "lib/net6.0/SkiaSharp.dll": { - "assemblyVersion": "2.88.0.0", - "fileVersion": "2.88.7.0" - } - } - }, - "SkiaSharp.HarfBuzz/2.88.6": { - "dependencies": { - "HarfBuzzSharp": "7.3.0", - "SkiaSharp": "2.88.7" - }, - "runtime": { - "lib/net6.0/SkiaSharp.HarfBuzz.dll": { - "assemblyVersion": "2.88.0.0", - "fileVersion": "2.88.6.0" - } - } - }, - "SkiaSharp.NativeAssets.Linux/2.88.7": { - "dependencies": { - "SkiaSharp": "2.88.7" - }, - "runtimeTargets": { - "runtimes/linux-arm/native/libSkiaSharp.so": { - "rid": "linux-arm", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-arm64/native/libSkiaSharp.so": { - "rid": "linux-arm64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-musl-x64/native/libSkiaSharp.so": { - "rid": "linux-musl-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/linux-x64/native/libSkiaSharp.so": { - "rid": "linux-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "SkiaSharp.NativeAssets.macOS/2.88.7": { - "runtimeTargets": { - "runtimes/osx/native/libSkiaSharp.dylib": { - "rid": "osx", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "SkiaSharp.NativeAssets.WebAssembly/2.88.7": {}, - "SkiaSharp.NativeAssets.Win32/2.88.7": { - "runtimeTargets": { - "runtimes/win-arm64/native/libSkiaSharp.dll": { - "rid": "win-arm64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x64/native/libSkiaSharp.dll": { - "rid": "win-x64", - "assetType": "native", - "fileVersion": "0.0.0.0" - }, - "runtimes/win-x86/native/libSkiaSharp.dll": { - "rid": "win-x86", - "assetType": "native", - "fileVersion": "0.0.0.0" - } - } - }, - "Svg.Custom/1.0.0.14": { - "dependencies": { - "ExCSS": "4.2.3" - }, - "runtime": { - "lib/net8.0/Svg.Custom.dll": { - "assemblyVersion": "1.0.0.14", - "fileVersion": "1.0.0.14" - } - } - }, - "Svg.Model/1.0.0.14": { - "dependencies": { - "ShimSkiaSharp": "1.0.0.14", - "Svg.Custom": "1.0.0.14" - }, - "runtime": { - "lib/net8.0/Svg.Model.dll": { - "assemblyVersion": "1.0.0.14", - "fileVersion": "1.0.0.14" - } - } - }, - "Svg.Skia/1.0.0.14": { - "dependencies": { - "SkiaSharp": "2.88.7", - "SkiaSharp.HarfBuzz": "2.88.6", - "Svg.Custom": "1.0.0.14", - "Svg.Model": "1.0.0.14" - }, - "runtime": { - "lib/net8.0/Svg.Skia.dll": { - "assemblyVersion": "1.0.0.14", - "fileVersion": "1.0.0.14" - } - } - }, - "System.ComponentModel.Annotations/4.5.0": {}, - "System.IO.Pipelines/6.0.0": { - "runtime": { - "lib/net6.0/System.IO.Pipelines.dll": { - "assemblyVersion": "6.0.0.0", - "fileVersion": "6.0.21.52210" - } - } - }, - "System.Numerics.Vectors/4.5.0": {}, - "System.Reactive/6.0.0": { - "runtime": { - "lib/net6.0/System.Reactive.dll": { - "assemblyVersion": "6.0.0.0", - "fileVersion": "6.0.0.1" - } - } - }, - "Tmds.DBus.Protocol/0.15.0": { - "dependencies": { - "System.IO.Pipelines": "6.0.0" - }, - "runtime": { - "lib/net6.0/Tmds.DBus.Protocol.dll": { - "assemblyVersion": "0.15.0.0", - "fileVersion": "0.15.0.0" - } - } - } - } - }, - "libraries": { - "DDS_D3DTX_Converter/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "Avalonia/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-EH1FyD1SA7G/TfLmb7JKQlZiOBqr6VzttJMtA5Hnc/c1623zJej0PRuQlqn8Ad6qWKorrKEypBGA9Gye3uWDrA==", - "path": "avalonia/11.0.10", - "hashPath": "avalonia.11.0.10.nupkg.sha512" - }, - "Avalonia.Angle.Windows.Natives/2.1.0.2023020321": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Zlkkb8ipxrxNWVPCJgMO19fpcpYPP+bpOQ+jPtCFj8v+TzVvPdnGHuyv9IMvSHhhMfEpps4m4hjaP4FORQYVAA==", - "path": "avalonia.angle.windows.natives/2.1.0.2023020321", - "hashPath": "avalonia.angle.windows.natives.2.1.0.2023020321.nupkg.sha512" - }, - "Avalonia.BuildServices/0.0.29": { - "type": "package", - "serviceable": true, - "sha512": "sha512-U4eJLQdoDNHXtEba7MZUCwrBErBTxFp6sUewXBOdAhU0Kwzwaa/EKFcYm8kpcysjzKtfB4S0S9n0uxKZFz/ikw==", - "path": "avalonia.buildservices/0.0.29", - "hashPath": "avalonia.buildservices.0.0.29.nupkg.sha512" - }, - "Avalonia.Controls.DataGrid/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-a8es+nGJvXK+rh76iFRkp7UHPvaN+WeMyH7S746r25FnrBYLkvtpEjGGKRWTFX+eO2cFcDh1qHJa63aaElivww==", - "path": "avalonia.controls.datagrid/11.0.10", - "hashPath": "avalonia.controls.datagrid.11.0.10.nupkg.sha512" - }, - "Avalonia.Desktop/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-jPflQRB94sr3D7tgcUuSHnvK212ZtoM2oBZVQoP/musPWiu56LZ+o7+bAt8TMGhkUBMAylZ5u+tMGCe7EUwbEA==", - "path": "avalonia.desktop/11.0.10", - "hashPath": "avalonia.desktop.11.0.10.nupkg.sha512" - }, - "Avalonia.Fonts.Inter/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-4hVv6u5o8NxfPv2pl1Mg0VTYzxHkc85Wnye3sQJCQtbrd8s9v3DSEYK68zT4wBFlCtc4JHUP85PfyZuoTkf08A==", - "path": "avalonia.fonts.inter/11.0.10", - "hashPath": "avalonia.fonts.inter.11.0.10.nupkg.sha512" - }, - "Avalonia.FreeDesktop/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QLVn1pjCe5ez4cH5B+NmhT61xK502mjxPxkswIbag5FB45tuNOF5zRszH+dN81rNw+VSf/J6PVXdmHz/FojyDw==", - "path": "avalonia.freedesktop/11.0.10", - "hashPath": "avalonia.freedesktop.11.0.10.nupkg.sha512" - }, - "Avalonia.Native/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-eJUPh4VOBomF36DzJQ+M+T1lVBVhpK3Ryx3xNnhVvYcW3dPNgugXApSbxulSipWnMfJh4DAKQD2Mt3ahy3Tp8Q==", - "path": "avalonia.native/11.0.10", - "hashPath": "avalonia.native.11.0.10.nupkg.sha512" - }, - "Avalonia.Remote.Protocol/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-4/zXSx7P2+4g7nIkSd8aIfEfRnvHjpeSEBjJznzE5iJBYO98B78wDPWEkyN8sQBJnLghaNKKsGCApx3g5R0Gsg==", - "path": "avalonia.remote.protocol/11.0.10", - "hashPath": "avalonia.remote.protocol.11.0.10.nupkg.sha512" - }, - "Avalonia.Skia/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-0rDySePqUkg6cMBZEXp+5P04XgyIXOcqhsCaWhrwFAqxcp5qKjILSCNvt0pden3TqCRjuNuGaWGV+qyk58l9vA==", - "path": "avalonia.skia/11.0.10", - "hashPath": "avalonia.skia.11.0.10.nupkg.sha512" - }, - "Avalonia.Svg.Skia/11.0.0.14": { - "type": "package", - "serviceable": true, - "sha512": "sha512-yeDTtcw/mMBdz/oWuTdE8XRz/8ghsXI8NQ6/6c3jfACMQEbJ18iwzlrEvc1vYDQ6pfSkO4sqw+3/OYDzaQ4YWQ==", - "path": "avalonia.svg.skia/11.0.0.14", - "hashPath": "avalonia.svg.skia.11.0.0.14.nupkg.sha512" - }, - "Avalonia.Themes.Fluent/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-V7xu7ddtUFwYHb+u3S4he2/PGGUHkeTI66j3PyGTZi0Uz8Ma4prb/Lgz7Qd/vpO4lukxw1G4DmxB1tClNS9qUw==", - "path": "avalonia.themes.fluent/11.0.10", - "hashPath": "avalonia.themes.fluent.11.0.10.nupkg.sha512" - }, - "Avalonia.Win32/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-XD4fiRpiLHB6Q8e9Vevj42rYQvdnrqs56Jwu9T4UaClcuk578fUH1LP/vl9q/n8LrEUyng01Q7vtpp5sgwsXDw==", - "path": "avalonia.win32/11.0.10", - "hashPath": "avalonia.win32.11.0.10.nupkg.sha512" - }, - "Avalonia.X11/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-WUhPBIYqjJdBf1TgUARYNyH1clntZ435eQzR+db4fxrg4OemePX6nJTp1Lh7G/hTVEvRgWCoYFccqm/6vsfJQQ==", - "path": "avalonia.x11/11.0.10", - "hashPath": "avalonia.x11.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Behaviors/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-YX737IoWLBFRMA7Oi6VzkEpbR+cNBsmyF9p72Dl100bnGI2cm64jWWJ/LcAoCafTPU2ZA2N/Jib1LO+p4V7yyw==", - "path": "avalonia.xaml.behaviors/11.0.10", - "hashPath": "avalonia.xaml.behaviors.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-NvLz0slS+RY0sCQiHnfXRXHn8gF9ZQsErDZRr6OADqEi+UfcUVCzqj/uPhTr2fKAlz/fBL1dKwM1e/CBcXdZGA==", - "path": "avalonia.xaml.interactions/11.0.10", - "hashPath": "avalonia.xaml.interactions.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions.Custom/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-kUthWW2+JVLc24qH7AIIKcTAsSVmmf4qeB0ZidcZ0n0NMmhKT2jSp8llDNQ4wGfasJOO4tVo6fx/NJ8aIaUQMg==", - "path": "avalonia.xaml.interactions.custom/11.0.10", - "hashPath": "avalonia.xaml.interactions.custom.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions.DragAndDrop/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-XiS0U1PjbWyBMsXqLcYyvEig1aZcBQvILVAo+g9giooXRq7W9gkDmHgjviq7KR3yC9k7pgQnNULo0ArnIeCWAw==", - "path": "avalonia.xaml.interactions.draganddrop/11.0.10", - "hashPath": "avalonia.xaml.interactions.draganddrop.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions.Draggable/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-NCnSP8a3CwpczX2uPwyRBy9YkvZp/kKWXpY+nNN5AVH7PPupQdrOiko3n7FlnaDQKjUn3BTJI9x2nD11rHr0KQ==", - "path": "avalonia.xaml.interactions.draggable/11.0.10", - "hashPath": "avalonia.xaml.interactions.draggable.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions.Events/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-lFS1lbhIPc/ZyhjkFocrhA6yrTyT8Ql9O344gKgGCKPpRiFZVqS7Lf5ccYrTAmqWiJ4K8quDx4hBRGMvGOrLIQ==", - "path": "avalonia.xaml.interactions.events/11.0.10", - "hashPath": "avalonia.xaml.interactions.events.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactions.Responsive/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-njtGznGtU78TfaB2lRH3IT9KuceifKCgc3WoGnCPPyvfalwgegBXJWVenoC9WrwMBP66tZBiIXTRO4K3rTW+ng==", - "path": "avalonia.xaml.interactions.responsive/11.0.10", - "hashPath": "avalonia.xaml.interactions.responsive.11.0.10.nupkg.sha512" - }, - "Avalonia.Xaml.Interactivity/11.0.10": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QJHhHbMOrgxXbwsJKkkdFd3UUEYCm7b1yxCGQiWU5dfTlDsFnre/GpkkL6cnxMzPMC8ZiEv0DeQgs2WJ9ABE2w==", - "path": "avalonia.xaml.interactivity/11.0.10", - "hashPath": "avalonia.xaml.interactivity.11.0.10.nupkg.sha512" - }, - "BitMiracle.LibTiff.NET/2.4.649": { - "type": "package", - "serviceable": true, - "sha512": "sha512-XCEdfCphKo0UAvSg1h/OzOFWtjkIGnPMAziYkNqV7NVrqb/tZJTBxJhxIEX7gpvQwg8GIRYt133SUncfkKfjLA==", - "path": "bitmiracle.libtiff.net/2.4.649", - "hashPath": "bitmiracle.libtiff.net.2.4.649.nupkg.sha512" - }, - "ColorTextBlock.Avalonia/11.0.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-MsWu5aAbDpstAmJ+TTSgC6Q7YdjKB7Na912GMr3oWl9ag8TH2HNpglzgo+kIAuB4C4wswKfrzhso4UcpvgMuHg==", - "path": "colortextblock.avalonia/11.0.2", - "hashPath": "colortextblock.avalonia.11.0.2.nupkg.sha512" - }, - "CommunityToolkit.Mvvm/8.2.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-r0g0k9tGYdrnz8R7T3x5UiokDffeevzK/2P/9SBL6fqLgN8B157MIi/bVUWI1KAz6ZorZrK9AdABCWUeXZZsvA==", - "path": "communitytoolkit.mvvm/8.2.2", - "hashPath": "communitytoolkit.mvvm.8.2.2.nupkg.sha512" - }, - "DialogHost.Avalonia/0.7.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-V5zq0e6dBeK1A8xDsyNouzfSx3d+aOhxPgjguaFyaDexgDF8WiSQDsawkv0fRGKbDnaPIqMk9m7P/2G5c7HPzw==", - "path": "dialoghost.avalonia/0.7.7", - "hashPath": "dialoghost.avalonia.0.7.7.nupkg.sha512" - }, - "DirectXTexNet/1.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-v7eEJhC9jtZCrS/ptdcIRGNN2vNSV6ZGifyKZQvqNH5gqSbDNhzpRbJtqzuBqsUj1t18Oxk7DTR68WGu39Mrrw==", - "path": "directxtexnet/1.0.3", - "hashPath": "directxtexnet.1.0.3.nupkg.sha512" - }, - "ExCSS/4.2.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-SyeAfu2wL5247sipJoPUzQfjiwQtfSd8hN4IbgoyVcDx4PP6Dud4znwPRibWQzLtTlUxYYcbf5f4p+EfFC7KtQ==", - "path": "excss/4.2.3", - "hashPath": "excss.4.2.3.nupkg.sha512" - }, - "HarfBuzzSharp/7.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-OrQLaxtZMIeS2yHSUtsKzeSdk9CPaCpyJ/JCs+wLfRGatjE8MLUS6LGj6vdbGRxqRavcXs79C9O3oWe6FJR0JQ==", - "path": "harfbuzzsharp/7.3.0", - "hashPath": "harfbuzzsharp.7.3.0.nupkg.sha512" - }, - "HarfBuzzSharp.NativeAssets.Linux/7.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-m6F2pEBTN0zTRgQ3caJQRGQkZZizZwHHCbu+rTv+gvwteNBOpqOLD5GE4dB9TFjNNpnyHXtfuMD86JuUra9UvA==", - "path": "harfbuzzsharp.nativeassets.linux/7.3.0", - "hashPath": "harfbuzzsharp.nativeassets.linux.7.3.0.nupkg.sha512" - }, - "HarfBuzzSharp.NativeAssets.macOS/7.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-LWcFJ39j+dN0KK8c/GJJZPPZPL9TqT2FA42/LRGqzUMmSm5LYbINOMnPvUr7RuLR6RFSmKIrgrlgObR8G5ho2A==", - "path": "harfbuzzsharp.nativeassets.macos/7.3.0", - "hashPath": "harfbuzzsharp.nativeassets.macos.7.3.0.nupkg.sha512" - }, - "HarfBuzzSharp.NativeAssets.WebAssembly/7.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-cnl4I6P+VeujfSSD3ZrC5f0TrTGt9EKgCOoZ3LpgLI2xobBKLi5bxOaN2oY6B0xVXxQEhEaWBotg7AuECg00Iw==", - "path": "harfbuzzsharp.nativeassets.webassembly/7.3.0", - "hashPath": "harfbuzzsharp.nativeassets.webassembly.7.3.0.nupkg.sha512" - }, - "HarfBuzzSharp.NativeAssets.Win32/7.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ulEewLMk+dNmbmpy15ny/YusI6JNUWqchF080TV2jgfFBXPXjWm767JleDi/S7hp8eDeEN6GYIIxpvNr5fLvIw==", - "path": "harfbuzzsharp.nativeassets.win32/7.3.0", - "hashPath": "harfbuzzsharp.nativeassets.win32.7.3.0.nupkg.sha512" - }, - "HyperText.Avalonia/2.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-cUXqgk0Z8BYckg76Yea1e9jkwftF3Zph3/BQY0YdErAL9NF7rvAX3RxLcxJkwsl9VNbVWe7wVFaXw+P0TBwZDw==", - "path": "hypertext.avalonia/2.0.0", - "hashPath": "hypertext.avalonia.2.0.0.nupkg.sha512" - }, - "Markdown.Avalonia.Tight/11.0.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Ylg0EkSUId42dVUFQvU7UJGWcKiJ+g7TesRe/KCzUYzlypWf1lTiVveT2j60QSldCtuAw3o/aEOEjIahMdRGig==", - "path": "markdown.avalonia.tight/11.0.2", - "hashPath": "markdown.avalonia.tight.11.0.2.nupkg.sha512" - }, - "MessageBox.Avalonia/3.1.5.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-iE6AzefOgcNHwdmQoUIeuii09UsFzMJoo027dZ/oKXmIaX9C8isTejODlGsuRmWgvvgMNULXsQTaH0VknMSEnw==", - "path": "messagebox.avalonia/3.1.5.1", - "hashPath": "messagebox.avalonia.3.1.5.1.nupkg.sha512" - }, - "MicroCom.Runtime/0.11.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-MEnrZ3UIiH40hjzMDsxrTyi8dtqB5ziv3iBeeU4bXsL/7NLSal9F1lZKpK+tfBRnUoDSdtcW3KufE4yhATOMCA==", - "path": "microcom.runtime/0.11.0", - "hashPath": "microcom.runtime.0.11.0.nupkg.sha512" - }, - "Newtonsoft.Json/13.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", - "path": "newtonsoft.json/13.0.3", - "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" - }, - "Pfim/0.11.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Wb1Y4XJERCPGzMf4Revxu0c812uKijhhIh/htTkiO86W2T7c/cGIeb2REvOV2DLq8+g155liFwwZEZIm95WCZw==", - "path": "pfim/0.11.2", - "hashPath": "pfim.0.11.2.nupkg.sha512" - }, - "ShimSkiaSharp/1.0.0.14": { - "type": "package", - "serviceable": true, - "sha512": "sha512-KFmNEw/mVC50KeJTMx10Yl6lDTrhf8ZnhxfNf2Lj0HBnVg6bFYGSGuJCbLEqXFmMQU6a82lqsh98hwrlkT6ZLw==", - "path": "shimskiasharp/1.0.0.14", - "hashPath": "shimskiasharp.1.0.0.14.nupkg.sha512" - }, - "SixLabors.ImageSharp/3.1.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-wybtaqZQ1ZRZ4ZeU+9h+PaSeV14nyiGKIy7qRbDfSHzHq4ybqyOcjoifeaYbiKLO1u+PVxLBuy7MF/DMmwwbfg==", - "path": "sixlabors.imagesharp/3.1.3", - "hashPath": "sixlabors.imagesharp.3.1.3.nupkg.sha512" - }, - "SkiaSharp/2.88.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-LJHAMrbWO00J7jXWLWehyjqFo29T4VzABimfJb4nICqpEe3c/KvQGWL4ItON8ymzhxYOeFgyxeRzuNzO4GHSug==", - "path": "skiasharp/2.88.7", - "hashPath": "skiasharp.2.88.7.nupkg.sha512" - }, - "SkiaSharp.HarfBuzz/2.88.6": { - "type": "package", - "serviceable": true, - "sha512": "sha512-s5yZTHdqbXKiTL06ns6zW3asELfX60dEceA4ZdYmNlOkz/OyWDfdjHAuu4HGDA7Mxx5iaUEzDZgPkEe+OVr/jg==", - "path": "skiasharp.harfbuzz/2.88.6", - "hashPath": "skiasharp.harfbuzz.2.88.6.nupkg.sha512" - }, - "SkiaSharp.NativeAssets.Linux/2.88.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-i9VitS7/5D8Te3B1Gu7F6kakW9PYVnI3YC6MoR6NidreD9hDl1EIOQEBaa0eBsOsWNX5Bz92OVf6+7KbDrJvyg==", - "path": "skiasharp.nativeassets.linux/2.88.7", - "hashPath": "skiasharp.nativeassets.linux.2.88.7.nupkg.sha512" - }, - "SkiaSharp.NativeAssets.macOS/2.88.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-3jNzco4VjcYPFNxR9aNWcgweFXbTSdM1VpNRzCS4X0i1A1OuNqcaulrAvmntNpujeWxHo9e6WGh6FN8Jf5+XhA==", - "path": "skiasharp.nativeassets.macos/2.88.7", - "hashPath": "skiasharp.nativeassets.macos.2.88.7.nupkg.sha512" - }, - "SkiaSharp.NativeAssets.WebAssembly/2.88.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-elmOOQTO0QXmnnHx7GliF7VNJqZkWgPqqPsXapEN0EEZJ9fGblYWmD6cqxTwaRTMCUFeLpn8+gTzY8j000MxZQ==", - "path": "skiasharp.nativeassets.webassembly/2.88.7", - "hashPath": "skiasharp.nativeassets.webassembly.2.88.7.nupkg.sha512" - }, - "SkiaSharp.NativeAssets.Win32/2.88.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-BCXmWdQ0oVck9vRwC8U3ocSaTHEx28VB+6qw9OxGIMQ86iO5bp4Flqk3IXH0l9Pbr7vWAUOpI212iaL9mTaUZQ==", - "path": "skiasharp.nativeassets.win32/2.88.7", - "hashPath": "skiasharp.nativeassets.win32.2.88.7.nupkg.sha512" - }, - "Svg.Custom/1.0.0.14": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ZKEbOPKKcdtD209N9TTutCOKMvb7Qte/vLojBUk5c//mVHtA7xdqq9cDPLyK75bD9shJhNB5PfoF4G41ivXUDQ==", - "path": "svg.custom/1.0.0.14", - "hashPath": "svg.custom.1.0.0.14.nupkg.sha512" - }, - "Svg.Model/1.0.0.14": { - "type": "package", - "serviceable": true, - "sha512": "sha512-8+4yv8pKoT/3S/QeLFe/sloEtrXwqXL4dGtVKSqAeCqxjyWIwniMlbG9q3pDA0zdI978k5J8Mn02cs10SJ3/FA==", - "path": "svg.model/1.0.0.14", - "hashPath": "svg.model.1.0.0.14.nupkg.sha512" - }, - "Svg.Skia/1.0.0.14": { - "type": "package", - "serviceable": true, - "sha512": "sha512-uo4RPmEn88ft4kDkTrghgMuTHMwAhHHPyl4VT6oxE+9s1HCVRYZFRKa8ufww5HaMONOXwc6V69b58Qxd5+Y+Uw==", - "path": "svg.skia/1.0.0.14", - "hashPath": "svg.skia.1.0.0.14.nupkg.sha512" - }, - "System.ComponentModel.Annotations/4.5.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-UxYQ3FGUOtzJ7LfSdnYSFd7+oEv6M8NgUatatIN2HxNtDdlcvFAf+VIq4Of9cDMJEJC0aSRv/x898RYhB4Yppg==", - "path": "system.componentmodel.annotations/4.5.0", - "hashPath": "system.componentmodel.annotations.4.5.0.nupkg.sha512" - }, - "System.IO.Pipelines/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-mXX66shZ4xLlI3vNLaJ0lt8OIZdmXTvIqXRdQX5HLVGSkLhINLsVhyZuX2UdRFnOGkqnwmMUs40pIIQ7mna4+A==", - "path": "system.io.pipelines/6.0.0", - "hashPath": "system.io.pipelines.6.0.0.nupkg.sha512" - }, - "System.Numerics.Vectors/4.5.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==", - "path": "system.numerics.vectors/4.5.0", - "hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512" - }, - "System.Reactive/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-31kfaW4ZupZzPsI5PVe77VhnvFF55qgma7KZr/E0iFTs6fmdhhG8j0mgEx620iLTey1EynOkEfnyTjtNEpJzGw==", - "path": "system.reactive/6.0.0", - "hashPath": "system.reactive.6.0.0.nupkg.sha512" - }, - "Tmds.DBus.Protocol/0.15.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QVo/Y39nTYcCKBqrZuwHjXdwaky0yTQPIT3qUTEEK2MZfDtZWrJ2XyZ59zH8LBgB2fL5cWaTuP2pBTpGz/GeDQ==", - "path": "tmds.dbus.protocol/0.15.0", - "hashPath": "tmds.dbus.protocol.0.15.0.nupkg.sha512" - } - } -} \ No newline at end of file diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.dll deleted file mode 100644 index 4eb0c90..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.exe b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.exe deleted file mode 100644 index d01b28e..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.exe and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.runtimeconfig.json b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.runtimeconfig.json deleted file mode 100644 index d784515..0000000 --- a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DDS_D3DTX_Converter.runtimeconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net8.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "8.0.0" - }, - "configProperties": { - "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, - "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false - } - } -} \ No newline at end of file diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DialogHost.Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DialogHost.Avalonia.dll deleted file mode 100644 index 803e3ad..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DialogHost.Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DirectXTexNet.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DirectXTexNet.dll deleted file mode 100644 index 8c7a691..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/DirectXTexNet.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExCSS.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExCSS.dll deleted file mode 100644 index 7c287d0..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExCSS.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/DirectXTexNetImpl.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/DirectXTexNetImpl.dll deleted file mode 100644 index b044019..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/DirectXTexNetImpl.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/Ijwhost.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/Ijwhost.dll deleted file mode 100644 index b638f7e..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/Ijwhost.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/av_libglesv2.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/av_libglesv2.dll deleted file mode 100644 index 7d94daf..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/av_libglesv2.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libHarfBuzzSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libHarfBuzzSharp.dll deleted file mode 100644 index 951c40a..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libHarfBuzzSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libSkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libSkiaSharp.dll deleted file mode 100644 index 4257d59..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/libSkiaSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/texconv.exe b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/texconv.exe deleted file mode 100644 index 1ed44d4..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ExternalDependencies/texconv.exe and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HarfBuzzSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HarfBuzzSharp.dll deleted file mode 100644 index 18ee0ae..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HarfBuzzSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HyperText.Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HyperText.Avalonia.dll deleted file mode 100644 index d4c379d..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/HyperText.Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Markdown.Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Markdown.Avalonia.dll deleted file mode 100644 index 2cd5597..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Markdown.Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MicroCom.Runtime.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MicroCom.Runtime.dll deleted file mode 100644 index f6cf008..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MicroCom.Runtime.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MsBox.Avalonia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MsBox.Avalonia.dll deleted file mode 100644 index 6c72a85..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/MsBox.Avalonia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Newtonsoft.Json.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Newtonsoft.Json.dll deleted file mode 100644 index d035c38..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Newtonsoft.Json.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Pfim.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Pfim.dll deleted file mode 100644 index 6b04e33..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Pfim.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ShimSkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ShimSkiaSharp.dll deleted file mode 100644 index bdb06f1..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/ShimSkiaSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SixLabors.ImageSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SixLabors.ImageSharp.dll deleted file mode 100644 index 97d8302..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SixLabors.ImageSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.HarfBuzz.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.HarfBuzz.dll deleted file mode 100644 index 82f1a00..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.HarfBuzz.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.dll deleted file mode 100644 index 052ef7e..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/SkiaSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Custom.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Custom.dll deleted file mode 100644 index f479cc8..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Custom.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Model.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Model.dll deleted file mode 100644 index 3590338..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Model.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Skia.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Skia.dll deleted file mode 100644 index 1f65c70..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Svg.Skia.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.IO.Pipelines.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.IO.Pipelines.dll deleted file mode 100644 index 4f5306a..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.IO.Pipelines.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.Reactive.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.Reactive.dll deleted file mode 100644 index f179765..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/System.Reactive.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Tmds.DBus.Protocol.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Tmds.DBus.Protocol.dll deleted file mode 100644 index d06b276..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/Tmds.DBus.Protocol.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libHarfBuzzSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libHarfBuzzSharp.so deleted file mode 100644 index 2c6fbe3..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libHarfBuzzSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libSkiaSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libSkiaSharp.so deleted file mode 100644 index e438777..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm/native/libSkiaSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libHarfBuzzSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libHarfBuzzSharp.so deleted file mode 100644 index 89e71b5..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libHarfBuzzSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libSkiaSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libSkiaSharp.so deleted file mode 100644 index f159ff4..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-arm64/native/libSkiaSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libHarfBuzzSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libHarfBuzzSharp.so deleted file mode 100644 index 43ea300..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libHarfBuzzSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libSkiaSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libSkiaSharp.so deleted file mode 100644 index 6c63070..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-musl-x64/native/libSkiaSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libHarfBuzzSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libHarfBuzzSharp.so deleted file mode 100644 index d8548f3..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libHarfBuzzSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libSkiaSharp.so b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libSkiaSharp.so deleted file mode 100644 index 7501c49..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/linux-x64/native/libSkiaSharp.so and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libAvaloniaNative.dylib b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libAvaloniaNative.dylib deleted file mode 100644 index 7cb9247..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libAvaloniaNative.dylib and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libHarfBuzzSharp.dylib b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libHarfBuzzSharp.dylib deleted file mode 100644 index 4006008..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libHarfBuzzSharp.dylib and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libSkiaSharp.dylib b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libSkiaSharp.dylib deleted file mode 100644 index 9895bde..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/osx/native/libSkiaSharp.dylib and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/av_libglesv2.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/av_libglesv2.dll deleted file mode 100644 index 51f4008..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/av_libglesv2.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libHarfBuzzSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libHarfBuzzSharp.dll deleted file mode 100644 index 1f85519..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libHarfBuzzSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libSkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libSkiaSharp.dll deleted file mode 100644 index 6e936f3..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-arm64/native/libSkiaSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/DirectXTexNetImpl.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/DirectXTexNetImpl.dll deleted file mode 100644 index b044019..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/DirectXTexNetImpl.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/Ijwhost.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/Ijwhost.dll deleted file mode 100644 index b638f7e..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/Ijwhost.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/av_libglesv2.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/av_libglesv2.dll deleted file mode 100644 index 7d94daf..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/av_libglesv2.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libHarfBuzzSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libHarfBuzzSharp.dll deleted file mode 100644 index 951c40a..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libHarfBuzzSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libSkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libSkiaSharp.dll deleted file mode 100644 index 4257d59..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x64/native/libSkiaSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/DirectXTexNetImpl.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/DirectXTexNetImpl.dll deleted file mode 100644 index 687e2f8..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/DirectXTexNetImpl.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/Ijwhost.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/Ijwhost.dll deleted file mode 100644 index 3e21318..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/Ijwhost.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/av_libglesv2.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/av_libglesv2.dll deleted file mode 100644 index 473c2c5..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/av_libglesv2.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libHarfBuzzSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libHarfBuzzSharp.dll deleted file mode 100644 index f992a02..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libHarfBuzzSharp.dll and /dev/null differ diff --git a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libSkiaSharp.dll b/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libSkiaSharp.dll deleted file mode 100644 index b9e588c..0000000 Binary files a/Archive/Builds/DDS_D3DTX_Converter_v2.0.0/runtimes/win-x86/native/libSkiaSharp.dll and /dev/null differ diff --git a/TelltaleTextureTool/.vscode/settings.json b/TelltaleTextureTool/.vscode/settings.json index d858bcf..2191796 100644 --- a/TelltaleTextureTool/.vscode/settings.json +++ b/TelltaleTextureTool/.vscode/settings.json @@ -1,5 +1,9 @@ { "cSpell.words": [ + "PVRTC", + "SNORM", + "SRGB", + "UNORM", "Volumemap" ] } \ No newline at end of file diff --git a/TelltaleTextureTool/TelltaleTextureTool/Common/BlowFish.cs b/TelltaleTextureTool/TelltaleTextureTool/Common/BlowFish.cs new file mode 100644 index 0000000..bcecd2b --- /dev/null +++ b/TelltaleTextureTool/TelltaleTextureTool/Common/BlowFish.cs @@ -0,0 +1,713 @@ +/**************************************************************************** + | + | Copyright (c) 2007 Novell, Inc. + | All Rights Reserved. + | + | This program is free software; you can redistribute it and/or + | modify it under the terms of version 2 of the GNU General Public License as + | published by the Free Software Foundation. + | + | This program is distributed in the hope that it will be useful, + | but WITHOUT ANY WARRANTY; without even the implied warranty of + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + | GNU General Public License for more details. + | + | You should have received a copy of the GNU General Public License + | along with this program; if not, contact Novell, Inc. + | + | To contact Novell about this file by physical or electronic mail, + | you may find current contact information at www.novell.com + | + | Author: Russ Young + | Thanks to: Bruce Schneier / Counterpane Labs + | for the Blowfish encryption algorithm and + | reference implementation. http://www.schneier.com/blowfish.html + |***************************************************************************/ + +using System; +using System.IO; +using System.Text; + +namespace Simias.Encryption +{ + /// + /// Class that provides blowfish encryption. + /// + public class Blowfish + { + const int N = 16; + const int KEYBYTES = 8; + + static uint[] _P = + { + 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0, + 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, + 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917, 0x9216d5d9, 0x8979fb1b + }; + static uint[,] _S = + { + { + 0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7, 0xb8e1afed, 0x6a267e96, + 0xba7c9045, 0xf12c7f99, 0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16, + 0x636920d8, 0x71574e69, 0xa458fea3, 0xf4933d7e, 0x0d95748f, 0x728eb658, + 0x718bcd58, 0x82154aee, 0x7b54a41d, 0xc25a59b5, 0x9c30d539, 0x2af26013, + 0xc5d1b023, 0x286085f0, 0xca417918, 0xb8db38ef, 0x8e79dcb0, 0x603a180e, + 0x6c9e0e8b, 0xb01e8a3e, 0xd71577c1, 0xbd314b27, 0x78af2fda, 0x55605c60, + 0xe65525f3, 0xaa55ab94, 0x57489862, 0x63e81440, 0x55ca396a, 0x2aab10b6, + 0xb4cc5c34, 0x1141e8ce, 0xa15486af, 0x7c72e993, 0xb3ee1411, 0x636fbc2a, + 0x2ba9c55d, 0x741831f6, 0xce5c3e16, 0x9b87931e, 0xafd6ba33, 0x6c24cf5c, + 0x7a325381, 0x28958677, 0x3b8f4898, 0x6b4bb9af, 0xc4bfe81b, 0x66282193, + 0x61d809cc, 0xfb21a991, 0x487cac60, 0x5dec8032, 0xef845d5d, 0xe98575b1, + 0xdc262302, 0xeb651b88, 0x23893e81, 0xd396acc5, 0x0f6d6ff3, 0x83f44239, + 0x2e0b4482, 0xa4842004, 0x69c8f04a, 0x9e1f9b5e, 0x21c66842, 0xf6e96c9a, + 0x670c9c61, 0xabd388f0, 0x6a51a0d2, 0xd8542f68, 0x960fa728, 0xab5133a3, + 0x6eef0b6c, 0x137a3be4, 0xba3bf050, 0x7efb2a98, 0xa1f1651d, 0x39af0176, + 0x66ca593e, 0x82430e88, 0x8cee8619, 0x456f9fb4, 0x7d84a5c3, 0x3b8b5ebe, + 0xe06f75d8, 0x85c12073, 0x401a449f, 0x56c16aa6, 0x4ed3aa62, 0x363f7706, + 0x1bfedf72, 0x429b023d, 0x37d0d724, 0xd00a1248, 0xdb0fead3, 0x49f1c09b, + 0x075372c9, 0x80991b7b, 0x25d479d8, 0xf6e8def7, 0xe3fe501a, 0xb6794c3b, + 0x976ce0bd, 0x04c006ba, 0xc1a94fb6, 0x409f60c4, 0x5e5c9ec2, 0x196a2463, + 0x68fb6faf, 0x3e6c53b5, 0x1339b2eb, 0x3b52ec6f, 0x6dfc511f, 0x9b30952c, + 0xcc814544, 0xaf5ebd09, 0xbee3d004, 0xde334afd, 0x660f2807, 0x192e4bb3, + 0xc0cba857, 0x45c8740f, 0xd20b5f39, 0xb9d3fbdb, 0x5579c0bd, 0x1a60320a, + 0xd6a100c6, 0x402c7279, 0x679f25fe, 0xfb1fa3cc, 0x8ea5e9f8, 0xdb3222f8, + 0x3c7516df, 0xfd616b15, 0x2f501ec8, 0xad0552ab, 0x323db5fa, 0xfd238760, + 0x53317b48, 0x3e00df82, 0x9e5c57bb, 0xca6f8ca0, 0x1a87562e, 0xdf1769db, + 0xd542a8f6, 0x287effc3, 0xac6732c6, 0x8c4f5573, 0x695b27b0, 0xbbca58c8, + 0xe1ffa35d, 0xb8f011a0, 0x10fa3d98, 0xfd2183b8, 0x4afcb56c, 0x2dd1d35b, + 0x9a53e479, 0xb6f84565, 0xd28e49bc, 0x4bfb9790, 0xe1ddf2da, 0xa4cb7e33, + 0x62fb1341, 0xcee4c6e8, 0xef20cada, 0x36774c01, 0xd07e9efe, 0x2bf11fb4, + 0x95dbda4d, 0xae909198, 0xeaad8e71, 0x6b93d5a0, 0xd08ed1d0, 0xafc725e0, + 0x8e3c5b2f, 0x8e7594b7, 0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c, + 0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad, 0x2f2f2218, 0xbe0e1777, + 0xea752dfe, 0x8b021fa1, 0xe5a0cc0f, 0xb56f74e8, 0x18acf3d6, 0xce89e299, + 0xb4a84fe0, 0xfd13e0b7, 0x7cc43b81, 0xd2ada8d9, 0x165fa266, 0x80957705, + 0x93cc7314, 0x211a1477, 0xe6ad2065, 0x77b5fa86, 0xc75442f5, 0xfb9d35cf, + 0xebcdaf0c, 0x7b3e89a0, 0xd6411bd3, 0xae1e7e49, 0x00250e2d, 0x2071b35e, + 0x226800bb, 0x57b8e0af, 0x2464369b, 0xf009b91e, 0x5563911d, 0x59dfa6aa, + 0x78c14389, 0xd95a537f, 0x207d5ba2, 0x02e5b9c5, 0x83260376, 0x6295cfa9, + 0x11c81968, 0x4e734a41, 0xb3472dca, 0x7b14a94a, 0x1b510052, 0x9a532915, + 0xd60f573f, 0xbc9bc6e4, 0x2b60a476, 0x81e67400, 0x08ba6fb5, 0x571be91f, + 0xf296ec6b, 0x2a0dd915, 0xb6636521, 0xe7b9f9b6, 0xff34052e, 0xc5855664, + 0x53b02d5d, 0xa99f8fa1, 0x08ba4799, 0x6e85076a + }, + { + 0x4b7a70e9, 0xb5b32944, 0xdb75092e, 0xc4192623, 0xad6ea6b0, 0x49a7df7d, + 0x9cee60b8, 0x8fedb266, 0xecaa8c71, 0x699a17ff, 0x5664526c, 0xc2b19ee1, + 0x193602a5, 0x75094c29, 0xa0591340, 0xe4183a3e, 0x3f54989a, 0x5b429d65, + 0x6b8fe4d6, 0x99f73fd6, 0xa1d29c07, 0xefe830f5, 0x4d2d38e6, 0xf0255dc1, + 0x4cdd2086, 0x8470eb26, 0x6382e9c6, 0x021ecc5e, 0x09686b3f, 0x3ebaefc9, + 0x3c971814, 0x6b6a70a1, 0x687f3584, 0x52a0e286, 0xb79c5305, 0xaa500737, + 0x3e07841c, 0x7fdeae5c, 0x8e7d44ec, 0x5716f2b8, 0xb03ada37, 0xf0500c0d, + 0xf01c1f04, 0x0200b3ff, 0xae0cf51a, 0x3cb574b2, 0x25837a58, 0xdc0921bd, + 0xd19113f9, 0x7ca92ff6, 0x94324773, 0x22f54701, 0x3ae5e581, 0x37c2dadc, + 0xc8b57634, 0x9af3dda7, 0xa9446146, 0x0fd0030e, 0xecc8c73e, 0xa4751e41, + 0xe238cd99, 0x3bea0e2f, 0x3280bba1, 0x183eb331, 0x4e548b38, 0x4f6db908, + 0x6f420d03, 0xf60a04bf, 0x2cb81290, 0x24977c79, 0x5679b072, 0xbcaf89af, + 0xde9a771f, 0xd9930810, 0xb38bae12, 0xdccf3f2e, 0x5512721f, 0x2e6b7124, + 0x501adde6, 0x9f84cd87, 0x7a584718, 0x7408da17, 0xbc9f9abc, 0xe94b7d8c, + 0xec7aec3a, 0xdb851dfa, 0x63094366, 0xc464c3d2, 0xef1c1847, 0x3215d908, + 0xdd433b37, 0x24c2ba16, 0x12a14d43, 0x2a65c451, 0x50940002, 0x133ae4dd, + 0x71dff89e, 0x10314e55, 0x81ac77d6, 0x5f11199b, 0x043556f1, 0xd7a3c76b, + 0x3c11183b, 0x5924a509, 0xf28fe6ed, 0x97f1fbfa, 0x9ebabf2c, 0x1e153c6e, + 0x86e34570, 0xeae96fb1, 0x860e5e0a, 0x5a3e2ab3, 0x771fe71c, 0x4e3d06fa, + 0x2965dcb9, 0x99e71d0f, 0x803e89d6, 0x5266c825, 0x2e4cc978, 0x9c10b36a, + 0xc6150eba, 0x94e2ea78, 0xa5fc3c53, 0x1e0a2df4, 0xf2f74ea7, 0x361d2b3d, + 0x1939260f, 0x19c27960, 0x5223a708, 0xf71312b6, 0xebadfe6e, 0xeac31f66, + 0xe3bc4595, 0xa67bc883, 0xb17f37d1, 0x018cff28, 0xc332ddef, 0xbe6c5aa5, + 0x65582185, 0x68ab9802, 0xeecea50f, 0xdb2f953b, 0x2aef7dad, 0x5b6e2f84, + 0x1521b628, 0x29076170, 0xecdd4775, 0x619f1510, 0x13cca830, 0xeb61bd96, + 0x0334fe1e, 0xaa0363cf, 0xb5735c90, 0x4c70a239, 0xd59e9e0b, 0xcbaade14, + 0xeecc86bc, 0x60622ca7, 0x9cab5cab, 0xb2f3846e, 0x648b1eaf, 0x19bdf0ca, + 0xa02369b9, 0x655abb50, 0x40685a32, 0x3c2ab4b3, 0x319ee9d5, 0xc021b8f7, + 0x9b540b19, 0x875fa099, 0x95f7997e, 0x623d7da8, 0xf837889a, 0x97e32d77, + 0x11ed935f, 0x16681281, 0x0e358829, 0xc7e61fd6, 0x96dedfa1, 0x7858ba99, + 0x57f584a5, 0x1b227263, 0x9b83c3ff, 0x1ac24696, 0xcdb30aeb, 0x532e3054, + 0x8fd948e4, 0x6dbc3128, 0x58ebf2ef, 0x34c6ffea, 0xfe28ed61, 0xee7c3c73, + 0x5d4a14d9, 0xe864b7e3, 0x42105d14, 0x203e13e0, 0x45eee2b6, 0xa3aaabea, + 0xdb6c4f15, 0xfacb4fd0, 0xc742f442, 0xef6abbb5, 0x654f3b1d, 0x41cd2105, + 0xd81e799e, 0x86854dc7, 0xe44b476a, 0x3d816250, 0xcf62a1f2, 0x5b8d2646, + 0xfc8883a0, 0xc1c7b6a3, 0x7f1524c3, 0x69cb7492, 0x47848a0b, 0x5692b285, + 0x095bbf00, 0xad19489d, 0x1462b174, 0x23820e00, 0x58428d2a, 0x0c55f5ea, + 0x1dadf43e, 0x233f7061, 0x3372f092, 0x8d937e41, 0xd65fecf1, 0x6c223bdb, + 0x7cde3759, 0xcbee7460, 0x4085f2a7, 0xce77326e, 0xa6078084, 0x19f8509e, + 0xe8efd855, 0x61d99735, 0xa969a7aa, 0xc50c06c2, 0x5a04abfc, 0x800bcadc, + 0x9e447a2e, 0xc3453484, 0xfdd56705, 0x0e1e9ec9, 0xdb73dbd3, 0x105588cd, + 0x675fda79, 0xe3674340, 0xc5c43465, 0x713e38d8, 0x3d28f89e, 0xf16dff20, + 0x153e21e7, 0x8fb03d4a, 0xe6e39f2b, 0xdb83adf7 + }, + { + 0xe93d5a68, 0x948140f7, 0xf64c261c, 0x94692934, 0x411520f7, 0x7602d4f7, + 0xbcf46b2e, 0xd4a20068, 0xd4082471, 0x3320f46a, 0x43b7d4b7, 0x500061af, + 0x1e39f62e, 0x97244546, 0x14214f74, 0xbf8b8840, 0x4d95fc1d, 0x96b591af, + 0x70f4ddd3, 0x66a02f45, 0xbfbc09ec, 0x03bd9785, 0x7fac6dd0, 0x31cb8504, + 0x96eb27b3, 0x55fd3941, 0xda2547e6, 0xabca0a9a, 0x28507825, 0x530429f4, + 0x0a2c86da, 0xe9b66dfb, 0x68dc1462, 0xd7486900, 0x680ec0a4, 0x27a18dee, + 0x4f3ffea2, 0xe887ad8c, 0xb58ce006, 0x7af4d6b6, 0xaace1e7c, 0xd3375fec, + 0xce78a399, 0x406b2a42, 0x20fe9e35, 0xd9f385b9, 0xee39d7ab, 0x3b124e8b, + 0x1dc9faf7, 0x4b6d1856, 0x26a36631, 0xeae397b2, 0x3a6efa74, 0xdd5b4332, + 0x6841e7f7, 0xca7820fb, 0xfb0af54e, 0xd8feb397, 0x454056ac, 0xba489527, + 0x55533a3a, 0x20838d87, 0xfe6ba9b7, 0xd096954b, 0x55a867bc, 0xa1159a58, + 0xcca92963, 0x99e1db33, 0xa62a4a56, 0x3f3125f9, 0x5ef47e1c, 0x9029317c, + 0xfdf8e802, 0x04272f70, 0x80bb155c, 0x05282ce3, 0x95c11548, 0xe4c66d22, + 0x48c1133f, 0xc70f86dc, 0x07f9c9ee, 0x41041f0f, 0x404779a4, 0x5d886e17, + 0x325f51eb, 0xd59bc0d1, 0xf2bcc18f, 0x41113564, 0x257b7834, 0x602a9c60, + 0xdff8e8a3, 0x1f636c1b, 0x0e12b4c2, 0x02e1329e, 0xaf664fd1, 0xcad18115, + 0x6b2395e0, 0x333e92e1, 0x3b240b62, 0xeebeb922, 0x85b2a20e, 0xe6ba0d99, + 0xde720c8c, 0x2da2f728, 0xd0127845, 0x95b794fd, 0x647d0862, 0xe7ccf5f0, + 0x5449a36f, 0x877d48fa, 0xc39dfd27, 0xf33e8d1e, 0x0a476341, 0x992eff74, + 0x3a6f6eab, 0xf4f8fd37, 0xa812dc60, 0xa1ebddf8, 0x991be14c, 0xdb6e6b0d, + 0xc67b5510, 0x6d672c37, 0x2765d43b, 0xdcd0e804, 0xf1290dc7, 0xcc00ffa3, + 0xb5390f92, 0x690fed0b, 0x667b9ffb, 0xcedb7d9c, 0xa091cf0b, 0xd9155ea3, + 0xbb132f88, 0x515bad24, 0x7b9479bf, 0x763bd6eb, 0x37392eb3, 0xcc115979, + 0x8026e297, 0xf42e312d, 0x6842ada7, 0xc66a2b3b, 0x12754ccc, 0x782ef11c, + 0x6a124237, 0xb79251e7, 0x06a1bbe6, 0x4bfb6350, 0x1a6b1018, 0x11caedfa, + 0x3d25bdd8, 0xe2e1c3c9, 0x44421659, 0x0a121386, 0xd90cec6e, 0xd5abea2a, + 0x64af674e, 0xda86a85f, 0xbebfe988, 0x64e4c3fe, 0x9dbc8057, 0xf0f7c086, + 0x60787bf8, 0x6003604d, 0xd1fd8346, 0xf6381fb0, 0x7745ae04, 0xd736fccc, + 0x83426b33, 0xf01eab71, 0xb0804187, 0x3c005e5f, 0x77a057be, 0xbde8ae24, + 0x55464299, 0xbf582e61, 0x4e58f48f, 0xf2ddfda2, 0xf474ef38, 0x8789bdc2, + 0x5366f9c3, 0xc8b38e74, 0xb475f255, 0x46fcd9b9, 0x7aeb2661, 0x8b1ddf84, + 0x846a0e79, 0x915f95e2, 0x466e598e, 0x20b45770, 0x8cd55591, 0xc902de4c, + 0xb90bace1, 0xbb8205d0, 0x11a86248, 0x7574a99e, 0xb77f19b6, 0xe0a9dc09, + 0x662d09a1, 0xc4324633, 0xe85a1f02, 0x09f0be8c, 0x4a99a025, 0x1d6efe10, + 0x1ab93d1d, 0x0ba5a4df, 0xa186f20f, 0x2868f169, 0xdcb7da83, 0x573906fe, + 0xa1e2ce9b, 0x4fcd7f52, 0x50115e01, 0xa70683fa, 0xa002b5c4, 0x0de6d027, + 0x9af88c27, 0x773f8641, 0xc3604c06, 0x61a806b5, 0xf0177a28, 0xc0f586e0, + 0x006058aa, 0x30dc7d62, 0x11e69ed7, 0x2338ea63, 0x53c2dd94, 0xc2c21634, + 0xbbcbee56, 0x90bcb6de, 0xebfc7da1, 0xce591d76, 0x6f05e409, 0x4b7c0188, + 0x39720a3d, 0x7c927c24, 0x86e3725f, 0x724d9db9, 0x1ac15bb4, 0xd39eb8fc, + 0xed545578, 0x08fca5b5, 0xd83d7cd3, 0x4dad0fc4, 0x1e50ef5e, 0xb161e6f8, + 0xa28514d9, 0x6c51133c, 0x6fd5c7e7, 0x56e14ec4, 0x362abfce, 0xddc6c837, + 0xd79a3234, 0x92638212, 0x670efa8e, 0x406000e0 + }, + { + 0x3a39ce37, 0xd3faf5cf, 0xabc27737, 0x5ac52d1b, 0x5cb0679e, 0x4fa33742, + 0xd3822740, 0x99bc9bbe, 0xd5118e9d, 0xbf0f7315, 0xd62d1c7e, 0xc700c47b, + 0xb78c1b6b, 0x21a19045, 0xb26eb1be, 0x6a366eb4, 0x5748ab2f, 0xbc946e79, + 0xc6a376d2, 0x6549c2c8, 0x530ff8ee, 0x468dde7d, 0xd5730a1d, 0x4cd04dc6, + 0x2939bbdb, 0xa9ba4650, 0xac9526e8, 0xbe5ee304, 0xa1fad5f0, 0x6a2d519a, + 0x63ef8ce2, 0x9a86ee22, 0xc089c2b8, 0x43242ef6, 0xa51e03aa, 0x9cf2d0a4, + 0x83c061ba, 0x9be96a4d, 0x8fe51550, 0xba645bd6, 0x2826a2f9, 0xa73a3ae1, + 0x4ba99586, 0xef5562e9, 0xc72fefd3, 0xf752f7da, 0x3f046f69, 0x77fa0a59, + 0x80e4a915, 0x87b08601, 0x9b09e6ad, 0x3b3ee593, 0xe990fd5a, 0x9e34d797, + 0x2cf0b7d9, 0x022b8b51, 0x96d5ac3a, 0x017da67d, 0xd1cf3ed6, 0x7c7d2d28, + 0x1f9f25cf, 0xadf2b89b, 0x5ad6b472, 0x5a88f54c, 0xe029ac71, 0xe019a5e6, + 0x47b0acfd, 0xed93fa9b, 0xe8d3c48d, 0x283b57cc, 0xf8d56629, 0x79132e28, + 0x785f0191, 0xed756055, 0xf7960e44, 0xe3d35e8c, 0x15056dd4, 0x88f46dba, + 0x03a16125, 0x0564f0bd, 0xc3eb9e15, 0x3c9057a2, 0x97271aec, 0xa93a072a, + 0x1b3f6d9b, 0x1e6321f5, 0xf59c66fb, 0x26dcf319, 0x7533d928, 0xb155fdf5, + 0x03563482, 0x8aba3cbb, 0x28517711, 0xc20ad9f8, 0xabcc5167, 0xccad925f, + 0x4de81751, 0x3830dc8e, 0x379d5862, 0x9320f991, 0xea7a90c2, 0xfb3e7bce, + 0x5121ce64, 0x774fbe32, 0xa8b6e37e, 0xc3293d46, 0x48de5369, 0x6413e680, + 0xa2ae0810, 0xdd6db224, 0x69852dfd, 0x09072166, 0xb39a460a, 0x6445c0dd, + 0x586cdecf, 0x1c20c8ae, 0x5bbef7dd, 0x1b588d40, 0xccd2017f, 0x6bb4e3bb, + 0xdda26a7e, 0x3a59ff45, 0x3e350a44, 0xbcb4cdd5, 0x72eacea8, 0xfa6484bb, + 0x8d6612ae, 0xbf3c6f47, 0xd29be463, 0x542f5d9e, 0xaec2771b, 0xf64e6370, + 0x740e0d8d, 0xe75b1357, 0xf8721671, 0xaf537d5d, 0x4040cb08, 0x4eb4e2cc, + 0x34d2466a, 0x0115af84, 0xe1b00428, 0x95983a1d, 0x06b89fb4, 0xce6ea048, + 0x6f3f3b82, 0x3520ab82, 0x011a1d4b, 0x277227f8, 0x611560b1, 0xe7933fdc, + 0xbb3a792b, 0x344525bd, 0xa08839e1, 0x51ce794b, 0x2f32c9b7, 0xa01fbac9, + 0xe01cc87e, 0xbcc7d1f6, 0xcf0111c3, 0xa1e8aac7, 0x1a908749, 0xd44fbd9a, + 0xd0dadecb, 0xd50ada38, 0x0339c32a, 0xc6913667, 0x8df9317c, 0xe0b12b4f, + 0xf79e59b7, 0x43f5bb3a, 0xf2d519ff, 0x27d9459c, 0xbf97222c, 0x15e6fc2a, + 0x0f91fc71, 0x9b941525, 0xfae59361, 0xceb69ceb, 0xc2a86459, 0x12baa8d1, + 0xb6c1075e, 0xe3056a0c, 0x10d25065, 0xcb03a442, 0xe0ec6e0e, 0x1698db3b, + 0x4c98a0be, 0x3278e964, 0x9f1f9532, 0xe0d392df, 0xd3a0342b, 0x8971f21e, + 0x1b0a7441, 0x4ba3348c, 0xc5be7120, 0xc37632d8, 0xdf359f8d, 0x9b992f2e, + 0xe60b6f47, 0x0fe3f11d, 0xe54cda54, 0x1edad891, 0xce6279cf, 0xcd3e7e6f, + 0x1618b166, 0xfd2c1d05, 0x848fd2c5, 0xf6fb2299, 0xf523f357, 0xa6327623, + 0x93a83531, 0x56cccd02, 0xacf08162, 0x5a75ebb5, 0x6e163697, 0x88d273cc, + 0xde966292, 0x81b949d0, 0x4c50901b, 0x71c65614, 0xe6c6c7bd, 0x327a140a, + 0x45e1d006, 0xc3f27b9a, 0xc9aa53fd, 0x62a80f00, 0xbb25bfe2, 0x35bdd2f6, + 0x71126905, 0xb2040222, 0xb6cbcf7c, 0xcd769c2b, 0x53113ec0, 0x1640e3d3, + 0x38abbd60, 0x2547adf0, 0xba38209c, 0xf746ce76, 0x77afa1c5, 0x20756060, + 0x85cbfe4e, 0x8ae88dd8, 0x7aaaf9b0, 0x4cf9aa7e, 0x1948c25c, 0x02fb8a8c, + 0x01c36ae4, 0xd6ebe1f9, 0x90d4f869, 0xa65cdea0, 0x3f09252d, 0xc208e69f, + 0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6 + } + }; + + uint[] P; + uint[,] S; + + /// + /// Constructs and initializes a blowfish instance with the supplied key. + /// + /// The key to cipher with. + public Blowfish(byte[] key) + { + short i; + short j; + short k; + uint data; + uint datal; + uint datar; + + P = _P.Clone() as uint[]; + S = _S.Clone() as uint[,]; + + j = 0; + for (i = 0; i < N + 2; ++i) + { + data = 0x00000000; + for (k = 0; k < 4; ++k) + { + data = (data << 8) | key[j]; + j++; + if (j >= key.Length) + { + j = 0; + } + } + P[i] = P[i] ^ data; + } + + datal = 0x00000000; + datar = 0x00000000; + + for (i = 0; i < N + 2; i += 2) + { + Encipher(ref datal, ref datar); + P[i] = datal; + P[i + 1] = datar; + } + + for (i = 0; i < 4; ++i) + { + for (j = 0; j < 256; j += 2) + { + Encipher(ref datal, ref datar); + + S[i, j] = datal; + S[i, j + 1] = datar; + } + } + } + + /// + /// Constructs and initializes a blowfish instance with the supplied key. + /// + /// The key to cipher with. + public Blowfish(string key) : this(Encoding.Unicode.GetBytes(key)) + { + + } + + /// + /// + /// + /// + /// + private uint F(uint x) + { + ushort a; + ushort b; + ushort c; + ushort d; + uint y; + + d = (ushort)(x & 0x00FF); + x >>= 8; + c = (ushort)(x & 0x00FF); + x >>= 8; + b = (ushort)(x & 0x00FF); + x >>= 8; + a = (ushort)(x & 0x00FF); + //y = ((S[0][a] + S[1][b]) ^ S[2][c]) + S[3][d]; + y = S[0, a] + S[1, b]; + y = y ^ S[2, c]; + y = y + S[3, d]; + + return y; + } + + /// + /// Encrypts a byte array in place. + /// + /// The array to encrypt. + /// The amount to encrypt. + public void Encipher(byte[] data, int length) + { + uint xl, xr; + if ((length % 8) != 0) + throw new Exception("Invalid Length"); + for (int i = 0; i < length; i += 8) + { + // Encode the data in 8 byte blocks. + xl = (uint)((data[i] << 24) | (data[i + 1] << 16) | (data[i + 2] << 8) | data[i + 3]); + xr = (uint)((data[i + 4] << 24) | (data[i + 5] << 16) | (data[i + 6] << 8) | data[i + 7]); + Encipher(ref xl, ref xr); + // Now Replace the data. + data[i] = (byte)(xl >> 24); + data[i + 1] = (byte)(xl >> 16); + data[i + 2] = (byte)(xl >> 8); + data[i + 3] = (byte)(xl); + data[i + 4] = (byte)(xr >> 24); + data[i + 5] = (byte)(xr >> 16); + data[i + 6] = (byte)(xr >> 8); + data[i + 7] = (byte)(xr); + } + } + + /// + /// Encrypts 8 bytes of data (1 block) + /// + /// The left part of the 8 bytes. + /// The right part of the 8 bytes. + private void Encipher(ref uint xl, ref uint xr) + { + uint Xl; + uint Xr; + uint temp; + short i; + + Xl = xl; + Xr = xr; + + for (i = 0; i < N; ++i) + { + Xl = Xl ^ P[i]; + Xr = F(Xl) ^ Xr; + + temp = Xl; + Xl = Xr; + Xr = temp; + } + + temp = Xl; + Xl = Xr; + Xr = temp; + + Xr = Xr ^ P[N]; + Xl = Xl ^ P[N + 1]; + + xl = Xl; + xr = Xr; + } + + /// + /// Encrypts string + /// + /// The string to encrypt + /// Encrypted string + public String Encipher(String data) + { + byte[] b = Encoding.Unicode.GetBytes(data); + Encipher(b, b.Length); + + return Convert.ToBase64String(b); + } + + /// + /// Decrypts a byte array in place. + /// + /// The array to decrypt. + /// The amount to decrypt. + public void Decipher(byte[] data, int length) + { + uint xl, xr; + if ((length % 8) != 0) + throw new Exception("Invalid Length"); + for (int i = 0; i < length; i += 8) + { + // Encode the data in 8 byte blocks. + xl = (uint)((data[i] << 24) | (data[i + 1] << 16) | (data[i + 2] << 8) | data[i + 3]); + xr = (uint)((data[i + 4] << 24) | (data[i + 5] << 16) | (data[i + 6] << 8) | data[i + 7]); + Decipher(ref xl, ref xr); + // Now Replace the data. + data[i] = (byte)(xl >> 24); + data[i + 1] = (byte)(xl >> 16); + data[i + 2] = (byte)(xl >> 8); + data[i + 3] = (byte)(xl); + data[i + 4] = (byte)(xr >> 24); + data[i + 5] = (byte)(xr >> 16); + data[i + 6] = (byte)(xr >> 8); + data[i + 7] = (byte)(xr); + } + } + + /// + /// Decrypts 8 bytes of data (1 block) + /// + /// The left part of the 8 bytes. + /// The right part of the 8 bytes. + private void Decipher(ref uint xl, ref uint xr) + { + uint Xl; + uint Xr; + uint temp; + short i; + + Xl = xl; + Xr = xr; + + for (i = N + 1; i > 1; --i) + { + Xl = Xl ^ P[i]; + Xr = F(Xl) ^ Xr; + + /* Exchange Xl and Xr */ + temp = Xl; + Xl = Xr; + Xr = temp; + } + + /* Exchange Xl and Xr */ + temp = Xl; + Xl = Xr; + Xr = temp; + + Xr = Xr ^ P[1]; + Xl = Xl ^ P[0]; + + xl = Xl; + xr = Xr; + } + + /// + /// Decrypt string + /// + /// The String to decrypt + /// Decrypted string + public String Decipher(String data) + { + byte[] b = Convert.FromBase64String(data); + Decipher(b, b.Length); + + return Encoding.Unicode.GetString(b); + } + } + + public class BlowfishStream : Stream + { + class CBState : IAsyncResult + { + internal AsyncCallback callback; + internal object state; + internal byte[] buffer; + internal IAsyncResult result; + internal CBState(AsyncCallback callback, object state, byte[] buffer) + { + this.callback = callback; + this.state = state; + this.buffer = buffer; + } + #region IAsyncResult Members + + public object AsyncState + { + get + { + return state; + } + } + + public bool CompletedSynchronously + { + get + { + return result.CompletedSynchronously; + } + } + + public System.Threading.WaitHandle AsyncWaitHandle + { + get + { + return result.AsyncWaitHandle; + } + } + + public bool IsCompleted + { + get + { + return result.IsCompleted; + } + } + + #endregion + } + + public enum Target + { + Encrypted, + Normal + }; + + Stream stream; + Blowfish bf; + Target target; + + BlowfishStream(Stream stream, Blowfish bf, Target target) + { + this.stream = stream; + this.bf = bf; + this.target = target; + } + + /// + /// Returns true if the stream support reads. + /// + public override bool CanRead + { + get { return stream.CanRead; } + } + + /// + /// Returns true is the stream supports seeks. + /// + public override bool CanSeek + { + get { return stream.CanSeek; } + } + + /// + /// Returns true if the stream supports writes. + /// + public override bool CanWrite + { + get { return stream.CanWrite; } + } + + /// + /// Returns the length of the stream. + /// + public override long Length + { + get { return stream.Length; } + } + + /// + /// Gets or Sets the posistion of the stream. + /// + public override long Position + { + get { return stream.Position; } + set { stream.Position = value; } + } + + /// + /// Flushes the stream. + /// + public override void Flush() + { + stream.Flush(); + } + + /// + /// Read data from the stream and encrypt it. + /// + /// The buffer to read into. + /// The offset in the buffer to begin storing data. + /// The number of bytes to read. + /// + public override int Read(byte[] buffer, int offset, int count) + { + int bytesRead = stream.Read(buffer, offset, count); + if (target == Target.Normal) + bf.Encipher(buffer, bytesRead); + else + bf.Decipher(buffer, bytesRead); + return bytesRead; + } + + /// + /// Write data to the stream after decrypting it. + /// + /// The buffer containing the data to write. + /// The offset in the buffer where the data begins. + /// The number of bytes to write. + public override void Write(byte[] buffer, int offset, int count) + { + if (target == Target.Normal) + bf.Decipher(buffer, count); + else + bf.Encipher(buffer, count); + stream.Write(buffer, offset, count); + } + + /// + /// + /// + /// + /// + /// + /// + /// + /// + public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) + { + CBState cbs = new CBState(callback, state, buffer); + cbs.result = base.BeginRead(buffer, offset, count, new AsyncCallback(ReadComplete), cbs); + return cbs; + } + + /// + /// + /// + /// + /// + public override int EndRead(IAsyncResult asyncResult) + { + CBState cbs = (CBState)asyncResult.AsyncState; + int bytesRead = base.EndRead(cbs.result); + if (target == Target.Normal) + bf.Encipher(cbs.buffer, bytesRead); + else + bf.Decipher(cbs.buffer, bytesRead); + return bytesRead; + } + + + /// + /// The Read has completed. + /// + /// The result of the async write. + private void ReadComplete(IAsyncResult result) + { + CBState cbs = (CBState)result.AsyncState; + cbs.callback(cbs); + } + + + /// + /// + /// + /// + /// + /// + /// + /// + /// + public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) + { + if (target == Target.Normal) + bf.Decipher(buffer, count); + else + bf.Encipher(buffer, count); + return base.BeginWrite(buffer, offset, count, callback, state); + } + + /// + /// Move the current stream posistion to the specified location. + /// + /// The offset from the origin to seek. + /// The origin to seek from. + /// The new position. + public override long Seek(long offset, SeekOrigin origin) + { + return stream.Seek(offset, origin); + } + + /// + /// Set the stream length. + /// + /// The length to set. + public override void SetLength(long value) + { + stream.SetLength(value); + } + } +} diff --git a/TelltaleTextureTool/TelltaleTextureTool/Common/ByteFunctions.cs b/TelltaleTextureTool/TelltaleTextureTool/Common/ByteFunctions.cs index 201196e..e03ec27 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/Common/ByteFunctions.cs +++ b/TelltaleTextureTool/TelltaleTextureTool/Common/ByteFunctions.cs @@ -43,6 +43,25 @@ public static string ReadString(BinaryReader reader) return value; } + public static string ReadNullTerminatedString(BinaryReader reader) + { + StringBuilder sb = new(); + + // If files names longer than 256 characters exist, then I woudld be impressed. + for (int i = 0; i < 256; i++) + { + char c = reader.ReadChar(); + if (c != '\0') + { + break; + } + + sb.Append(c); + } + + return sb.ToString(); + } + public static string ReadFixedString(BinaryReader reader, int length) { string value = ""; diff --git a/TelltaleTextureTool/TelltaleTextureTool/GUI/IO/WorkingDirectory.cs b/TelltaleTextureTool/TelltaleTextureTool/GUI/IO/WorkingDirectory.cs index 0add1de..a4a6091 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/GUI/IO/WorkingDirectory.cs +++ b/TelltaleTextureTool/TelltaleTextureTool/GUI/IO/WorkingDirectory.cs @@ -1,4 +1,5 @@ -using System; +using CommunityToolkit.Mvvm.ComponentModel; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -7,12 +8,12 @@ namespace TelltaleTextureTool; public class WorkingDirectoryFile : IEquatable { - public string? FileName { get; set; } - public string? FileType { get; set; } - public DateTime FileLastWrite { get; set; } - public string? FilePath { get; set; } + public string FileName { get; set; } = string.Empty; + public string FileType { get; set; }= string.Empty; + public DateTime FileLastWrite { get; set; } = DateTime.MinValue; + public string FilePath { get; set; } = string.Empty; - public bool Equals(WorkingDirectoryFile? other) + public bool Equals(WorkingDirectoryFile other) { return FileName == other.FileName && FileType == other.FileType && @@ -20,6 +21,7 @@ public bool Equals(WorkingDirectoryFile? other) } } + public class WorkingDirectory { public string WorkingDirectoryPath = string.Empty; diff --git a/TelltaleTextureTool/TelltaleTextureTool/GUI/ImageData.cs b/TelltaleTextureTool/TelltaleTextureTool/GUI/ImageData.cs index 4400849..f5963c7 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/GUI/ImageData.cs +++ b/TelltaleTextureTool/TelltaleTextureTool/GUI/ImageData.cs @@ -13,7 +13,6 @@ using System.Runtime.InteropServices; using Avalonia.Platform; using Avalonia; -using Hexa.NET.DirectXTex; namespace TelltaleTextureTool; @@ -21,34 +20,66 @@ public class ImageData { public ImageProperties ImageProperties { get; set; } public Bitmap ImageBitmap { get; set; } + public DDS DDSImage { get; set; } - public ImageData(string filePath, TextureType textureType, D3DTXVersion d3DTXVersion = D3DTXVersion.DEFAULT) + private uint Mip { get; set; } + private uint Face { get; set; } + + public uint MaxMip { get; set; } + public uint MaxFace { get; set; } + + private string CurrentFilePath { get; set; } + private TextureType CurrentTextureType { get; set; } + private D3DTXVersion CurrentD3DTXVersion { get; set; } + + + public ImageData(string filePath, TextureType textureType, D3DTXVersion d3DTXVersion = D3DTXVersion.DEFAULT, uint mip = 0, uint face = 0) { - GetImageData(filePath, textureType, out Bitmap imageBitmap, out ImageProperties imageProperties, d3DTXVersion); + Mip = mip; + Face = face; + CurrentFilePath = filePath; + CurrentTextureType = textureType; + CurrentD3DTXVersion = d3DTXVersion; + + GetImageData(out Bitmap imageBitmap, out ImageProperties imageProperties); ImageBitmap = imageBitmap; ImageProperties = imageProperties; } - private void GetImageData(string filePath, TextureType textureType, out Bitmap bitmap, out ImageProperties imageProperties, D3DTXVersion d3DTXVersion = D3DTXVersion.DEFAULT) + public void SetImageData(string filePath, TextureType textureType, D3DTXVersion d3DTXVersion = D3DTXVersion.DEFAULT, uint mip = 0, uint face = 0) { - switch (textureType) + Mip = mip; + Face = face; + CurrentFilePath = filePath; + CurrentTextureType = textureType; + CurrentD3DTXVersion = d3DTXVersion; + + GetImageData(out Bitmap imageBitmap, out ImageProperties imageProperties); + + ImageBitmap = imageBitmap; + ImageProperties = imageProperties; + } + + private void GetImageData(out Bitmap bitmap, out ImageProperties imageProperties) + { + switch (CurrentTextureType) { case TextureType.BMP: case TextureType.PNG: case TextureType.TGA: case TextureType.JPEG: - GetImageDataFromOthers(filePath, out bitmap, out imageProperties); + GetImageDataFromOthers(out bitmap, out imageProperties); break; case TextureType.TIFF: - GetImageDataFromTIFF(filePath, out bitmap, out imageProperties); + GetImageDataFromTIFF(out bitmap, out imageProperties); break; case TextureType.DDS: - GetImageDataFromDDS(filePath, out bitmap, out imageProperties); + GetImageDataFromDDS(out bitmap, out imageProperties); break; case TextureType.D3DTX: - GetImageDataFromD3DTX(filePath, d3DTXVersion, out bitmap, out imageProperties); + GetImageDataFromD3DTX(CurrentD3DTXVersion, out bitmap, out imageProperties); break; case TextureType.KTX: case TextureType.KTX2: @@ -60,42 +91,10 @@ private void GetImageData(string filePath, TextureType textureType, out Bitmap b } } - private void GetImageDataFromOthers(string filePath, out Bitmap bitmap, out ImageProperties imageProperties) - { - // Load the image using SkiaSharp - using (var skBitmap = SKBitmap.Decode(filePath)) - { - // Create a memory stream to hold the image data - using (var ms = new MemoryStream()) - { - // Encode the SKBitmap to a PNG and write to the memory stream - skBitmap.Encode(ms, SKEncodedImageFormat.Png, 100); - ms.Seek(0, SeekOrigin.Begin); // Rewind the stream to the beginning - - // Create an Avalonia Bitmap from the memory stream - bitmap = new Bitmap(ms); - } - - string hasAlphaString = skBitmap.Info.IsOpaque ? "True" : "False"; - - imageProperties = new ImageProperties() - { - Name = Path.GetFileNameWithoutExtension(filePath), - Extension = Path.GetExtension(filePath), - SurfaceFormat = skBitmap.ColorType.ToString(), - ChannelCount = (skBitmap.BytesPerPixel*8).ToString(), - Height = skBitmap.Height.ToString(), - Width = skBitmap.Width.ToString(), - HasAlpha = hasAlphaString, - MipMapCount = "N/A" // SkiaSharp does not provide mipmap count directly - }; - } - } - - private void GetImageDataFromD3DTX(string filePath, D3DTXVersion d3DTXVersion, out Bitmap bitmap, out ImageProperties imageProperties) + private void GetImageDataFromD3DTX(D3DTXVersion d3DTXVersion, out Bitmap bitmap, out ImageProperties imageProperties) { var d3dtx = new D3DTX_Master(); - d3dtx.ReadD3DTXFile(filePath, d3DTXVersion); + d3dtx.ReadD3DTXFile(CurrentFilePath, d3DTXVersion); // Initialize image properties D3DTXMetadata metadata = d3dtx.GetMetadata(); @@ -115,121 +114,59 @@ private void GetImageDataFromD3DTX(string filePath, D3DTXVersion d3DTXVersion, o DDS_Master ddsFile = new(d3dtx); var array = ddsFile.GetData(d3dtx); - bitmap = ConvertDdsToBitmap(array); - } + DDSImage = new DDS(array); - private void GetImageDataFromDDS(string filePath, out Bitmap bitmap, out ImageProperties imageProperties) - { - DDS_DirectXTexNet.GetImageData(ByteFunctions.LoadTexture(filePath), out MemoryStream memoryStream, out TexMetadata ddsMetadata); - - bitmap = new Bitmap(memoryStream); - imageProperties = DDS_DirectXTexNet.GetDDSProperties(filePath, ddsMetadata); + bitmap = ConvertDdsToBitmap(Mip, Face); } - private void GetImageDataFromTIFF(string filePath, out Bitmap bitmap, out ImageProperties imageProperties) + private void GetImageDataFromDDS(out Bitmap bitmap, out ImageProperties imageProperties) { - bitmap = ConvertTiffToBitmap(filePath); - - var imageInfo = SixLabors.ImageSharp.Image.Identify(filePath); - var image = SixLabors.ImageSharp.Image.Load(filePath); + // if (filePath != currentFilePath) + // { - bool hasAlpha = ImageUtilities.IsImageOpaque(image); - string hasAlphaString = hasAlpha ? "True" : "False"; + // currentFilePath = filePath; + // } - imageProperties = new ImageProperties() - { - Name = Path.GetFileNameWithoutExtension(filePath), - Extension = Path.GetExtension(filePath), - SurfaceFormat = imageInfo.Metadata.DecodedImageFormat.Name, - ChannelCount = (imageInfo.PixelType.BitsPerPixel / 8).ToString(), - Height = imageInfo.Height.ToString(), - Width = imageInfo.Width.ToString(), - HasAlpha = hasAlphaString, - MipMapCount = "N/A" - }; - } + DDSImage = new DDS(CurrentFilePath); - private void GetImageDataFromInvalid(out Bitmap? bitmap, out ImageProperties imageProperties) - { - bitmap = null; + bitmap = ConvertDdsToBitmap(Mip, Face); - imageProperties = new ImageProperties() - { - Name = "", - SurfaceFormat = "", - ChannelCount = "", - Height = "", - Width = "", - MipMapCount = "", - HasAlpha = "" - }; + imageProperties = DDS_DirectXTexNet.GetDDSProperties(CurrentFilePath, DDSImage.Metadata); } /// - /// Converts .tiff to a bitmap. This is only used in the image preview. + /// Converts .dds files to a bitmap. This is only used in the image preview. /// - /// - /// - private Bitmap ConvertTiffToBitmap(string filePath) + /// The dds image from DirectXTexNet. + /// The png bitmap from .dds. + private Bitmap ConvertDdsToBitmap(uint mip, uint face) { - byte[] fileBytes = File.ReadAllBytes(filePath); - Stream tiffStream = new MemoryStream(fileBytes); - // open a TIFF stored in the stream - using var tifImg = Tiff.ClientOpen("in-memory", "r", tiffStream, new TiffStream()); - // read the dimensions - var width = tifImg.GetField(TiffTag.IMAGEWIDTH)[0].ToInt(); - var height = tifImg.GetField(TiffTag.IMAGELENGTH)[0].ToInt(); - - //Experimentation, ignore this - //var smth = tifImg.GetField(TiffTag.COMPRESSION)[0].ToInt(); - - // create the bitmap - var bitmap = new SKBitmap(); - var info = new SKImageInfo(width, height, SKImageInfo.PlatformColorType, SKAlphaType.Premul, - SKColorSpace.CreateSrgb()); - - // create the buffer that will hold the pixels - var raster = new int[width * height]; - - // get a pointer to the buffer, and give it to the bitmap - var ptr = GCHandle.Alloc(raster, GCHandleType.Pinned); - bitmap.InstallPixels(info, ptr.AddrOfPinnedObject(), info.RowBytes); + DDSImage.GetData(mip, face, out ulong width, out ulong height, out ulong pitch, out ulong length, out byte[] pixelData); + DDSImage.GetBounds(out uint maxMip, out uint maxFace); + MaxMip = maxMip; + MaxFace = maxFace; + + // Converts the data into writeableBitmap. (TODO Insert a link to the code) + var imageInfo = new SKImageInfo((int)width, (int)height, SKColorType.Bgra8888); + var handle = GCHandle.Alloc(pixelData, GCHandleType.Pinned); + var ptr = Marshal.UnsafeAddrOfPinnedArrayElement(pixelData, 0); + using var data = SKData.Create(ptr, (int)length, (_, _) => handle.Free()); + using var skImage = SKImage.FromPixels(imageInfo, data, (int)pitch); + using var bitmap = SKBitmap.FromImage(skImage); - // read the image into the memory buffer - if (!tifImg.ReadRGBAImageOriented(width, height, raster, - BitMiracle.LibTiff.Classic.Orientation.TOPLEFT)) - { - // not a valid TIF image. - return null; - } - - // swap the red and blue because SkiaSharp may differ from the tiff - if (SKImageInfo.PlatformColorType == SKColorType.Bgra8888) - { - SKSwizzle.SwapRedBlue(ptr.AddrOfPinnedObject(), raster.Length); - } - - var writeableBitmap = new WriteableBitmap(new PixelSize(width, height), new Vector(96, 96), - PixelFormat.Bgra8888); + // Create a memory stream to hold the PNG data + var memoryStream = new MemoryStream(); - using var lockedBitmap = writeableBitmap.Lock(); - // Copy the SKBitmap pixel data to the Avalonia WriteableBitmap - Marshal.Copy(bitmap.Bytes, 0, lockedBitmap.Address, bitmap.Bytes.Length); + // Encode the bitmap to PNG and write it to the memory stream + var wstream = new SKManagedWStream(memoryStream); - return writeableBitmap; - } + var success = bitmap.Encode(wstream, SKEncodedImageFormat.Png, 95); + Console.WriteLine(success ? "Image converted successfully" : "Image conversion failed"); - /// - /// Converts .dds files to a bitmap. This is only used in the image preview. - /// - /// The dds image from DirectXTexNet. - /// The png bitmap from .dds. - private static Bitmap ConvertDdsToBitmap(byte[] ddsData) - { - using var image = Pfimage.FromStream(DDS_DirectXTexNet.GetUnmanagedMemoryStreamFromMemory(ddsData)); + memoryStream.Position = 0; - return GetDDSBitmap(image); + return new Bitmap(memoryStream); } private static Bitmap GetDDSBitmap(IImage image) @@ -333,6 +270,133 @@ private static Bitmap GetDDSBitmap(IImage image) return new Bitmap(memoryStream); } + + private void GetImageDataFromOthers(out Bitmap bitmap, out ImageProperties imageProperties) + { + // Load the image using SkiaSharp + using (var skBitmap = SKBitmap.Decode(CurrentFilePath)) + { + // Create a memory stream to hold the image data + using (var ms = new MemoryStream()) + { + // Encode the SKBitmap to a PNG and write to the memory stream + skBitmap.Encode(ms, SKEncodedImageFormat.Png, 100); + ms.Seek(0, SeekOrigin.Begin); // Rewind the stream to the beginning + + // Create an Avalonia Bitmap from the memory stream + bitmap = new Bitmap(ms); + } + + string hasAlphaString = skBitmap.Info.IsOpaque ? "False" : "True"; + + imageProperties = new ImageProperties() + { + Name = Path.GetFileNameWithoutExtension(CurrentFilePath), + Extension = Path.GetExtension(CurrentFilePath), + SurfaceFormat = skBitmap.ColorType.ToString(), + ChannelCount = (skBitmap.BytesPerPixel * 8).ToString(), + Height = skBitmap.Height.ToString(), + Width = skBitmap.Width.ToString(), + HasAlpha = hasAlphaString, + MipMapCount = "N/A" // SkiaSharp does not provide mipmap count directly + }; + } + } + + private void GetImageDataFromTIFF(out Bitmap bitmap, out ImageProperties imageProperties) + { + bitmap = ConvertTiffToBitmap(); + + var imageInfo = SixLabors.ImageSharp.Image.Identify(CurrentFilePath); + var image = SixLabors.ImageSharp.Image.Load(CurrentFilePath); + + bool hasAlpha = ImageUtilities.IsImageOpaque(image); + string hasAlphaString = hasAlpha ? "True" : "False"; + + imageProperties = new ImageProperties() + { + Name = Path.GetFileNameWithoutExtension(CurrentFilePath), + Extension = Path.GetExtension(CurrentFilePath), + SurfaceFormat = imageInfo.Metadata.DecodedImageFormat.Name, + ChannelCount = (imageInfo.PixelType.BitsPerPixel / 8).ToString(), + Height = imageInfo.Height.ToString(), + Width = imageInfo.Width.ToString(), + HasAlpha = hasAlphaString, + MipMapCount = "N/A" + }; + } + + private void GetImageDataFromInvalid(out Bitmap? bitmap, out ImageProperties imageProperties) + { + bitmap = null; + + imageProperties = new ImageProperties() + { + Name = "", + SurfaceFormat = "", + ChannelCount = "", + Height = "", + Width = "", + MipMapCount = "", + HasAlpha = "" + }; + } + + /// + /// Converts .tiff to a bitmap. This is only used in the image preview. + /// + /// + /// + private Bitmap ConvertTiffToBitmap() + { + byte[] fileBytes = File.ReadAllBytes(CurrentFilePath); + Stream tiffStream = new MemoryStream(fileBytes); + // open a TIFF stored in the stream + using var tifImg = Tiff.ClientOpen("in-memory", "r", tiffStream, new TiffStream()); + // read the dimensions + var width = tifImg.GetField(TiffTag.IMAGEWIDTH)[0].ToInt(); + var height = tifImg.GetField(TiffTag.IMAGELENGTH)[0].ToInt(); + + //Experimentation, ignore this + //var smth = tifImg.GetField(TiffTag.COMPRESSION)[0].ToInt(); + + // create the bitmap + var bitmap = new SKBitmap(); + var info = new SKImageInfo(width, height, SKImageInfo.PlatformColorType, SKAlphaType.Premul, + SKColorSpace.CreateSrgb()); + + // create the buffer that will hold the pixels + var raster = new int[width * height]; + + // get a pointer to the buffer, and give it to the bitmap + var ptr = GCHandle.Alloc(raster, GCHandleType.Pinned); + bitmap.InstallPixels(info, ptr.AddrOfPinnedObject(), info.RowBytes); + + + // read the image into the memory buffer + if (!tifImg.ReadRGBAImageOriented(width, height, raster, + BitMiracle.LibTiff.Classic.Orientation.TOPLEFT)) + { + // not a valid TIF image. + return null; + } + + // swap the red and blue because SkiaSharp may differ from the tiff + if (SKImageInfo.PlatformColorType == SKColorType.Bgra8888) + { + SKSwizzle.SwapRedBlue(ptr.AddrOfPinnedObject(), raster.Length); + } + + var writeableBitmap = new WriteableBitmap(new PixelSize(width, height), new Vector(96, 96), + PixelFormat.Bgra8888); + + using var lockedBitmap = writeableBitmap.Lock(); + // Copy the SKBitmap pixel data to the Avalonia WriteableBitmap + Marshal.Copy(bitmap.Bytes, 0, lockedBitmap.Address, bitmap.Bytes.Length); + + return writeableBitmap; + } + /// /// Gets the properties of the selected .dds file /// diff --git a/TelltaleTextureTool/TelltaleTextureTool/GUI/ViewModels/MainViewModel.cs b/TelltaleTextureTool/TelltaleTextureTool/GUI/ViewModels/MainViewModel.cs index 0b9bf4f..564e070 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/GUI/ViewModels/MainViewModel.cs +++ b/TelltaleTextureTool/TelltaleTextureTool/GUI/ViewModels/MainViewModel.cs @@ -120,14 +120,12 @@ public partial class MainViewModel : ViewModelBase #region UI PROPERTIES - [ObservableProperty] private WorkingDirectoryFile? _dataGridSelectedItem; - [ObservableProperty] private ImageProperties _imageProperties; [ObservableProperty] private FormatItemViewModel _selectedFormat; [ObservableProperty] private FormatItemViewModel _selectedVersionConvertOption; - [ObservableProperty] private ObservableCollection _formatsList; - [ObservableProperty] private ObservableCollection _versionConvertOptionsList; + [ObservableProperty] private ObservableCollection _formatsList = []; + [ObservableProperty] private ObservableCollection _versionConvertOptionsList = []; [ObservableProperty] private bool _comboBoxStatus; [ObservableProperty] private bool _versionConvertComboBoxStatus; [ObservableProperty] private bool _saveButtonStatus; @@ -141,12 +139,25 @@ public partial class MainViewModel : ViewModelBase [ObservableProperty] private int _selectedLegacyTitleIndex; [ObservableProperty] private string? _imageNamePreview; [ObservableProperty] private IImage? _imagePreview; - [ObservableProperty] private string? _fileText; - [ObservableProperty] private string? _directoryPath; + [ObservableProperty] private string _fileText = string.Empty; + [ObservableProperty] private string _directoryPath = string.Empty; [ObservableProperty] private bool _returnDirectoryButtonStatus; [ObservableProperty] private bool _refreshDirectoryButtonStatus; [ObservableProperty] private bool _chooseOutputDirectoryCheckboxStatus; - [ObservableProperty] private ObservableCollection? _workingDirectoryFiles; + [ObservableProperty] private string _debugInfo = string.Empty; + + [ObservableProperty][NotifyCanExecuteChangedFor("PreviewImageCommand")] private uint _mipValue; + [ObservableProperty][NotifyCanExecuteChangedFor("PreviewImageCommand")] private uint _faceValue; + [ObservableProperty] private uint _maxMipCount; + [ObservableProperty] private uint _maxFaceCount; + [ObservableProperty] private ObservableCollection _workingDirectoryFiles = []; + + [ObservableProperty] private ImageData _imageData; + + [ObservableProperty] + [NotifyCanExecuteChangedFor("ResetPanAndZoomCommand")] + private WorkingDirectoryFile _dataGridSelectedItem = new(); + public class FormatItemViewModel { @@ -154,20 +165,6 @@ public class FormatItemViewModel public bool ItemStatus { get; set; } } - public WorkingDirectoryFile? DataGrid_SelectedItem - { - get => _dataGridSelectedItem; - set - { - if (_dataGridSelectedItem != value) - { - _dataGridSelectedItem = value; - PreviewImage(); - ResetPanAndZoomCommand.Execute(null); - } - } - } - public RelayCommand ResetPanAndZoomCommand { get; internal set; } private void ResetPanAndZoom() @@ -185,7 +182,6 @@ public MainViewModel() Source = SvgSource.Load(ErrorSvgFilename, _assetsUri) }; VersionConvertOptionsList = _versionConvertOptions; - WorkingDirectoryFiles = new ObservableCollection(); SelectedVersionConvertOption = VersionConvertOptionsList[0]; } @@ -207,7 +203,7 @@ public async Task OpenDirectoryButton_Click() { ReturnDirectoryButtonStatus = true; RefreshDirectoryButtonStatus = true; - DataGrid_SelectedItem = null; + DataGridSelectedItem = null; await UpdateUiAsync(); } @@ -223,11 +219,11 @@ public async Task SaveFileButton_Click() { try { - if (DataGrid_SelectedItem is not null) + if (DataGridSelectedItem is not null) { var topLevel = GetMainWindow(); - if (Directory.Exists(DataGrid_SelectedItem.FilePath)) + if (Directory.Exists(DataGridSelectedItem.FilePath)) { throw new Exception("Cannot save a directory."); } @@ -236,17 +232,17 @@ public async Task SaveFileButton_Click() var storageFile = await topLevel.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions { Title = "Save File", - SuggestedFileName = DataGrid_SelectedItem.FileName, + SuggestedFileName = DataGridSelectedItem.FileName, ShowOverwritePrompt = true, - DefaultExtension = DataGrid_SelectedItem.FileType is null ? "bin" : DataGrid_SelectedItem.FileType.Substring(1) + DefaultExtension = DataGridSelectedItem.FileType is null ? "bin" : DataGridSelectedItem.FileType.Substring(1) }); if (storageFile is not null) { var destinationFilePath = storageFile.Path.AbsolutePath; - if (File.Exists(DataGrid_SelectedItem.FilePath)) - File.Copy(DataGrid_SelectedItem.FilePath, destinationFilePath, true); + if (File.Exists(DataGridSelectedItem.FilePath)) + File.Copy(DataGridSelectedItem.FilePath, destinationFilePath, true); } } } @@ -309,7 +305,7 @@ public async Task AddFilesButton_Click() public async Task DeleteFileButton_Click() { var workingDirectoryFile = - DataGrid_SelectedItem; + DataGridSelectedItem; var textureFilePath = workingDirectoryFile.FilePath; @@ -343,7 +339,7 @@ public async Task DeleteFileButton_Click() } finally { - DataGrid_SelectedItem = null; + DataGridSelectedItem = null; await SafeRefreshDirectoryAsync(); await UpdateUiAsync(); } @@ -422,11 +418,11 @@ public async Task ContextMenuOpenFileCommand() { try { - if (DataGrid_SelectedItem == null) + if (DataGridSelectedItem == null) return; var workingDirectoryFile = - DataGrid_SelectedItem; + DataGridSelectedItem; var filePath = workingDirectoryFile.FilePath; @@ -447,11 +443,11 @@ public async Task ContextMenuOpenFolderCommand() try { // if there is no valid item selected, don't continue - if (DataGrid_SelectedItem == null) + if (DataGridSelectedItem == null) return; // get our selected file object from the working directory - var workingDirectoryFile = DataGrid_SelectedItem; + var workingDirectoryFile = DataGridSelectedItem; if (!Directory.Exists(workingDirectoryFile.FilePath)) throw new DirectoryNotFoundException("Directory not found."); @@ -475,17 +471,17 @@ public async Task ContextMenuOpenFileExplorerCommand() { if (DirectoryPath == null) return; - if (DataGrid_SelectedItem == null) + if (DataGridSelectedItem == null) { if (Directory.Exists(DirectoryPath)) await OpenFileExplorer(DirectoryPath); } else { - if (File.Exists(DataGrid_SelectedItem.FilePath)) - await OpenFileExplorer(DataGrid_SelectedItem.FilePath); - else if (Directory.Exists(DataGrid_SelectedItem.FilePath)) - await OpenFileExplorer(DataGrid_SelectedItem.FilePath); + if (File.Exists(DataGridSelectedItem.FilePath)) + await OpenFileExplorer(DataGridSelectedItem.FilePath); + else if (Directory.Exists(DataGridSelectedItem.FilePath)) + await OpenFileExplorer(DataGridSelectedItem.FilePath); } } catch (Exception ex) @@ -534,10 +530,10 @@ public async Task ConvertButton_Click() { try { - if (DataGrid_SelectedItem == null) return; + if (DataGridSelectedItem == null) return; var workingDirectoryFile = - DataGrid_SelectedItem; + DataGridSelectedItem; string? textureFilePath = workingDirectoryFile.FilePath; @@ -586,7 +582,7 @@ public async Task ConvertButton_Click() } else { - oldTextureType = GetTextureTypeFromExtension(DataGrid_SelectedItem.FileType); + oldTextureType = GetTextureTypeFromExtension(DataGridSelectedItem.FileType); newTextureType = GetTextureTypeFromItem(SelectedFormat.Name); Console.WriteLine("Old Texture Type: " + oldTextureType); Console.WriteLine("New Texture Type: " + newTextureType); @@ -676,16 +672,13 @@ public async Task DebugButton_Click() { try { - if (DataGrid_SelectedItem == null) return; + if (DataGridSelectedItem == null) return; var workingDirectoryFile = - DataGrid_SelectedItem; + DataGridSelectedItem; string? textureFilePath = workingDirectoryFile.FilePath; - if (!File.Exists(textureFilePath)) - throw new DirectoryNotFoundException("File was not found."); - string debugInfo = string.Empty; if (workingDirectoryFile.FileType == ".d3dtx") @@ -701,12 +694,12 @@ public async Task DebugButton_Click() { debugInfo = DDS_DirectXTexNet.GetDDSDebugInfo(textureFilePath); } + else + { + debugInfo = string.Empty; + } - var messageBox = MessageBoxes.GetDebugInformationBox(debugInfo); - - var mainWindow = GetMainWindow(); - var result = await MessageBoxManager.GetMessageBoxStandard(messageBox) - .ShowWindowDialogAsync(mainWindow); + DebugInfo = debugInfo; } catch (Exception ex) { @@ -853,11 +846,11 @@ public async void RowDoubleTappedCommand(object? sender, TappedEventArgs args) if (source is null) return; if (source is Border) { - if (DataGrid_SelectedItem == null) + if (DataGridSelectedItem == null) return; var workingDirectoryFile = - DataGrid_SelectedItem; + DataGridSelectedItem; var filePath = workingDirectoryFile.FilePath; @@ -891,9 +884,9 @@ public async void RowDoubleTappedCommand(object? sender, TappedEventArgs args) private void UpdateUIElementsAsync() { - if (DataGrid_SelectedItem != null) + if (DataGridSelectedItem != null) { - var workingDirectoryFile = DataGrid_SelectedItem; + var workingDirectoryFile = DataGridSelectedItem; var path = workingDirectoryFile.FilePath; var extension = Path.GetExtension(path).ToLowerInvariant(); @@ -945,27 +938,37 @@ private void ResetUIElements() ImageNamePreview = string.Empty; } - private async Task PreviewImage() + [RelayCommand] + public async Task UpdateUIElementsOnItemChange() + { + await PreviewImage(); + ResetPanAndZoomCommand.Execute(null); + } + + [RelayCommand] + public async Task PreviewImage() { try { UpdateUIElementsAsync(); - if (DataGrid_SelectedItem == null) + if (DataGridSelectedItem == null) return; - var workingDirectoryFile = DataGrid_SelectedItem; + var workingDirectoryFile = DataGridSelectedItem; var filePath = workingDirectoryFile.FilePath; var extension = Path.GetExtension(filePath).ToLowerInvariant(); ImageNamePreview = workingDirectoryFile.FileName + workingDirectoryFile.FileType; - TextureType textureType = TextureType.Unknown; if (extension != string.Empty) textureType = GetTextureTypeFromItem(extension.ToUpperInvariant().Remove(0, 1)); - ImageData imageData = new(filePath, textureType, GetD3DTXConversionType()); + ImageData imageData = new(filePath, textureType, GetD3DTXConversionType(),MipValue,FaceValue); + + MaxMipCount = imageData.MaxMip; + MaxFaceCount = imageData.MaxFace; ImageProperties = imageData.ImageProperties; @@ -981,6 +984,7 @@ private async Task PreviewImage() ImagePreview = imageData.ImageBitmap; } + await DebugButton_Click(); } catch (Exception ex) { diff --git a/TelltaleTextureTool/TelltaleTextureTool/GUI/Views/MainView.axaml b/TelltaleTextureTool/TelltaleTextureTool/GUI/Views/MainView.axaml index c089d1a..c1da6dd 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/GUI/Views/MainView.axaml +++ b/TelltaleTextureTool/TelltaleTextureTool/GUI/Views/MainView.axaml @@ -222,19 +222,25 @@ - - - - + + + + + + - - + + +