mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 09:01:25 +00:00
Implement ScePsmMonoStringLength, ScePsmMonoStringChars, ScePsmMonoStringToUtf8, ScePsmMonoArrayLength, ScePsmMonoArrayAddrWithSize, ScePsmMonoGcWbarrierGenericStore and ScePsmMonoFree on Mono's public 64-bit MonoString and MonoArray layouts, following the Mono embedding functions the names spell out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YZ2Pr8TGewkjUkUGDVnPcC
2.6 KiB
2.6 KiB
libScePsm
change [ScePsmMonoArrayAddrWithSize, ScePsmMonoArrayLength, ScePsmMonoDomainGet
- ScePsmMonoDomainGet - name and NID match the PS5 3.20 inventory; signature and behavior are unverified. The no-parameter declaration resolves imports and throws through
NotImplemented_nid_no_patchwhen called; it needs a Mono domain, which nothing here models.
change [ScePsmMonoStringChars, ScePsmMonoStringFromUtf16
- ScePsmMonoStringFromUtf16, ScePsmMonoStringNew, ScePsmMonoStringNewWrapper - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called; creating a string needs the domain'sSystem.Stringvtable, which nothing here models.
change [ScePsmMonoStringToUtf8, _ZN3sce3pss4core14IntHandleTable13NextIntHandleEv
- _ZN3sce3pss4core14IntHandleTable13NextIntHandleEv, _ZN3sce3pss4core8graphics14NativeGraphics18ReleaseVideoMemoryEPv, _ZN3sce3pss4core8graphics14NativeGraphics19AllocateVideoMemoryEjj, _ZN3sce3pss4core8graphics14NativeGraphics19AllocateVideoMemoryEjjPv - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called.
add Unknown function info
- ScePsmMonoArrayAddrWithSize, ScePsmMonoArrayLength, ScePsmMonoFree, ScePsmMonoGcWbarrierGenericStore, ScePsmMonoStringChars, ScePsmMonoStringLength, ScePsmMonoStringToUtf8 - not read from
libScePsm.sprxor measured on a console: prototypes follow themono_*embedding functions the names spell out, on the 64-bitMonoStringandMonoArraylayouts at mono/mono 0f53e9e (array length read as 32 bits, the default withoutMONO_BIG_ARRAYS).StringToUtf8follows that commit's eglib: null for a null string or an unpaired surrogate before the first NUL, where conversion stops. The write barrier is a plain store, as no Mono collector runs here, andFreeuses the C allocatorStringToUtf8uses; the console's Mono version and allocator are unknown.