From acbf28c784a38f26e9ebfddad168a5884412f42c Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Tue, 22 Sep 2026 03:06:54 +0300 Subject: [PATCH] [Share] added more share implementation --- src/SharpEmu.Libs/Share/ShareExports.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/SharpEmu.Libs/Share/ShareExports.cs b/src/SharpEmu.Libs/Share/ShareExports.cs index e6022f6..8e52ec4 100644 --- a/src/SharpEmu.Libs/Share/ShareExports.cs +++ b/src/SharpEmu.Libs/Share/ShareExports.cs @@ -115,6 +115,30 @@ public static class ShareExports return ctx.SetReturn(OrbisGen2Result.ORBIS_GEN2_OK); } + [SysAbiExport( + Nid = "5wjxESwX68I", + ExportName = "sceShareFeatureProhibit", + Target = Generation.Gen4 | Generation.Gen5, + LibraryName = "libSceShareUtility")] + public static int ShareFeatureProhibit(CpuContext ctx) + { + TraceShare("feature_prohibit"); + return ctx.SetReturn(OrbisGen2Result.ORBIS_GEN2_OK); + } + + [SysAbiExport( + Nid = "T64o-315wbg", + ExportName = "sceShareSetScreenshotOverlayImage", + Target = Generation.Gen4 | Generation.Gen5, + LibraryName = "libSceShareUtility")] + public static int ShareSetScreenshotOverlayImage(CpuContext ctx) + { + TraceShare( + $"set_screenshot_overlay_image arg0=0x{ctx[CpuRegister.Rdi]:X16} " + + $"arg1=0x{ctx[CpuRegister.Rsi]:X16} arg2=0x{ctx[CpuRegister.Rdx]:X16}"); + return ctx.SetReturn(OrbisGen2Result.ORBIS_GEN2_OK); + } + private static bool TryReadNullTerminatedUtf8(CpuContext ctx, ulong address, int maxLength, out string value) { Span bytes = stackalloc byte[maxLength];