(05de9c4) Added Linux launch scripts to the project

This commit is contained in:
Joonas Rikkonen
2019-04-07 21:48:03 +03:00
parent d16c470df6
commit ae07c3174a
5 changed files with 15 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
exec mono "./Barotrauma.exe" MONO_LOG_LEVEL=debug "$@"

View File

@@ -164,6 +164,9 @@
<None Include="Content\Effects\solidcolor_opengl.xnb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Launch_Barotrauma">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Shaders\Content_opengl.mgcb" />
<None Include="Content\Effects\blurshader_opengl.xnb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

View File

@@ -79,22 +79,7 @@ namespace Barotrauma
}
};
if (GameMain.Client != null && interactor == Character.Controlled)
{
var msgBox = new GUIMessageBox("", TextManager.Get("CampaignEnterOutpostPrompt")
.Replace("[locationname]", Submarine.MainSub.AtStartPosition ? Map.CurrentLocation.Name : Map.SelectedLocation.Name),
new string[] { TextManager.Get("Yes"), TextManager.Get("No") })
{
UserData = "watchmanprompt"
};
msgBox.Buttons[0].OnClicked = (btn, userdata) =>
{
GameMain.Client.RequestRoundEnd();
return true;
};
msgBox.Buttons[0].OnClicked += msgBox.Close;
msgBox.Buttons[1].OnClicked += msgBox.Close;
}
return background;
}
public override void Update(float deltaTime)

View File

@@ -0,0 +1,3 @@
#!/bin/sh
exec mono "./DedicatedServer.exe" "$@"

View File

@@ -213,9 +213,13 @@
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup Condition="'$(DefineConstants)' == 'LINUX' ">
<None Include="Launch_BarotraumaServer">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="..\BarotraumaShared\SharedCode.projitems" Label="Shared" />
<Import Project="..\BarotraumaShared\SharedContent.projitems" Label="Shared" />