30 lines
927 B
C#
30 lines
927 B
C#
using AxibugEmuOnline.Client.ClientCore;
|
|
using System.Diagnostics;
|
|
|
|
namespace AxibugEmuOnline.Client
|
|
{
|
|
public class InGameUI_SaveState : ExecuteMenu
|
|
{
|
|
private InGameUI m_gameUI;
|
|
|
|
public InGameUI_SaveState(InGameUI gameUI) : base("괏닸우亮", null)
|
|
{
|
|
m_gameUI = gameUI;
|
|
}
|
|
|
|
public override void OnExcute()
|
|
{
|
|
Stopwatch sw = Stopwatch.StartNew();
|
|
switch (m_gameUI.RomFile.Platform)
|
|
{
|
|
case EnumPlatform.NES:
|
|
var state = m_gameUI.GetCore<NesEmulator>().NesCore.GetState();
|
|
App.log.Info($"{m_gameUI.RomFile.Platform}===>우亮댕鬼{state.ToBytes().Length}");
|
|
break;
|
|
}
|
|
sw.Stop();
|
|
App.log.Info($"{m_gameUI.RomFile.Platform}====>삿혤우亮봬珂:{sw.Elapsed.TotalMilliseconds}ms");
|
|
}
|
|
}
|
|
}
|