- Work on LuaCs system state machine.
This commit is contained in:
@@ -17,14 +17,4 @@ partial class LuaCsSetup
|
||||
SetRunState(RunState.Unloaded);
|
||||
SetRunState(RunState.Running);
|
||||
}
|
||||
|
||||
private partial bool ShouldRunCs() => IsCsEnabled.Value ||
|
||||
(GetPackage(new SteamWorkshopId(CsForBarotraumaSteamId.Value), false, false) is { }
|
||||
&& GameMain.Server.ServerPeer is LidgrenServerPeer);
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
private static readonly Lazy<bool> isRunningInsideWorkshop = new Lazy<bool>(() =>
|
||||
Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly()!.Location) !=
|
||||
Directory.GetCurrentDirectory());
|
||||
public static bool IsRunningInsideWorkshop => isRunningInsideWorkshop.Value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user