Skip to content

Commit

Permalink
Revert AoT (#74)
Browse files Browse the repository at this point in the history
* Update README.md

* Add missing accessibility modifier

* Slightly better pattern for Gen III HoF record

* Revert AoT
  • Loading branch information
codemonkey85 authored Dec 8, 2024
1 parent a7deb8a commit 6e23ad2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 5 additions & 3 deletions Pkmds.Web/Components/MainTabPages/RecordsTab.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down Expand Up @@ -74,7 +76,7 @@ private void SetCurrentRecordValue(uint? newValue)
}
}

void ChangeFame()
private void ChangeFame()
{
if (!HallOfFameIndexSelected || Records is null)
{
Expand Down
7 changes: 0 additions & 7 deletions Pkmds.Web/Pkmds.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>

<PropertyGroup>
<RunAOTCompilation>true</RunAOTCompilation>
<WasmStripILAfterAOT>true</WasmStripILAfterAOT>
<BlazorWebAssemblyEnableLinking>true</BlazorWebAssemblyEnableLinking>
<BlazorEnableCompression>true</BlazorEnableCompression>
</PropertyGroup>

<PropertyGroup>
<WasmEnableSIMD>false</WasmEnableSIMD>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6e23ad2

Please sign in to comment.