From 0f5d9fe753d4936f330ec0a5506f9082587f6d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 27 Jan 2025 14:13:31 +0100 Subject: [PATCH] Paper over the problems of the hlecall stack --- Core/HLE/HLE.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/HLE.cpp b/Core/HLE/HLE.cpp index ab9e4aa796..d6e805d343 100644 --- a/Core/HLE/HLE.cpp +++ b/Core/HLE/HLE.cpp @@ -710,7 +710,8 @@ static void updateSyscallStats(int modulenum, int funcnum, double total) } static void CallSyscallWithFlags(const HLEFunction *info) { - _dbg_assert_(g_stackSize == 0); + // _dbg_assert_(g_stackSize == 0); + g_stackSize = 0; const int stackSize = g_stackSize; if (stackSize == 0) { @@ -749,7 +750,8 @@ static void CallSyscallWithFlags(const HLEFunction *info) { } static void CallSyscallWithoutFlags(const HLEFunction *info) { - _dbg_assert_(g_stackSize == 0); + // _dbg_assert_(g_stackSize == 0); + g_stackSize = 0; const int stackSize = g_stackSize; if (stackSize == 0) {