Skip to content

Commit

Permalink
Merge pull request #16 from rr222cy/0.4.1
Browse files Browse the repository at this point in the history
0.4.1
  • Loading branch information
roos-robert authored Mar 13, 2021
2 parents 6079384 + f69a39c commit 5a97308
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ValheimPlusManagerWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MainWindow()
// Fetching path settings
Settings = SettingsDAL.GetSettings();

managerVersionTextBlock.Text = "Version 0.4.0";
managerVersionTextBlock.Text = "Version 0.4.1";

//ValheimPlusUpdate valheimPlusUpdate = await UpdateManager.CheckForValheimPlusUpdatesAsync(Settings.ValheimPlusGameClientVersion);

Expand Down
4 changes: 2 additions & 2 deletions ValheimPlusManagerWPF/SupportClasses/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static ValheimPlusConf ReadConfigFile(bool manageClient)
{
valheimPlusConfiguration.fermenterItemsProduced = fermenterItemsProduced;
}
if (bool.TryParse(data["Fermenter"]["showFermenterDuration"], out bool showFermenterDuration))
if (bool.TryParse(data["Fermenter"]["showDuration"], out bool showFermenterDuration))
{
valheimPlusConfiguration.showFermenterDuration = showFermenterDuration;
}
Expand Down Expand Up @@ -1096,7 +1096,7 @@ public static bool WriteConfigFile(ValheimPlusConf valheimPlusConfiguration, boo
data["Fermenter"]["enabled"] = valheimPlusConfiguration.fermenterSettingsEnabled.ToString().ToLower();
data["Fermenter"]["fermenterDuration"] = valheimPlusConfiguration.fermenterDuration.ToString();
data["Fermenter"]["fermenterItemsProduced"] = valheimPlusConfiguration.fermenterItemsProduced.ToString();
data["Fermenter"]["showFermenterDuration"] = valheimPlusConfiguration.showFermenterDuration.ToString().ToLower();
data["Fermenter"]["showDuration"] = valheimPlusConfiguration.showFermenterDuration.ToString().ToLower();

#region FireSource
data["FireSource"]["enabled"] = valheimPlusConfiguration.fireSourceSettingsEnabled.ToString().ToLower();
Expand Down
4 changes: 2 additions & 2 deletions ValheimPlusManagerWPF/SupportClasses/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static async Task<bool> InstallValheimPlusUpdateAsync(bool manageClient,
string extractPath = @"Data/ValheimPlusGameClient/Extracted";

await Task.Run(() => ZipFile.ExtractToDirectory(zipPath, extractPath, true));
System.IO.File.Move(String.Format("{0}/BepInEx/config/valheim_plus.cfg", extractPath), String.Format("{0}/BepInEx/config/valheim_plus_latest.cfg", extractPath));
System.IO.File.Move(String.Format("{0}/BepInEx/config/valheim_plus.cfg", extractPath), String.Format("{0}/BepInEx/config/valheim_plus_latest.cfg", extractPath), true);

try
{
Expand All @@ -149,7 +149,7 @@ public static async Task<bool> InstallValheimPlusUpdateAsync(bool manageClient,
string extractPath = @"Data/ValheimPlusServerClient/Extracted";

await Task.Run(() => ZipFile.ExtractToDirectory(zipPath, extractPath, true));
System.IO.File.Move(String.Format("{0}/BepInEx/config/valheim_plus.cfg", extractPath), String.Format("{0}/BepInEx/config/valheim_plus_latest.cfg", extractPath));
System.IO.File.Move(String.Format("{0}/BepInEx/config/valheim_plus.cfg", extractPath), String.Format("{0}/BepInEx/config/valheim_plus_latest.cfg", extractPath), true);

try
{
Expand Down
2 changes: 1 addition & 1 deletion ValheimPlusManagerWPF/ValheimPlusManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>valheim-plus.ico</ApplicationIcon>
<Version>0.4.0</Version>
<Version>0.4.1</Version>
<Authors>Robert Roos</Authors>
<Company>Xenolith AB</Company>
<Product>ValheimPlusManager</Product>
Expand Down

0 comments on commit 5a97308

Please sign in to comment.