From 71b2525334f7cb972599f45ccdb5cbec5b1d37f7 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Mon, 13 Jan 2025 17:58:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=94=99=E8=AF=AF=E7=9A=84Un?= =?UTF-8?q?itEditor=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Script/AppMain/NesEmulator/NesEmulator.cs | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/NesEmulator.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/NesEmulator.cs index fcc1027f..8c2589af 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/NesEmulator.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/NesEmulator.cs @@ -5,7 +5,6 @@ using System.Diagnostics; using System.Globalization; using System.IO; using System.Xml.Linq; -using UnityEditor; using UnityEngine; using VirtualNes.Core; using VirtualNes.Core.Debug; @@ -179,6 +178,17 @@ namespace AxibugEmuOnline.Client return true; + } + + + public IControllerSetuper GetControllerSetuper() + { + return ControllerMapper; + } + + public void Dispose() + { + StopGame(); } #if UNITY_EDITOR @@ -207,18 +217,9 @@ namespace AxibugEmuOnline.Client db.AddInfo(new RomDB.RomInfo { CRC = crc, Mapper = mapper }); } - EditorUtility.SetDirty(db); - AssetDatabase.SaveAssets(); + UnityEditor.EditorUtility.SetDirty(db); + UnityEditor.AssetDatabase.SaveAssets(); } #endif - public IControllerSetuper GetControllerSetuper() - { - return ControllerMapper; - } - - public void Dispose() - { - StopGame(); - } } } \ No newline at end of file