Gondwana Game Engine Development (master) - 2.7.0
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
SkiaNativeInitializationDiagnostic.cs
2
3internal static class SkiaNativeInitializationDiagnostic
4{
5 internal const string Guidance =
6 "SkiaSharp native initialization failed. Check the application's TargetFramework, " +
7 "the SDK selected by 'dotnet --version' (including global.json), and 'dotnet workload list'. " +
8 "For the Gondwana .NET 10 Blazor template, use net10.0-browser with a .NET 10 SDK and " +
9 "install wasm-tools using that SDK. Check project.assets.json for restored " +
10 "SkiaSharp.NativeAssets.WebAssembly assets, then clean, restore and rebuild.";
11
12 internal static bool IsMissingSkiaNativeLibrary(Exception exception)
13 {
14 for (Exception? current = exception; current is not null; current = current.InnerException)
15 {
16 if (current is DllNotFoundException &&
17 current.Message.Contains("libSkiaSharp", StringComparison.OrdinalIgnoreCase))
18 return true;
19
20 if (current is AggregateException aggregate &&
21 aggregate.InnerExceptions.Any(IsMissingSkiaNativeLibrary))
22 return true;
23 }
24
25 return false;
26 }
27}