diff --git a/FModel/Forms/AESManager.xaml.cs b/FModel/Forms/AESManager.xaml.cs index 0f80da78..ae3d9732 100644 --- a/FModel/Forms/AESManager.xaml.cs +++ b/FModel/Forms/AESManager.xaml.cs @@ -53,21 +53,25 @@ namespace FModel.Forms foreach (PAKInfosEntry Pak in PAKEntries.PAKEntriesList.Where(x => x.bTheDynamicPAK)) { - Label PakLabel = new Label(); - PakLabel.Content = Path.GetFileNameWithoutExtension(Pak.ThePAKPath); - PakLabel.HorizontalAlignment = HorizontalAlignment.Left; - PakLabel.Margin = new Thickness(2, yPos - 2, 0, 0); - PakLabel.VerticalAlignment = VerticalAlignment.Top; - PakLabel.Foreground = new SolidColorBrush(Color.FromRgb(239, 239, 239)); + Label PakLabel = new Label + { + Content = Path.GetFileNameWithoutExtension(Pak.ThePAKPath), + HorizontalAlignment = HorizontalAlignment.Left, + Margin = new Thickness(2, yPos - 2, 0, 0), + VerticalAlignment = VerticalAlignment.Top, + Foreground = new SolidColorBrush(Color.FromRgb(239, 239, 239)) + }; - TextBox PakTextBox = new TextBox(); - PakTextBox.Height = 19; - PakTextBox.TextWrapping = TextWrapping.NoWrap; - PakTextBox.AcceptsReturn = false; - PakTextBox.Margin = new Thickness(160, yPos, 5, 0); - PakTextBox.VerticalAlignment = VerticalAlignment.Top; - PakTextBox.Foreground = new SolidColorBrush(Color.FromRgb(239, 239, 239)); - PakTextBox.Name = $"TxtBox_{Regex.Match(Path.GetFileNameWithoutExtension(Pak.ThePAKPath), @"\d+").Value}"; + TextBox PakTextBox = new TextBox + { + Height = 19, + TextWrapping = TextWrapping.NoWrap, + AcceptsReturn = false, + Margin = new Thickness(160, yPos, 5, 0), + VerticalAlignment = VerticalAlignment.Top, + Foreground = new SolidColorBrush(Color.FromRgb(239, 239, 239)), + Name = $"TxtBox_{Regex.Match(Path.GetFileNameWithoutExtension(Pak.ThePAKPath), @"\d+").Value}" + }; string PAKKeyFromXML = string.Empty; if (AESEntries.AESEntriesList != null && AESEntries.AESEntriesList.Any()) diff --git a/FModel/Methods/PAKs/PAKsLoader.cs b/FModel/Methods/PAKs/PAKsLoader.cs index c10101fc..7227fa08 100644 --- a/FModel/Methods/PAKs/PAKsLoader.cs +++ b/FModel/Methods/PAKs/PAKsLoader.cs @@ -119,7 +119,6 @@ namespace FModel.Methods.PAKs { AssetEntries.ArraySearcher = new Dictionary(); AssetEntries.AssetEntriesDict = new Dictionary(); - bool isMainKeyWorking = false; //MAIN PAKs LOOP foreach (PAKInfosEntry Pak in PAKEntries.PAKEntriesList.Where(x => !x.bTheDynamicPAK)) @@ -145,7 +144,6 @@ namespace FModel.Methods.PAKs if (reader != null) { - isMainKeyWorking = true; PAKEntries.PAKToDisplay.Add(Path.GetFileName(Pak.ThePAKPath), reader.FileInfos); if (bAllPAKs) { new UpdateMyProcessEvents($"{Path.GetFileNameWithoutExtension(Pak.ThePAKPath)} mount point: {reader.MountPoint}", "Loading").Update(); } @@ -157,7 +155,6 @@ namespace FModel.Methods.PAKs } } } - if (isMainKeyWorking) { AssetTranslations.SetAssetTranslation(FProp.Default.FLanguage); } //DYNAMIC PAKs LOOP foreach (PAKInfosEntry Pak in PAKEntries.PAKEntriesList.Where(x => x.bTheDynamicPAK)) @@ -205,6 +202,8 @@ namespace FModel.Methods.PAKs else DebugHelper.WriteLine($".PAKs: No key found for {Pak.ThePAKPath}"); } + + AssetTranslations.SetAssetTranslation(FProp.Default.FLanguage); } } diff --git a/README.md b/README.md index b973733e..e0efe17e 100644 --- a/README.md +++ b/README.md @@ -132,11 +132,11 @@ For x32 users, you just have to clone or download the repository and build FMode 🐦 - - FunGames
- FunGames +
+ Fabian
+ Fabian

- 🔧 + 🔧 🐦