PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
patch_user_mem_clear.c File Reference
#include <tamtypes.h>
#include <kernel.h>
+ Include dependency graph for patch_user_mem_clear.c:

Go to the source code of this file.

Functions

int sbv_patch_user_mem_clear (void *start)
 

Detailed Description

Patch user memory clear on EE restart.

Definition in file patch_user_mem_clear.c.

Function Documentation

◆ sbv_patch_user_mem_clear()

int sbv_patch_user_mem_clear ( void *  start)

@start address above which all user memory is cleared

Returns
0: success, -1: error

LoadExecPS2() wipes all user-space memory above 0x82000. With this patch, you can define a different start address to prevent your data from being overwritten. In order to completely disable the memory clear, simply pass 0x02000000 to it.

Definition at line 9 of file patch_user_mem_clear.c.