public bool IsFiestaRunEditionValidAsync(UserData_FiestaRunEdition edition) { // Make sure version is at least Windows 8 if (!SupportsWinStoreApps) { return(false); } return(GetGamePackage(GetFiestaRunPackageName(edition)) != null); }
public string GetFiestaRunFileName(UserData_FiestaRunEdition version) { return(version switch { UserData_FiestaRunEdition.Default => "RFR_WinRT.exe", UserData_FiestaRunEdition.Preload => "RFR_WinRT_OEM.exe", UserData_FiestaRunEdition.Win10 => "RFRXAML.exe", _ => throw new ArgumentOutOfRangeException() });
public string GetStoreID(UserData_FiestaRunEdition version) { return(version switch { UserData_FiestaRunEdition.Default => "9wzdncrdds0c", UserData_FiestaRunEdition.Preload => "9wzdncrdcw9b", UserData_FiestaRunEdition.Win10 => "9nblggh59m6b", _ => throw new ArgumentOutOfRangeException(nameof(version), version, null), });
public EditionViewModel(UserData_FiestaRunEdition edition, FileSystemPath saveFilePath) { Edition = edition; DisplayName = edition switch { UserData_FiestaRunEdition.Default => new ResourceLocString(nameof(Resources.FiestaRunVersion_Default)), UserData_FiestaRunEdition.Preload => new ResourceLocString(nameof(Resources.FiestaRunVersion_Preload)), UserData_FiestaRunEdition.Win10 => new ResourceLocString(nameof(Resources.FiestaRunVersion_Win10)), _ => throw new ArgumentOutOfRangeException(nameof(edition), edition, null) }; SaveFilePath = saveFilePath; RequiresFixing = CheckIfSaveRequiresFix(); FixCommand = new AsyncRelayCommand(FixAsync); }
public ProgressionGameViewModel_RaymanFiestaRun(UserData_FiestaRunEdition edition, string displayName) : base(Games.RaymanFiestaRun, displayName) { Edition = edition; }