Merge pull request '修复bug' (#42) from Alienjack/AxibugEmuOnline:master into master

Reviewed-on: sin365/AxibugEmuOnline#42
This commit is contained in:
sin365 2024-11-08 11:39:21 +08:00
commit 0323836ed2
3 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ namespace AxibugEmuOnline.Client.Manager
public void BeginGame(RomFile romFile)
{
if (!m_emuCore.Equals(null)) return;
if (!m_emuCore.IsNull()) return;
switch (romFile.Platform)
{

View File

@ -15,6 +15,8 @@ namespace AxibugEmuOnline.Client
public override void OnExcute()
{
if (m_gameUI.IsOnline) return;
object state = m_gameUI.GetQuickState();
Stopwatch sw = Stopwatch.StartNew();
if (state != null)

View File

@ -19,6 +19,8 @@ namespace AxibugEmuOnline.Client
public override void OnExcute()
{
if (m_gameUI.IsOnline) return;
Stopwatch sw = Stopwatch.StartNew();
object state = m_gameUI.Core.GetState();
m_gameUI.SaveQuickState(state);