net9 + basic splash

This commit is contained in:
zznty
2024-12-30 03:10:47 +07:00
parent 5af1c51be8
commit 7e9813d2a7
22 changed files with 257 additions and 1985 deletions

View File

@@ -18,13 +18,17 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
{
if (File.Exists(Path.Join(AppContext.BaseDirectory, Path.GetFileName(file))))
continue;
try
{
var name = AssemblyName.GetAssemblyName(file);
AddOverride(name, file);
}
catch (InvalidOperationException)
{
// fucking microsoft broke the standard in net9
}
catch (BadImageFormatException)
{
// if we are trying to load native image