- Deleted unused service IPackageListRetrievalService.cs
- Added caching function to LuaScriptLoader.cs - Added sample async code to LuaScriptManagementService.cs - Removed most of the State functions in LuaCsSetup.cs (requires rewrite). - Fixed CsEnabled check. - Moved IsRunningWorkshop check to client-only project.
This commit is contained in:
@@ -25,16 +25,7 @@ namespace Barotrauma
|
||||
|
||||
public void CheckCsEnabled()
|
||||
{
|
||||
throw new NotImplementedException($"Replace PMS.Assemblies with checks on ContentPackageManager.EnabledPackages");
|
||||
|
||||
/*var csharpMods = PackageManagementService.Assemblies
|
||||
.GroupBy(ass => ass.OwnerPackage)
|
||||
.Select(grp => grp.Key)
|
||||
.Where(ContentPackageManager.EnabledPackages.All.Contains)
|
||||
.ToImmutableArray();
|
||||
|
||||
if (!csharpMods.Any())
|
||||
return;
|
||||
var csharpMods = PackageManagementService.GetLoadedAssemblyPackages();
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
@@ -67,7 +58,7 @@ namespace Barotrauma
|
||||
{
|
||||
this.IsCsEnabled.TrySetValue(false);
|
||||
return true;
|
||||
};*/
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user