From 59059dfd2c10db4daf5074c604c774720adaf470 Mon Sep 17 00:00:00 2001 From: ParantezTech Date: Sat, 18 Jul 2026 23:01:45 +0300 Subject: [PATCH] [cpu] add string leaf stubs --- .../Native/DirectExecutionBackend.Imports.cs | 4 ++ .../Cpu/Native/DirectExecutionBackend.cs | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs index db18bcf9..978828cc 100644 --- a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs +++ b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.Imports.cs @@ -1410,6 +1410,8 @@ public sealed partial class DirectExecutionBackend "eE4Szl8sil8" or // sceKernelAprSubmitCommandBuffer "qvMUCyyaCSI" or // sceKernelAprSubmitCommandBufferAndGetId "Q2V+iqvjgC0" or // vsnprintf + "AV6ipCNa4Rw" or // strcasecmp + "viiwFMaNamA" or // strstr "q1cHNfGycLI" or // scePadRead "xk0AcarP3V4" or // scePadOpen "yH17Q6NWtVg" or // sceUserServiceGetEvent @@ -1571,6 +1573,8 @@ public sealed partial class DirectExecutionBackend "WkkeywLJcgU" or // wcslen "Ovb2dSJOAuE" or // strcmp "aesyjrHVWy4" or // strncmp + "AV6ipCNa4Rw" or // strcasecmp + "viiwFMaNamA" or // strstr "pNtJdE3x49E" or // wcscmp "fV2xHER+bKE" or // wcscoll "E8wCoUEbfzk" or // wcsncmp diff --git a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.cs b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.cs index cac25765..cdd7aca0 100644 --- a/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.cs +++ b/src/SharpEmu.Core/Cpu/Native/DirectExecutionBackend.cs @@ -1408,6 +1408,54 @@ public sealed unsafe partial class DirectExecutionBackend : INativeCpuBackend, I 0x75, 0xE7, 0xC3, ], + "AV6ipCNa4Rw" => + [ + 0x0F, 0xB6, 0x07, + 0x0F, 0xB6, 0x16, + 0x8D, 0x48, 0xBF, + 0x83, 0xF9, 0x19, + 0x77, 0x03, + 0x83, 0xC0, 0x20, + 0x8D, 0x4A, 0xBF, + 0x83, 0xF9, 0x19, + 0x77, 0x03, + 0x83, 0xC2, 0x20, + 0x29, 0xD0, + 0x75, 0x0C, + 0x85, 0xD2, + 0x74, 0x08, + 0x48, 0xFF, 0xC7, + 0x48, 0xFF, 0xC6, + 0xEB, 0xD4, + 0xC3, + ], + "viiwFMaNamA" => + [ + 0x0F, 0xB6, 0x16, + 0x84, 0xD2, + 0x74, 0x2D, + 0x0F, 0xB6, 0x07, + 0x84, 0xC0, + 0x74, 0x2A, + 0x38, 0xD0, + 0x75, 0x1D, + 0x4C, 0x8D, 0x47, 0x01, + 0x4C, 0x8D, 0x4E, 0x01, + 0x41, 0x0F, 0xB6, 0x09, + 0x84, 0xC9, + 0x74, 0x12, + 0x41, 0x38, 0x08, + 0x75, 0x08, + 0x49, 0xFF, 0xC0, + 0x49, 0xFF, 0xC1, + 0xEB, 0xEB, + 0x48, 0xFF, 0xC7, + 0xEB, 0xD3, + 0x48, 0x89, 0xF8, + 0xC3, + 0x31, 0xC0, + 0xC3, + ], "pNtJdE3x49E" or "fV2xHER+bKE" => [ 0x0F, 0xB7, 0x07,