From cb21a6f88d44dec3a03faf7220c058b9e951ae8f Mon Sep 17 00:00:00 2001 From: Ran-j Date: Sat, 29 Nov 2025 01:50:07 -0300 Subject: [PATCH] feat: update docs --- ps2xRuntime/Readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ps2xRuntime/Readme.md b/ps2xRuntime/Readme.md index f89f3e5..8016fca 100644 --- a/ps2xRuntime/Readme.md +++ b/ps2xRuntime/Readme.md @@ -6,12 +6,16 @@ The runtime library provides the execution environment for recompiled code, incl * Function table for dynamic linking * Basic PS2 system call stubs +# How to use: + +Take your decompiled code and place the cpp files on ps2xRuntime/src/runner and header files on ps2xRuntime/include and compile/be happy. + ## Adding Custom Function Implementations You can add custom implementations for PS2 system calls or game functions by: 1. Creating function implementations that match the signature: ```cpp -void function_name(uint8_t* rdram, R5900Context* ctx); +void function_name(uint8_t* rdram, R5900Context* ctx, PS2Runtime *runtime); ``` 2. Registering them with the runtime: