From 9e1efb1d577ac8037df3f4d1ebb029a9ea589c26 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 4 Dec 2021 20:50:58 +0100 Subject: save commit --- data/chess.blend | Bin 9299940 -> 9295452 bytes src/VkChess.cs | 28 +++++----------------------- ui/chess.crow | 4 ++-- ui/chess.style | 10 +++++----- ui/debug.crow | 2 +- vkChess.net.csproj | 24 ++++++++---------------- 6 files changed, 21 insertions(+), 47 deletions(-) diff --git a/data/chess.blend b/data/chess.blend index 7238e77..0b46f0e 100644 Binary files a/data/chess.blend and b/data/chess.blend differ diff --git a/src/VkChess.cs b/src/VkChess.cs index 604a628..088c418 100644 --- a/src/VkChess.cs +++ b/src/VkChess.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020-2021 Jean-Philippe Bruyère +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) + +using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -9,8 +13,6 @@ using vke; using vke.glTF; using Glfw; using Vulkan; -using System.Reflection; -using System.Net; using System.Runtime.InteropServices; using Window = Crow.Window; using System.Text; @@ -23,26 +25,6 @@ namespace vkChess public enum PieceType { Pawn, Rook, Knight, Bishop, King, Queen }; public class VkChess : CrowWindow { -#if NETCOREAPP - static IntPtr resolveUnmanaged (Assembly assembly, String libraryName) { - - switch (libraryName) - { - case "cairo": - return System.Runtime.InteropServices.NativeLibrary.Load("cairo-2", assembly, null); - case "glfw3": - return System.Runtime.InteropServices.NativeLibrary.Load("glfw", assembly, null); - case "rsvg-2.40": - return System.Runtime.InteropServices.NativeLibrary.Load("rsvg-2", assembly, null); - } - Console.WriteLine ($"[UNRESOLVE] {assembly} {libraryName}"); - return IntPtr.Zero; - } - - static VkChess () { - System.Runtime.Loader.AssemblyLoadContext.Default.ResolvingUnmanagedDll+=resolveUnmanaged; - } -#endif VkChess(){} static void Main (string [] args) { //Instance.VALIDATION = true; diff --git a/ui/chess.crow b/ui/chess.crow index 5616f45..719ee5d 100644 --- a/ui/chess.crow +++ b/ui/chess.crow @@ -1,4 +1,4 @@ - +