|
exports.exp declares what this PRX exposes to the outside world. Two export groups:
PSP_EXPORT_START(syslib, 0, 0x8000)
PSP_EXPORT_FUNC_HASH(module_start)
PSP_EXPORT_FUNC_HASH(module_stop)
PSP_EXPORT_VAR_HASH(module_info)
PSP_EXPORT_END
PSP_EXPORT_START(cwcheat, 0, 0x0001)
PSP_EXPORT_FUNC_HASH(add_codeline_pspcheat_prx)
PSP_EXPORT_FUNC_HASH(add_cheat_pspcheat_prx)
PSP_EXPORT_FUNC_HASH(read_config)
PSP_EXPORT_FUNC_HASH(config_saver)
PSP_EXPORT_FUNC_HASH(setcodes)
PSP_EXPORT_FUNC_HASH(readdb)
PSP_EXPORT_END
- syslib (mandatory for every PRX): module_start, module_stop, module_info.
- cwcheat: TempAR's own small public API, all implemented in sdk.c. Exists so a separate PRX (a game-specific trainer plugin) can add cheats or trigger a cheat-apply pass against TempAR's already-running instance. Treat this list as a public API, not an internal one — renaming or changing a signature breaks binary compatibility for any third-party plugin built against it.
imports.S is hand-written MIPS assembly declaring stub imports — functions
TempAR calls that live in system modules (SysMemForKernel, sceImpose_driver, sceUsb,
sceUsbstorBoot, sceRtc, sceUtility, sceOpenPSID_driver) but aren't exposed through PSPSDK's
normal header+import-library pairing, usually because they're kernel-only, undocumented, or
from an SDK version too old/new to have a matching stub already generated. If a future
PSPSDK version starts providing a proper stub for one of these, the hand-written one becomes
a duplicate symbol and must be removed.
|