Skip to content

Commit

Permalink
Fixed an issue where the program crashes if a translation was selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisDiligens committed Aug 22, 2020
1 parent 21049de commit 0a497ee
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Fo76ini/Interface/DropDown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ public void Deserialize(XElement xmlDropDown)
foreach (XElement element in xmlDropDown.Descendants("Option"))
options.Add(element.Value);

if (options.Count() != this.Items.Count())
{
Console.WriteLine($"Invalid dropdown option count of '{xmlDropDown.Attribute("id").Value}'. Expected {this.Items.Count()}, got {options.Count()}.");
return;
}

this.ReplaceRange(options.ToArray<String>());
}

Expand Down
2 changes: 1 addition & 1 deletion Fo76ini/Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum GameEdition

public class Shared
{
public const String VERSION = "1.8";
public const String VERSION = "1.8.0h1";

public static String OldAppConfigFolder = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments), "Fallout 76 Quick Configuration");
public static String AppConfigFolder = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData), "Fallout 76 Quick Configuration");
Expand Down
4 changes: 3 additions & 1 deletion Fo76ini/languages/de-DE.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Language name="Deutsch (Deutschland)" iso="de-DE" author="datasnake" version="1.8">
<Language name="Deutsch (Deutschland)" iso="de-DE" author="datasnake" version="1.8.0h1">
<Strings>
<String text="Eine neue Version ist verfügbar: {0}" id="newVersionAvailable" />
<String text="Update now!" id="updateNowButton" />
Expand Down Expand Up @@ -68,9 +68,11 @@
<Option>16x</Option>
</Dropdown>
<Dropdown id="ShadowTextureResolution">
<Option>512 = Kartoffel</Option>
<Option>1024 = Niedrig</Option>
<Option>2048 = Hoch (Standard)</Option>
<Option>4096 = Ultra</Option>
<Option>8192 = Verrückt</Option>
</Dropdown>
<Dropdown id="ShadowBlurriness">
<Option>1x</Option>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8
1.8.0h1
2 changes: 1 addition & 1 deletion setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define MyAppURL "https://www.nexusmods.com/fallout76/mods/546"
#define MyAppExeName "Fo76ini.exe"

#define ProjectVersion "1.8"
#define ProjectVersion "1.8.0h1"
#define ProjectBaseDir "C:\Users\Thomas\Documents\Fallout 76 Quick Configuration - Project files"
#define ProjectGitDir "C:\Users\Thomas\Documents\Fallout 76 Quick Configuration - Project files\Fallout76-QuickConfiguration"

Expand Down

0 comments on commit 0a497ee

Please sign in to comment.