From ba52dd4e845cd0030a78ed009982eaa601961cc9 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Thu, 9 Jan 2025 15:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dromitem=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=8D=B3=E6=97=B6=E6=98=BE=E7=A4=BA=E6=94=B6=E8=97=8F=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E7=9A=84=E9=97=AE=E9=A2=98,=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/AppMain/Manager/RomLib/RomLib.cs | 2 ++ .../Assets/Script/AppMain/UI/GamesUI/RomItem.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/RomLib/RomLib.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/RomLib/RomLib.cs index 8ef9f97a..3f9e4d3d 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/RomLib/RomLib.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/RomLib/RomLib.cs @@ -43,6 +43,8 @@ namespace AxibugEmuOnline.Client private void OnRomStarStateChanged(int romID, bool star) { + if (nesRomFetchList == null) return; + var targetRom = nesRomFetchList.FirstOrDefault(rom => rom.ID == romID); if (targetRom == null) return; diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomItem.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomItem.cs index 480858c8..dfe04a32 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomItem.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomItem.cs @@ -139,6 +139,7 @@ namespace AxibugEmuOnline.Client { DownloadingFlag.SetActiveEx(false); FileReadyFlag.SetActiveEx(false); + Star.SetActiveEx(IsStar); if (m_romfile == null) return; if (!m_romfile.InfoReady) return;