ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
libosd_common.c
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Licenced under Academic Free License version 2.0
7 # Review ps2sdk README & LICENSE files for further details.
8 */
9 
16 #include <kernel.h>
17 #include <syscallnr.h>
18 #include <osd_config.h>
19 
20 int PatchIsNeeded(void){
21  ConfigParam original_config, config;
22 
23  GetOsdConfigParam(&original_config);
24  config=original_config;
25  config.version=1; //Protokernels cannot retain values set in this field.
26  SetOsdConfigParam(&config);
27  GetOsdConfigParam(&config);
28  SetOsdConfigParam(&original_config);
29 
30  return(config.version<1);
31 }
void SetOsdConfigParam(void *addr)
void GetOsdConfigParam(void *addr)
int PatchIsNeeded(void)
Definition: libosd_common.c:20