mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server File Changes
- added Testlive server option - changed code to use different appids.
This commit is contained in:
parent
96ba2c3474
commit
a20354c1b1
32 changed files with 969 additions and 812 deletions
|
|
@ -6497,9 +6497,6 @@
|
|||
<GroupBox.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<cctl:CheckBoxAndTextBlock Name="EnableSOTFCheckbox" IsChecked="{Binding SOTF_Enabled, Mode=TwoWay, NotifyOnSourceUpdated=True}" IsEnabled="{Binding ElementName=EnablePGMCheckbox, Path=IsChecked, Converter={StaticResource InvertBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Text="{DynamicResource ServerSettings_EnableSOTFLabel}" ToolTip="{DynamicResource ServerSettings_EnableSOTFTooltip}" VerticalContentAlignment="Center" FontWeight="Bold" SourceUpdated="EnableSOTFCheckbox_SourceUpdated" />
|
||||
<Button Margin="20,5,5,5" Click="HelpSOTF_Click" BorderThickness="0" Background="{StaticResource BeigeGradient}" ToolTip="{DynamicResource ServerSettings_SOTF_HelpTooltip}" Style="{StaticResource ButtonStyle1}">
|
||||
<Image Source="{com:Icon Path=/Ark Server Manager;component/Art/Help.ico,Size=32}"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</GroupBox.Header>
|
||||
|
||||
|
|
|
|||
|
|
@ -658,22 +658,9 @@ namespace ServerManagerTool
|
|||
window.Focus();
|
||||
}
|
||||
|
||||
private void HelpSOTF_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(Config.Default.AppUrl_SotF))
|
||||
return;
|
||||
|
||||
Process.Start(Config.Default.AppUrl_SotF);
|
||||
}
|
||||
|
||||
private void PatchNotes_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var url = string.Empty;
|
||||
if (Settings.SOTF_Enabled)
|
||||
url =Config.Default.AppPatchNotesUrlSotF;
|
||||
else
|
||||
url = Config.Default.AppPatchNotesUrl;
|
||||
|
||||
var url = Settings.SOTF_Enabled ? Config.Default.AppPatchNotesUrlSotF : Config.Default.AppPatchNotesUrl;
|
||||
if (string.IsNullOrWhiteSpace(url))
|
||||
return;
|
||||
|
||||
|
|
@ -812,10 +799,8 @@ namespace ServerManagerTool
|
|||
}
|
||||
|
||||
// <data folder>\SteamCMD\steamapps\workshop\content\<app id>
|
||||
if (this.Settings.SOTF_Enabled)
|
||||
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath_SotF);
|
||||
else
|
||||
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath);
|
||||
var workshopPath = string.Format(Config.Default.AppSteamWorkshopFolderRelativePath, this.Settings.SOTF_Enabled ? Config.Default.AppId_SotF : Config.Default.AppId);
|
||||
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, workshopPath);
|
||||
if (Directory.Exists(folder))
|
||||
{
|
||||
foreach (var modFolder in Directory.GetDirectories(folder))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue