移除错误的UnitEditor引用

This commit is contained in:
ALIENJACK\alien 2025-01-13 17:58:29 +08:00
parent 1ed81f53be
commit 71b2525334

View File

@ -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();
}
}
}