Merge pull request #19922 from hrydgard/adhoc-logging-fixes

Paper over the problems of the hlecall stack
This commit is contained in:
Henrik Rydgård
2025-01-27 14:41:23 +01:00
committed by GitHub
+4 -2
View File
@@ -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) {