diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 68afc7f..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: fromdarkhell -open_collective: # Replace with a single Open Collective username -ko_fi: fromdarkhell -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/BL3SaveEditor/Helpers/Helpers.cs b/BL3SaveEditor/Helpers/Helpers.cs index 419cb8d..bce6a2c 100644 --- a/BL3SaveEditor/Helpers/Helpers.cs +++ b/BL3SaveEditor/Helpers/Helpers.cs @@ -27,6 +27,19 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu } } + public class StringToBooleanConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + return !string.IsNullOrEmpty(value as string); + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + throw new NotImplementedException(); + } + } + /// /// A WPF value converter which converts a UInt32 amount of seconds to a TimeSpan (and back and forth) /// @@ -447,9 +460,9 @@ public class KeyToIntegerConverter : IValueConverter { public static Dictionary stringToHash = new Dictionary() { { "GoldenKeys", DataPathTranslations.GoldenKeyHash }, { "DiamondKeys", DataPathTranslations.DiamondKeyHash }, - { "VaultCard1", DataPathTranslations.VaultCard1Hash }, - { "VaultCard2", DataPathTranslations.VaultCard2Hash }, - { "VaultCard3", DataPathTranslations.VaultCard3Hash } + { "VaultCard1", 3707609395 }, + { "VaultCard2", 182401352 }, + { "VaultCard3", 3896398502 } }; public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { diff --git a/BL3SaveEditor/MainWindow.xaml b/BL3SaveEditor/MainWindow.xaml index 21b5c12..2dc2ed2 100644 --- a/BL3SaveEditor/MainWindow.xaml +++ b/BL3SaveEditor/MainWindow.xaml @@ -20,6 +20,7 @@ + @@ -472,114 +473,124 @@