Add AssetStudioCLI project

- Updated projects and dependencies
This commit is contained in:
VaDiM
2023-03-07 06:29:11 +03:00
parent 5c662d64e4
commit c52940abc4
33 changed files with 2074 additions and 137 deletions

View File

@ -1,16 +1,20 @@
using System;
using System.Runtime.InteropServices;
#if NETFRAMEWORK
using AssetStudio.PInvoke;
#endif
namespace Texture2DDecoder
{
public static unsafe partial class TextureDecoder
{
#if NETFRAMEWORK
static TextureDecoder()
{
DllLoader.PreloadDll(T2DDll.DllName);
}
#endif
public static bool DecodeDXT1(byte[] data, int width, int height, byte[] image)
{