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

Go to the source code of this file.

Data Structures

struct  SyscallData
 

Functions

void InitOsd (void)
 

Variables

unsigned char osdsrc []
 
unsigned int size_osdsrc
 
static struct SyscallData SyscallPatchEntries []
 

Detailed Description

libosd - ExecPS2 + OSD configuration function update.

Applicable to only the SCPH-10000 and SCPH-15000. Both contain either boot ROM v1.00 or v1.01. This is the full libosd update will replace ExecPS2, SetOsdConfigParam, SetOsdConfigParam, SetOsdConfigParam2 and SetOsdConfigParam2, as done by the HDD Browser.

The code within this file was based on the code from the HDD Browser, not libosd. Originally, this was the version that I linked crt0 to, but I realized that SONY had a reason for only fully patching the protokernels within the HDD Browser: Only the HDD browser can change the new language setting, while the protokernel browser is not aware of the new language field. By fully patching the kernel, then new software will use the new language setting. However, if the user is not using the HDD Browser, then the user becomes unable to change the language setting.

Definition in file libosd_full.c.

Function Documentation

◆ InitOsd()

void InitOsd ( void  )

Definition at line 56 of file libosd_full.c.

Variable Documentation

◆ SyscallPatchEntries

struct SyscallData SyscallPatchEntries[]
static
Initial value:
= {
{0x5A,
&kCopy},
{0x5B,
(void *)0x80074000},
{
0xFFFFC402,
NULL},
{__NR_SetOsdConfigParam,
NULL},
{__NR_GetOsdConfigParam,
NULL},
{__NR_SetOsdConfigParam2,
NULL},
{__NR_GetOsdConfigParam2,
NULL},
}

Definition at line 38 of file libosd_full.c.