AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_SaveState.cs
ALIENJACK\alien 357936866d 修复bug
2024-11-08 16:23:26 +08:00

33 lines
901 B
C#

using AxibugEmuOnline.Client.ClientCore;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
namespace AxibugEmuOnline.Client
{
public class InGameUI_SaveState : ExecuteMenu
{
private InGameUI m_gameUI;
public override bool Visible => !m_gameUI.IsNetPlay;
public InGameUI_SaveState(InGameUI gameUI) : base("±£´æ¿ìÕÕ", null)
{
m_gameUI = gameUI;
}
public override void OnExcute()
{
if (m_gameUI.IsNetPlay) return;
Stopwatch sw = Stopwatch.StartNew();
object state = m_gameUI.Core.GetState();
m_gameUI.SaveQuickState(state);
sw.Stop();
App.log.Info($"{m_gameUI.RomFile.Platform}====>»ñÈ¡¿ìÕÕºÄʱ:{sw.Elapsed.TotalMilliseconds}ms");
}
}
}