mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-24 03:38:52 +08:00
Fix historic SysAbi exports bound to wrong symbol names (#167)
Move KMcEa+rHsIo from libKernel MapMemory mislabel to sceAvPlayerAddSource. Align WV1GwM32NgY ExportName with sceNpWebApi2PushEventCreateHandle. Behavior unchanged.
This commit is contained in:
@@ -35,6 +35,17 @@ public static class AvPlayerExports
|
|||||||
return unchecked((int)handle);
|
return unchecked((int)handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[SysAbiExport(
|
||||||
|
Nid = "KMcEa+rHsIo",
|
||||||
|
ExportName = "sceAvPlayerAddSource",
|
||||||
|
Target = Generation.Gen4 | Generation.Gen5,
|
||||||
|
LibraryName = "libSceAvPlayer")]
|
||||||
|
public static int AvPlayerAddSource(CpuContext ctx)
|
||||||
|
{
|
||||||
|
ctx[CpuRegister.Rax] = 0;
|
||||||
|
return (int)OrbisGen2Result.ORBIS_GEN2_OK;
|
||||||
|
}
|
||||||
|
|
||||||
[SysAbiExport(
|
[SysAbiExport(
|
||||||
Nid = "JdksQu8pNdQ",
|
Nid = "JdksQu8pNdQ",
|
||||||
ExportName = "sceAvPlayerGetVideoDataEx",
|
ExportName = "sceAvPlayerGetVideoDataEx",
|
||||||
|
|||||||
@@ -6947,15 +6947,4 @@ public static class KernelMemoryCompatExports
|
|||||||
sum = left + right;
|
sum = left + right;
|
||||||
return sum >= left;
|
return sum >= left;
|
||||||
}
|
}
|
||||||
|
|
||||||
[SysAbiExport(
|
|
||||||
Nid = "KMcEa+rHsIo",
|
|
||||||
ExportName = "sceKernelMapMemory",
|
|
||||||
Target = Generation.Gen4 | Generation.Gen5,
|
|
||||||
LibraryName = "libKernel")]
|
|
||||||
public static int KernelMapMemory(CpuContext ctx)
|
|
||||||
{
|
|
||||||
ctx[CpuRegister.Rax] = 0;
|
|
||||||
return (int)OrbisGen2Result.ORBIS_GEN2_OK;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public static class NpWebApi2Exports
|
|||||||
|
|
||||||
[SysAbiExport(
|
[SysAbiExport(
|
||||||
Nid = "WV1GwM32NgY",
|
Nid = "WV1GwM32NgY",
|
||||||
ExportName = "sceNpWebApi2InitializeForToolkit",
|
ExportName = "sceNpWebApi2PushEventCreateHandle",
|
||||||
Target = Generation.Gen4 | Generation.Gen5,
|
Target = Generation.Gen4 | Generation.Gen5,
|
||||||
LibraryName = "libSceNpWebApi2")]
|
LibraryName = "libSceNpWebApi2")]
|
||||||
public static int NpWebApi2InitializeAlt(CpuContext ctx)
|
public static int NpWebApi2InitializeAlt(CpuContext ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user