diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs index 697bf68..42547cf 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs @@ -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) { diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs b/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs index 2c764ad..8ef1eea 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs +++ b/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs @@ -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) diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_SaveState.cs b/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_SaveState.cs index 8c00ff4..e5ffb51 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_SaveState.cs +++ b/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_SaveState.cs @@ -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);