diff --git a/CUE4Parse b/CUE4Parse index f3ed0ee2..2a358424 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit f3ed0ee2a8722d8709b77f050aaf9950ebf689e3 +Subproject commit 2a35842443eb84b1a650ec122e04a2074eb9c8e7 diff --git a/FModel/Resources/ULang.xshd b/FModel/Resources/ULang.xshd index 7921e707..aa82f023 100644 --- a/FModel/Resources/ULang.xshd +++ b/FModel/Resources/ULang.xshd @@ -12,11 +12,11 @@ - \b(?:module|class|attribute|interface|struct|external|enum|where|comparable|component|void|type|subtype) + \b(?:module|class|attribute|interface|struct|external|enum|where|comparable|component|void|type|subtype)|\@\w+ \w+(?:\'.*\')?(?=(?:<\w+>)+\() \w+(?:\'.*\')?(?=(?:<\w+>)+\^?:) <\w+> - <@.*>|^using.* + (?:^using|\# ).* (?!\()\w+(?=:) \w+(?=(?:<\w+>)+\s:=) (?<=:)[\w\[\]\?]+ diff --git a/FModel/Settings/UserSettings.cs b/FModel/Settings/UserSettings.cs index dc3c7206..545699a7 100644 --- a/FModel/Settings/UserSettings.cs +++ b/FModel/Settings/UserSettings.cs @@ -109,20 +109,6 @@ namespace FModel.Settings set => SetProperty(ref _mappingFilePath, value); } - private bool _forceGame; - public bool ForceGame - { - get => _forceGame; - set => SetProperty(ref _forceGame, value); - } - - private FGame _gameToForce; - public FGame GameToForce - { - get => _gameToForce; - set => SetProperty(ref _gameToForce, value); - } - private int _lastOpenedSettingTab; public int LastOpenedSettingTab { diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index b6e16a8a..7d9aa9e2 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -103,10 +103,7 @@ public class CUE4ParseViewModel : ViewModel } default: { - Game = UserSettings.Default.ForceGame ? - UserSettings.Default.GameToForce : - gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\").ToEnum(FGame.Unknown); - + Game = gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\").ToEnum(FGame.Unknown); var versions = new VersionContainer(UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedPlatform, customVersions: UserSettings.Default.OverridedCustomVersions[Game], optionOverrides: UserSettings.Default.OverridedOptions[Game]); @@ -278,7 +275,7 @@ public class CUE4ParseViewModel : ViewModel file.FileCount = vfs.FileCount; } - // Game = Provider.GameName.ToEnum(Game); + Game = Provider.GameName.ToEnum(Game); }); } diff --git a/FModel/ViewModels/Commands/LoadCommand.cs b/FModel/ViewModels/Commands/LoadCommand.cs index da7b6d90..e8bc4f7d 100644 --- a/FModel/ViewModels/Commands/LoadCommand.cs +++ b/FModel/ViewModels/Commands/LoadCommand.cs @@ -50,7 +50,7 @@ public class LoadCommand : ViewModelCommand _applicationView.CUE4Parse.Provider.MappingsContainer == null) { FLogger.AppendError(); - FLogger.AppendText("Mappings could not get pulled, extracting packages might not work properly. If so, press F12 or please restart.", Constants.WHITE, true); + FLogger.AppendText("Mappings could not get pulled, extracting packages might not work properly. If so, either press F12, restart, or come back later.", Constants.WHITE, true); } #if DEBUG @@ -223,4 +223,4 @@ public class LoadCommand : ViewModelCommand _applicationView.CUE4Parse.AssetsFolder.BulkPopulate(entries); } -} \ No newline at end of file +} diff --git a/FModel/ViewModels/SettingsViewModel.cs b/FModel/ViewModels/SettingsViewModel.cs index 0dad1c0f..99d5171d 100644 --- a/FModel/ViewModels/SettingsViewModel.cs +++ b/FModel/ViewModels/SettingsViewModel.cs @@ -89,13 +89,6 @@ public class SettingsViewModel : ViewModel set => SetProperty(ref _selectedDiscordRpc, value); } - private FGame _selectedForceGame; - public FGame SelectedForceGame - { - get => _selectedForceGame; - set => SetProperty(ref _selectedForceGame, value); - } - private ECompressedAudio _selectedCompressedAudio; public ECompressedAudio SelectedCompressedAudio { @@ -133,7 +126,6 @@ public class SettingsViewModel : ViewModel public ReadOnlyObservableCollection UpdateModes { get; private set; } public ObservableCollection Presets { get; private set; } - public ReadOnlyObservableCollection GameTypes { get; private set; } public ReadOnlyObservableCollection UeGames { get; private set; } public ReadOnlyObservableCollection AssetLanguages { get; private set; } public ReadOnlyObservableCollection AesReloads { get; private set; } @@ -220,12 +212,10 @@ public class SettingsViewModel : ViewModel SelectedTextureExportFormat = _textureExportFormatSnapshot; SelectedAesReload = UserSettings.Default.AesReload; SelectedDiscordRpc = UserSettings.Default.DiscordRpc; - SelectedForceGame = UserSettings.Default.GameToForce; UpdateModes = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateUpdateModes())); Presets = new ObservableCollection(EnumeratePresets()); UeGames = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateUeGames())); - GameTypes = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateGameTypes())); AssetLanguages = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateAssetLanguages())); AesReloads = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateAesReloads())); DiscordRpcs = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateDiscordRpcs())); @@ -335,7 +325,6 @@ public class SettingsViewModel : ViewModel yield return Constants._NO_PRESET_TRIGGER; } private IEnumerable EnumerateUeGames() => Enum.GetValues(); - private IEnumerable EnumerateGameTypes() => Enum.GetValues(); private IEnumerable EnumerateAssetLanguages() => Enum.GetValues(); private IEnumerable EnumerateAesReloads() => Enum.GetValues(); private IEnumerable EnumerateDiscordRpcs() => Enum.GetValues(); diff --git a/FModel/Views/SettingsView.xaml b/FModel/Views/SettingsView.xaml index 0e8ce0e2..8071bb8a 100644 --- a/FModel/Views/SettingsView.xaml +++ b/FModel/Views/SettingsView.xaml @@ -41,8 +41,6 @@ - - @@ -246,44 +244,6 @@ Visibility="{Binding OverwriteMapping, Source={x:Static local:Settings.UserSettings.Default}, Converter={StaticResource BoolToVisibilityConverter}}"/>