psOff_public/modules
2024-05-04 23:03:48 +03:00
..
libkernel sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libkernel_cpumode_platform Fixes and stubs 2024-04-26 02:59:48 +03:00
libkernel_ps2emu More stubs 2024-04-08 12:09:23 +03:00
libkernel_unity use external third_party repo 2024-04-14 15:20:25 +02:00
libSceAjm sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libSceAppContent move runtime to public 2024-04-28 09:53:59 +02:00
libSceAudio3d Stub some funcs 2024-04-14 16:04:54 +03:00
libSceAudiodec Fixes 2024-04-23 19:08:10 +04:00
libSceAudiodecCpu Fixes 2024-04-23 19:08:10 +04:00
libSceAudioIn use external third_party repo 2024-04-14 15:20:25 +02:00
libSceAudioOut Add error message if audio port attributes is specified 2024-05-02 02:37:27 +03:00
libSceAvPlayer avPlayer| fix race condition at destroy 2024-04-29 16:55:24 +02:00
libSceCamera More stubs 2024-04-22 15:26:24 +03:00
libSceCommonDialog Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceContentExport Initial commit 2024-04-30 14:14:35 +03:00
libSceCoredump use external third_party repo 2024-04-14 15:20:25 +02:00
libSceDepth + 2024-04-19 23:04:22 +04:00
libSceDiscMap Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceErrorDialog More dialog stubs 2024-03-20 06:07:48 +03:00
libSceFace sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libSceFaceTracker sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libSceGameLiveStreaming Initiali commit 2024-04-21 13:30:38 +03:00
libSceGraphicsDriver Symbols 2024-05-02 16:00:33 +04:00
libSceHmd + 2024-04-19 21:42:50 +04:00
libSceHttp Some stubs 2024-04-26 01:01:27 +03:00
libSceHttp2 Stub some funcs 2024-04-14 16:04:54 +03:00
libSceIme Fix Ngs2 structures 2024-04-17 13:45:27 +03:00
libSceImeDialog More dialog stubs 2024-03-20 06:07:48 +03:00
libSceInvitationDialog Stub some funcs 2024-04-14 16:04:54 +03:00
libSceJson2 Turns out pad handle can't be 0 2024-04-26 00:27:58 +03:00
libSceLibcInternal Fix gmtime_s stack corruption and distorted FLOAT_8CH sound 2024-05-02 02:11:58 +03:00
libSceLibcInternalExt + runtimeExport, libSceLibc 2024-03-03 15:27:53 +01:00
libSceMouse Cleanup and sceNgs2 things 2024-04-03 23:27:25 +03:00
libSceMove + logging 2024-03-01 15:09:01 +01:00
libSceMoveTracker + 2024-04-19 21:42:50 +04:00
libSceMsgDialog Formatting fix 2024-04-03 23:30:08 +03:00
libSceNet Merge branch 'features' into net-things 2024-04-20 00:30:52 +03:00
libSceNetCtl Fix Super Meat Boy ignoring controls 2024-04-24 11:44:28 +03:00
libSceNetCtlForNpToolkit symbols 2024-04-16 16:39:34 +00:00
libSceNgs2 Initial commit 2024-04-25 07:52:25 +03:00
libSceNpAuth Some stubs 2024-04-26 01:01:27 +03:00
libSceNpCommerce More dialog stubs 2024-03-20 06:07:48 +03:00
libSceNpCommon format document 2024-04-14 16:28:14 +02:00
libSceNpGameIntent Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceNpManager Cleanup and sceNgs2 things 2024-04-03 23:27:25 +03:00
libSceNpManagerForToolkit + logging 2024-03-01 15:09:01 +01:00
libSceNpMatching2 symbols 2024-04-16 16:39:34 +00:00
libSceNpParty Fix other strings too 2024-04-28 23:10:46 +03:00
libSceNpProfileDialog Stub some funcs 2024-04-14 16:04:54 +03:00
libSceNpScore Stub some funcs 2024-04-14 16:04:54 +03:00
libSceNpToolkit2 Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceNpTrophy Multiple fixes and implementations 2024-05-04 23:03:48 +03:00
libSceNpTus Stub all Tus things 2024-04-15 14:18:25 +03:00
libSceNpWebApi Symbols 2024-05-02 16:00:33 +04:00
libSceNpWebApi2 Initial commit 2024-04-25 16:47:48 +03:00
libScePad Fix some things 2024-05-01 15:48:42 +03:00
libScePadTracker sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libScePlayGo More stubs and libScePngDec fix 2024-04-08 10:28:27 +03:00
libScePngDec Initial preparations 2024-05-01 03:13:32 +03:00
libScePngEnc Initial preparations 2024-05-01 03:13:32 +03:00
libScePosix Fix unknown device message 2024-04-26 23:57:44 +03:00
libSceRandom Fix formatting check 2024-04-23 20:23:10 +04:00
libSceRemoteplay + logging 2024-03-01 15:09:01 +01:00
libSceRtc libSceRtc| use chrono 2024-04-27 22:09:55 +02:00
libSceRudp sceKernelAioInitializeParam Implementation 2024-05-02 16:10:13 +04:00
libSceSaveData Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceSaveDataDialog Fix formatting 2024-03-12 05:50:09 +03:00
libSceScreenShot + logging 2024-03-01 15:09:01 +01:00
libSceSharePlay Initial commit 2024-04-30 14:14:35 +03:00
libSceShareUtility Update codes.h 2024-04-30 15:57:04 +03:00
libSceSigninDialog More dialog stubs 2024-03-20 06:07:48 +03:00
libSceSocialScreen Symbols 2024-04-23 19:04:04 +04:00
libSceSsl + logging 2024-03-01 15:09:01 +01:00
libSceSysmodule trace cleaning 2024-04-22 20:42:06 +02:00
libSceSystemGesture Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceSystemService sceSystemServiceParamGetString 2024-04-06 00:33:55 +03:00
libSceSystemServicePs2Emu Stub livestreaming thing 2024-04-12 18:03:59 +03:00
libSceUlt Symbols 2024-04-23 19:04:04 +04:00
libSceUsbd Symbols 2024-04-15 13:56:06 +00:00
libSceUserService Just to be safe 2024-04-27 17:32:07 +03:00
libSceUserServiceForNpToolkit Stubs and functions 2024-04-13 18:05:59 +03:00
libSceVideoOut Error codes cleanup + more scePad fixes 2024-04-24 10:28:54 +03:00
libSceVideoRecording Stub livestreaming thing 2024-04-12 18:03:59 +03:00
libSceVoice ERR -> TRACE 2024-04-18 16:02:38 +04:00
libSceVoiceQoS Stub libSceVrTracker 2024-04-03 14:51:23 +03:00
libSceVrTracker sceCameraOpen+sceCamera close stubs 2024-04-03 15:53:40 +03:00
template + logging 2024-03-01 15:09:01 +01:00
CMakeLists.txt move dll2nids to public 2024-03-10 14:30:22 +01:00
readme.md move semaphre to kernel 2024-03-06 14:40:30 +01:00
setupModule.cmake dump every sce symbol in the project 2024-03-15 18:03:40 +01:00

Overview

Each target library is created separately as a shared library in the modules folder. This allows NIDs generation at build time and a clean code separation.

The Emulator loads the libraries on demand and resolves the symbols etc. A library does only communicate with the emulator. If it should need information/calls from other libraries, a separate top class should be used. The library can link against it and access the interface.

Planned is a core library for such cases and for the interfaces currently in the emulator.

Create a new module

  • duplicate the template folder
  • replace the folder with the identical name of the target library.
  • inside CMakeLists.txt, replace template in "set(libName template)" with the library name
  • inside entry.cpp, replace "libSce" both in LOG_DEFINE_MODULE() and MODULE_NAME = ""

All exported function are placed inside the provided extern "C" scope and should start with "EXPORT SYSV_ABI", since those functions are called directly by the emulated application (Linux).

After a new CMake config, the new library should be picked up and built.

Build: dll2Nids may print an error. Just add a dummy function with a long name (11 + extra space).
Normally, only names starting with sce or _sce are converted. Use one of the following macro, defined in common.h, for everything else:
__NID(func) : converts the function name
__NID_HEX(hexId) : If the function name is unknown, use the hexId instead