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

33 lines
901 B
C#
Raw Normal View History

using AxibugEmuOnline.Client.ClientCore;
using System.Diagnostics;
2024-09-23 18:15:34 +08:00
using System.Runtime.InteropServices;
2024-09-14 09:46:49 +08:00
using System.Security.Cryptography;
using System.Text;
namespace AxibugEmuOnline.Client
{
public class InGameUI_SaveState : ExecuteMenu
{
private InGameUI m_gameUI;
2024-11-08 11:49:33 +08:00
public override bool Visible => !m_gameUI.IsNetPlay;
2024-09-14 15:32:29 +08:00
public InGameUI_SaveState(InGameUI gameUI) : base("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", null)
{
m_gameUI = gameUI;
}
public override void OnExcute()
{
2024-11-08 11:49:33 +08:00
if (m_gameUI.IsNetPlay) return;
2024-11-08 11:38:32 +08:00
Stopwatch sw = Stopwatch.StartNew();
2024-09-23 18:15:34 +08:00
object state = m_gameUI.Core.GetState();
2024-11-08 16:23:26 +08:00
2024-09-23 18:15:34 +08:00
m_gameUI.SaveQuickState(state);
sw.Stop();
App.log.Info($"{m_gameUI.RomFile.Platform}====><3E><>ȡ<EFBFBD><C8A1><EFBFBD>պ<EFBFBD>ʱ:{sw.Elapsed.TotalMilliseconds}ms");
}
}
}