workshop installer program fix
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Barotrauma
|
||||
|
||||
string executableDir = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
|
||||
Directory.SetCurrentDirectory(executableDir);
|
||||
|
||||
|
||||
if (File.Exists("filelist.xml"))
|
||||
Directory.SetCurrentDirectory(executableDir + "/../.."); // sweet
|
||||
|
||||
|
||||
24
Workshop/WorkshopInstaller/Program.cs
Normal file
24
Workshop/WorkshopInstaller/Program.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
|
||||
|
||||
namespace WorkshopInstaller
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (File.Exists("Barotrauma.exe"))
|
||||
{
|
||||
Directory.SetCurrentDirectory("Mods/LuaForBarotrauma/");
|
||||
}
|
||||
|
||||
ZipFile.ExtractToDirectory("blacklist_files.zip", ".");
|
||||
|
||||
File.Move("DedicatedServer.exe", "WorkshopInstaller.exe");
|
||||
File.Move("DedicatedServer.exe.original", "DedicatedServer.exe");
|
||||
File.Create("DedicatedServer.exe.original");
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Workshop/WorkshopInstaller/WorkshopInstaller.csproj
Normal file
10
Workshop/WorkshopInstaller/WorkshopInstaller.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<PreserveCompilationContext>false</PreserveCompilationContext>
|
||||
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
25
Workshop/WorkshopInstaller/WorkshopInstaller.sln
Normal file
25
Workshop/WorkshopInstaller/WorkshopInstaller.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.31129.286
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkshopInstaller", "WorkshopInstaller.csproj", "{B72BA20A-E0E9-4B41-BD12-67AC62D549AE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B72BA20A-E0E9-4B41-BD12-67AC62D549AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B72BA20A-E0E9-4B41-BD12-67AC62D549AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B72BA20A-E0E9-4B41-BD12-67AC62D549AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B72BA20A-E0E9-4B41-BD12-67AC62D549AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {07CADD5B-22A1-40E4-97C5-63C715CD535A}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
Workshop/blacklist_files.zip
Normal file
BIN
Workshop/blacklist_files.zip
Normal file
Binary file not shown.
@@ -20,9 +20,9 @@ function CreateVector2(path) end
|
||||
--- Create Vector3
|
||||
-- @treturn Vector3
|
||||
-- @realm shared
|
||||
function CreateVector2(path) end
|
||||
function CreateVector3(path) end
|
||||
|
||||
--- Create Vector4
|
||||
-- @treturn Vector4
|
||||
-- @realm shared
|
||||
function CreateVector2(path) end
|
||||
function CreateVector4(path) end
|
||||
Reference in New Issue
Block a user