@@ -25,12 +25,7 @@ public class MainLoop : IDisposable
2525 private readonly Settings settings ;
2626 private readonly string serverId ;
2727 private readonly string factorioFileName ;
28-
29- #if WINDOWS
3028 private string factorioArguments ;
31- #else
32- private readonly string factorioArguments ;
33- #endif
3429
3530 // This is to stop multiple threads writing to the factorio process concurrently.
3631 private readonly SemaphoreSlim factorioProcessLock = new SemaphoreSlim ( 1 , 1 ) ;
@@ -48,7 +43,6 @@ public class MainLoop : IDisposable
4843 private volatile FactorioServerStatus status = FactorioServerStatus . WrapperStarting ;
4944 private readonly SingleConsumerQueue < Func < Task > > messageQueue ;
5045
51- #if WINDOWS
5246 private volatile RconMessenger rcon ;
5347 private int rconPort ;
5448 private const string rconPassword = "no_one_will_guess_this_awesome_password." ;
@@ -86,7 +80,6 @@ private async Task ConnectRCON()
8680 factorioProcessLock . Release ( ) ;
8781 }
8882 }
89- #endif
9083
9184 public MainLoop ( Settings settings , string serverId , string factorioFileName , string factorioArguments )
9285 {
@@ -95,9 +88,7 @@ public MainLoop(Settings settings, string serverId, string factorioFileName, str
9588 this . factorioFileName = factorioFileName ;
9689 this . factorioArguments = factorioArguments ;
9790
98- #if WINDOWS
9991 PrependRconArguments ( ) ;
100- #endif
10192
10293 messageQueue = new SingleConsumerQueue < Func < Task > > ( maxMessageQueueSize , async func =>
10394 {
0 commit comments