Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Source/Stationeers.Addons.Patcher/Core/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public static class Constants
public const string GameExe = "../rocketstation.exe";
public const string GameResourcesDir = "../rocketstation_Data";
public const string ServerExe = "../rocketstation_DedicatedServer.exe";
public const string LinuxServerInstall = "../rocketstation_DedicatedServer.x86_64";
public const string ServerResourcesDir = "../rocketstation_DedicatedServer_Data";
public const string LoaderAssemblyFileName = "AddonManager/Stationeers.Addons.dll";
public const string LoaderTypeName = "Stationeers.Addons.Loader";
Expand Down
5 changes: 5 additions & 0 deletions Source/Stationeers.Addons.Patcher/Core/StandalonePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public static void Patch()
// Found server install
installInstance = Constants.ServerExe;
}
else if (File.Exists(Constants.LinuxServerInstall))
{
// Found linux server install
installInstance = Constants.LinuxServerInstall;
}
else
{
// No install found
Expand Down
2 changes: 1 addition & 1 deletion Source/Stationeers.Addons/Core/LoaderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void Awake()
Application.SetStackTraceLogType(LogType.Error, StackTraceLogType.None);

// Check if we are running on a dedicated server instance
IsDedicatedServer = File.Exists("rocketstation_DedicatedServer.exe");
IsDedicatedServer = File.Exists("rocketstation_DedicatedServer.exe") || File.Exists("rocketstation_DedicatedServer.x86_64");
if (IsDedicatedServer)
Debug.Log("[Stationeers.Addons - DEDICATED SERVER] Stationeers.Addons is running on a dedicated server!");

Expand Down