From 66f0cc5bd7b97901c21c9b4de6103e4467567591 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Tue, 6 Aug 2024 14:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BF=BD=E7=95=A5,=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0PatternViewer=E7=9A=84=E6=80=A7=E8=83=BD=E9=96=8B?= =?UTF-8?q?=E9=97=9C,=E5=BD=93ROMDB=E8=BD=AC=E6=8D=A2=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AAMapper=E6=97=B6,=E5=86=99=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- .../Assets/Script/NesEmulator/PatternViewer.cs | 10 ++++++++++ AxibugEmuOnline.Client/Assets/VirtualNes.Core/ROM.cs | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c806a47..91c0c23 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ /virtuanessrc097-master/save /virtuanessrc097-master/.vs /virtuanessrc097-master/Debug -/virtuanessrc097-master/VirtualNES.ini +/virtuanessrc097-master/VirtuaNES.ini diff --git a/AxibugEmuOnline.Client/Assets/Script/NesEmulator/PatternViewer.cs b/AxibugEmuOnline.Client/Assets/Script/NesEmulator/PatternViewer.cs index e2aaf0e..4b522b9 100644 --- a/AxibugEmuOnline.Client/Assets/Script/NesEmulator/PatternViewer.cs +++ b/AxibugEmuOnline.Client/Assets/Script/NesEmulator/PatternViewer.cs @@ -24,6 +24,16 @@ namespace AxibugEmuOnline.Client Paint(); } + private void OnEnable() + { + img.gameObject.SetActive(true); + } + + private void OnDisable() + { + img.gameObject.SetActive(false); + } + public void Paint() { img.texture = m_texture; diff --git a/AxibugEmuOnline.Client/Assets/VirtualNes.Core/ROM.cs b/AxibugEmuOnline.Client/Assets/VirtualNes.Core/ROM.cs index aeb8248..9f36391 100644 --- a/AxibugEmuOnline.Client/Assets/VirtualNes.Core/ROM.cs +++ b/AxibugEmuOnline.Client/Assets/VirtualNes.Core/ROM.cs @@ -246,6 +246,7 @@ namespace VirtualNes.Core if (Supporter.TryGetMapperNo(this, out int mapperNo)) { + Debuger.Log($"ROMDB Set Mapper #{mapper:000} to #{mapperNo:000}"); mapper = mapperNo; }