- Fixed stack ovewrflow from ServicesProvider (???).

This commit is contained in:
MapleWheels
2026-02-02 16:26:38 -05:00
committed by Maplewheels
parent 024b07d5f4
commit 36bed09bde
5 changed files with 24 additions and 24 deletions
@@ -189,7 +189,7 @@ public sealed class PackageManagementService : IPackageManagementService
}
}
public FluentResults.Result ExecuteLoadedPackages(ImmutableArray<ContentPackage> executionOrder)
public FluentResults.Result ExecuteLoadedPackages(ImmutableArray<ContentPackage> executionOrder, bool executeCsAssemblies)
{
using var lck = _operationsLock.AcquireReaderLock().ConfigureAwait(false).GetAwaiter().GetResult();
using var executeLock = _executionLock.AcquireWriterLock().ConfigureAwait(false).GetAwaiter().GetResult();
@@ -237,7 +237,7 @@ public sealed class PackageManagementService : IPackageManagementService
result.WithReasons(_luaScriptManagementService.ExecuteLoadedScripts(luaScripts).Reasons);
}
if (_runConfig.IsCsEnabled)
if (executeCsAssemblies)
{
var plugins = SelectCompatible(loadingOrderedPackages
.SelectMany(pkg => pkg.Value.Assemblies)