From 2e5787de06be6f6cab9ec7ce0dc51c97a98547a0 Mon Sep 17 00:00:00 2001 From: ParantezTech Date: Sat, 25 Jul 2026 14:35:28 +0300 Subject: [PATCH] [CPU] Fix Sema ORBIS_GEN2_ERROR_BUSY loop --- .../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 345a23f..4ed8796 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)