AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs

26 lines
742 B
C#
Raw Normal View History

2024-09-13 17:39:48 +08:00
using AxibugEmuOnline.Client.ClientCore;
using System.Diagnostics;
using VirtualNes.Core;
namespace AxibugEmuOnline.Client
{
public class InGameUI_LoadState : ExecuteMenu
{
private InGameUI m_gameUI;
2024-09-14 15:32:29 +08:00
public override bool Visible => !m_gameUI.IsOnline;
2024-09-13 17:39:48 +08:00
public InGameUI_LoadState(InGameUI gameUI) : base("<22><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>", null)
{
m_gameUI = gameUI;
}
public override void OnExcute()
{
Stopwatch sw = Stopwatch.StartNew();
2024-09-23 18:15:34 +08:00
m_gameUI.Core.LoadState(m_gameUI.GetQuickState());
2024-09-13 17:39:48 +08:00
sw.Stop();
App.log.Info($"{m_gameUI.RomFile.Platform}====><3E><><EFBFBD>ռ<EFBFBD><D5BC>غ<EFBFBD>ʱ:{sw.Elapsed.TotalMilliseconds}ms");
}
}
}