net9 + basic splash
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user