From 6b644fd6da7afb2cb064faa76fbdef64d45794bf Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Fri, 8 Nov 2024 11:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs | 2 +- .../Assets/Script/UI/InGameUI/InGameUI_LoadState.cs | 2 ++ .../Assets/Script/UI/InGameUI/InGameUI_SaveState.cs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs index 697bf689..42547cf2 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 2c764ad2..8ef1eea8 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 8c00ff4d..e5ffb517 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);