From 6e23ad26fa03f9a9cb69338f6ac57fae51466f12 Mon Sep 17 00:00:00 2001 From: Michael Bond Date: Sun, 8 Dec 2024 13:27:14 -0500 Subject: [PATCH] Revert AoT (#74) * Update README.md * Add missing accessibility modifier * Slightly better pattern for Gen III HoF record * Revert AoT --- Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs | 8 +++++--- Pkmds.Web/Pkmds.Web.csproj | 7 ------- README.md | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs b/Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs index b86686b3..98dc0111 100644 --- a/Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs +++ b/Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs @@ -19,9 +19,11 @@ public partial class RecordsTab private byte HallOfFameSeconds { get; set; } - private bool HallOfFameIndexSelected => CurrentRecordIndex switch + private bool HallOfFameIndexSelected => (SaveFile, CurrentRecordIndex) switch { - (int)RecID3RuSa.FIRST_HOF_PLAY_TIME or (int)RecID3Emerald.FIRST_HOF_PLAY_TIME or (int)RecID3FRLG.FIRST_HOF_PLAY_TIME => true, + (SAV3RS, (int)RecID3RuSa.FIRST_HOF_PLAY_TIME) => true, + (SAV3E, (int)RecID3Emerald.FIRST_HOF_PLAY_TIME) => true, + (SAV3FRLG, (int)RecID3FRLG.FIRST_HOF_PLAY_TIME) => true, _ => false, }; @@ -74,7 +76,7 @@ private void SetCurrentRecordValue(uint? newValue) } } - void ChangeFame() + private void ChangeFame() { if (!HallOfFameIndexSelected || Records is null) { diff --git a/Pkmds.Web/Pkmds.Web.csproj b/Pkmds.Web/Pkmds.Web.csproj index f2569887..6608ce23 100644 --- a/Pkmds.Web/Pkmds.Web.csproj +++ b/Pkmds.Web/Pkmds.Web.csproj @@ -7,13 +7,6 @@ service-worker-assets.js - - true - true - true - true - - false diff --git a/README.md b/README.md index 15d902f5..b15caf9b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Sprites from: https://github.com/msikma/pokesprite-spritesheet Some images from: https://github.com/msikma/PokeDings -[![Dependabot Updates](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/dependabot/dependabot-updates) +[![Build and Test](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/buildandtest.yml/badge.svg)](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/buildandtest.yml) [![Deploy to GitHub Pages](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/main.yml/badge.svg)](https://github.com/codemonkey85/PKMDS-Blazor/actions/workflows/main.yml)