Added options to disable launcher/plugin auto updates
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m4s
Build / Build Nuget package (NuGet) (push) Successful in 4m7s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m5s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m25s
Build / Build Launcher (push) Successful in 5m12s
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m4s
Build / Build Nuget package (NuGet) (push) Successful in 4m7s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m5s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m25s
Build / Build Launcher (push) Successful in 5m12s
Also ran cleanup
This commit is contained in:
@@ -42,7 +42,7 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
|
||||
|
||||
if (key.StartsWith("System.") || ReferenceAssemblies.Contains(key))
|
||||
return;
|
||||
|
||||
|
||||
_assemblyNames.TryAdd(key, file);
|
||||
}
|
||||
|
||||
@@ -51,9 +51,9 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
|
||||
AddOverride(new(name), Path.Join(AppContext.BaseDirectory, name + ".dll"));
|
||||
}
|
||||
|
||||
protected override Assembly? Load(AssemblyName name)
|
||||
protected override Assembly? Load(AssemblyName assemblyName)
|
||||
{
|
||||
var key = name.Name ?? name.FullName[..','];
|
||||
var key = assemblyName.Name ?? assemblyName.FullName[..','];
|
||||
|
||||
try
|
||||
{
|
||||
@@ -79,11 +79,11 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
|
||||
var path = Path.Join(dir, unmanagedDllName);
|
||||
if (!Path.HasExtension(path))
|
||||
path += ".dll";
|
||||
|
||||
|
||||
if (File.Exists(path))
|
||||
return LoadUnmanagedDllFromPath(path);
|
||||
}
|
||||
|
||||
|
||||
throw new DllNotFoundException($"Unable to load {unmanagedDllName}, module not found in valid locations");
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@ if (args.Length == 0)
|
||||
{
|
||||
var path = Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CringeLauncher",
|
||||
"current", "CringeBootstrap.exe");
|
||||
|
||||
|
||||
Console.Write("Set your Launch Options under ");
|
||||
Console.ForegroundColor = ConsoleColor.Cyan;
|
||||
Console.Write("Space Engineers -> Properties -> Launch Options");
|
||||
@@ -38,7 +38,7 @@ AssemblyLoadContext.Default.Resolving += (loadContext, name) =>
|
||||
return null;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
var dir = Path.GetDirectoryName(args[0])!;
|
||||
var context = new GameDirectoryAssemblyLoadContext(dir);
|
||||
|
||||
|
Reference in New Issue
Block a user