From e1a3b925678ccc5c439a316643ed079bdebc3320 Mon Sep 17 00:00:00 2001 From: Berk Date: Sat, 25 Jul 2026 14:42:35 +0300 Subject: [PATCH] [CPU] Fix Sema ORBIS_GEN2_ERROR_BUSY loop (#621) --- .../Cpu/Native/DirectExecutionBackend.Imports.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs index 345a23f3..4ed87961 100644 --- a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs +++ b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs @@ -1449,6 +1449,9 @@ public sealed partial class DirectExecutionBackend var expectedSemaphoreTrywaitAgain = string.Equals(nid, "H2a+IN9TP0E", StringComparison.Ordinal) && result == OrbisGen2Result.ORBIS_GEN2_ERROR_TRY_AGAIN; + var expectedPollSemaBusy = + string.Equals(nid, "12wOHk8ywb0", StringComparison.Ordinal) && + result == OrbisGen2Result.ORBIS_GEN2_ERROR_BUSY; var expectedNetAcceptWouldBlock = string.Equals(nid, "PIWqhn9oSxc", StringComparison.Ordinal) && resultValue == unchecked((int)0x80410123); @@ -1463,6 +1466,7 @@ public sealed partial class DirectExecutionBackend !expectedEqueueTimeout && !expectedMutexTrylockBusy && !expectedSemaphoreTrywaitAgain && + !expectedPollSemaBusy && !expectedNetAcceptWouldBlock && !expectedUserServiceNoEvent && !expectedPrivacyInvalidParameter)