Added support for workshop install for other platforms (MacOS is likely still borked, but I don't have a Mac to test it)

This commit is contained in:
EvilFactory
2023-05-03 12:38:29 -03:00
parent 8df9f7798e
commit 8e6f8cc5e6
4 changed files with 9 additions and 5 deletions
@@ -77,7 +77,7 @@ namespace Barotrauma
string[] filesToUpdate = new string[] string[] filesToUpdate = new string[]
{ {
"Barotrauma.dll", "Barotrauma.deps.json", "Barotrauma.pdb", "Barotrauma.dll", "Barotrauma.deps.json", "Barotrauma.pdb",
"0harmony.dll", "Mono.Cecil.dll", "0Harmony.dll", "Mono.Cecil.dll",
"Sigil.dll", "Sigil.dll",
"Mono.Cecil.Mdb.dll", "Mono.Cecil.Pdb.dll", "Mono.Cecil.Mdb.dll", "Mono.Cecil.Pdb.dll",
"Mono.Cecil.Rocks.dll", "MonoMod.Common.dll", "Mono.Cecil.Rocks.dll", "MonoMod.Common.dll",
@@ -1272,14 +1272,11 @@ namespace Barotrauma
GameMain.LuaCs.ToggleDebugger(port); GameMain.LuaCs.ToggleDebugger(port);
})); }));
#if WINDOWS
commands.Add(new Command("install_cl_lua|install_cl|install_cl_cs|install_cl_luacs", "Installs Client-Side LuaCs into your client.", (string[] args) => commands.Add(new Command("install_cl_lua|install_cl|install_cl_cs|install_cl_luacs", "Installs Client-Side LuaCs into your client.", (string[] args) =>
{ {
LuaCsInstaller.Install(); LuaCsInstaller.Install();
})); }));
#endif
commands.Add(new Command("randomizeseed", "randomizeseed: Toggles level seed randomization on/off.", (string[] args) => commands.Add(new Command("randomizeseed", "randomizeseed: Toggles level seed randomization on/off.", (string[] args) =>
{ {
GameMain.Server.ServerSettings.RandomizeSeed = !GameMain.Server.ServerSettings.RandomizeSeed; GameMain.Server.ServerSettings.RandomizeSeed = !GameMain.Server.ServerSettings.RandomizeSeed;
@@ -24,7 +24,7 @@ namespace Barotrauma
string[] filesToCopy = new string[] string[] filesToCopy = new string[]
{ {
"Barotrauma.dll", "Barotrauma.deps.json", "Barotrauma.pdb", "Barotrauma.dll", "Barotrauma.deps.json", "Barotrauma.pdb",
"0harmony.dll", "Mono.Cecil.dll", "0Harmony.dll", "Mono.Cecil.dll",
"Sigil.dll", "Sigil.dll",
"Mono.Cecil.Mdb.dll", "Mono.Cecil.Pdb.dll", "Mono.Cecil.Mdb.dll", "Mono.Cecil.Pdb.dll",
"Mono.Cecil.Rocks.dll", "MonoMod.Common.dll", "Mono.Cecil.Rocks.dll", "MonoMod.Common.dll",
@@ -32,7 +32,14 @@ namespace Barotrauma
{ {
public const string LuaSetupFile = "Lua/LuaSetup.lua"; public const string LuaSetupFile = "Lua/LuaSetup.lua";
public const string VersionFile = "luacsversion.txt"; public const string VersionFile = "luacsversion.txt";
#if WINDOWS
public static ContentPackageId LuaForBarotraumaId = new SteamWorkshopId(2559634234); public static ContentPackageId LuaForBarotraumaId = new SteamWorkshopId(2559634234);
#elif LINUX
public static ContentPackageId LuaForBarotraumaId = new SteamWorkshopId(2970628943);
#elif OSX
public static ContentPackageId LuaForBarotraumaId = new SteamWorkshopId(2970890020);
#endif
public static ContentPackageId CsForBarotraumaId = new SteamWorkshopId(2795927223); public static ContentPackageId CsForBarotraumaId = new SteamWorkshopId(2795927223);