From 330ccd30aa736fc569022cdf49d76e7f214a3ee8 Mon Sep 17 00:00:00 2001 From: Nekokabu Date: Mon, 11 Jul 2016 23:46:45 +0900 Subject: [PATCH] Update x86RecompilerOps.cpp --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 59a41403f..82156f56f 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -10861,7 +10861,11 @@ void CX86RecompilerOps::SW_Const(uint32_t Value, uint32_t VAddr) { switch (PAddr) { - case 0x05000520: MoveConstToVariable(Value, &g_Reg->ASIC_HARD_RESET, "ASIC_HARD_RESET"); break; + case 0x05000520: + m_RegWorkingSet.BeforeCallDirect(); + Call_Direct(AddressOf(&DiskReset), "DiskReset"); + m_RegWorkingSet.AfterCallDirect(); + break; default: if (g_Settings->LoadBool(Debugger_ShowUnhandledMemory)) {