Made it to load Publicized Assemblies from the Workshop folder if "Use Workshop Lua Setup" is checked in the main menu lua config.
This commit is contained in:
committed by
Evil Factory
parent
27c8a3ca2e
commit
a62b62185f
@@ -286,6 +286,17 @@ public sealed class CsPackageManager : IDisposable
|
||||
|
||||
// load publicized assemblies
|
||||
var publicizedDir = Path.Combine(Environment.CurrentDirectory, "Publicized");
|
||||
|
||||
// if using workshop lua setup is checked, try to use the publicized assemblies in the content package there instead.
|
||||
if (_luaCsSetup.Config.PreferToUseWorkshopLuaSetup)
|
||||
{
|
||||
var pck = LuaCsSetup.GetPackage(LuaCsSetup.LuaForBarotraumaId);
|
||||
if (pck is not null)
|
||||
{
|
||||
publicizedDir = Path.Combine(pck.Dir, "Binary", "Publicized");
|
||||
}
|
||||
}
|
||||
|
||||
ImmutableList<Assembly> publicizedAssemblies = ImmutableList<Assembly>.Empty;
|
||||
if (Directory.Exists(publicizedDir))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user