Skip to content

Commit d3907db

Browse files
authored
Merge pull request #219 from soda3x/dev
Dev
2 parents 5f24536 + 02c60c2 commit d3907db

File tree

7 files changed

+10
-55
lines changed

7 files changed

+10
-55
lines changed

ArmaReforgerServerTool/ArmaReforgerServerTool.sln

Lines changed: 0 additions & 24 deletions
This file was deleted.

ArmaReforgerServerTool/Forms/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ void CreateAdvancedServerParameterControls()
962962
Description = "The tool will monitor the server for crashes and attempt to restart it automatically."
963963
};
964964
autoRestartOnCrash.CheckBox.CheckedChanged += AutoRestartOnCrashCheckChanged;
965-
autoRestartOnCrash.CheckBox.Checked = loadedSettings["autoRestartOnCrash"].Enabled;
965+
autoRestartOnCrash.CheckBox.Checked = loadedSettings.ContainsKey("autoRestartOnCrash") ? loadedSettings["autoRestartOnCrash"].Enabled : false;
966966
advancedParametersPanel.Controls.Add(autoRestartOnCrash);
967967

968968
AdvancedServerParameterNumeric autoReload = new()

ArmaReforgerServerTool/Longbow.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ImplicitUsings>enable</ImplicitUsings>
88
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
99
<Company>soda3x</Company>
10-
<AssemblyVersion>1.0.0</AssemblyVersion>
11-
<FileVersion>1.0.0</FileVersion>
10+
<AssemblyVersion>1.0.1</AssemblyVersion>
11+
<FileVersion>1.0.1</FileVersion>
1212
<ApplicationIcon>Resources\arma_icon_white.ico</ApplicationIcon>
1313
<PublishSingleFile>true</PublishSingleFile>
1414
<OutputType>winexe</OutputType>

ArmaReforgerServerTool/Managers/FileIOManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,11 @@ public string GetSavesPath()
516516
/// <returns>Dictionary of Saved Games</returns>
517517
public Dictionary<string, string> GetSavedGames()
518518
{
519+
if (!Directory.Exists(m_savesPath))
520+
{
521+
Directory.CreateDirectory(m_savesPath);
522+
Log.Debug("FileIOManager - Saves path doesn't exist, created it...");
523+
}
519524
List<string> savedGameNames = Directory.GetFiles(m_savesPath, "*.json")
520525
.Select(Path.GetFileNameWithoutExtension)
521526
.ToList()!;

ArmaReforgerServerTool/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ static void Main()
3838
try
3939
{
4040
Log.Information("Longbow starting...");
41-
Application.EnableVisualStyles();
42-
Application.SetCompatibleTextRenderingDefault(false);
41+
ApplicationConfiguration.Initialize();
4342
Application.Run(new Main());
4443
}
4544
catch (Exception ex)

ReforgerServerApp.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

0 commit comments

Comments
 (0)