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
}
kernel.h
SetOsdConfigParam
void SetOsdConfigParam(void *addr)
GetOsdConfigParam
void GetOsdConfigParam(void *addr)
PatchIsNeeded
int PatchIsNeeded(void)
Definition:
libosd_common.c:20
osd_config.h
ConfigParam
Definition:
osd_config.h:81
ConfigParam::version
u32 version
Definition:
osd_config.h:93
syscallnr.h
ee
kernel
src
libosd_common.c
Generated on Thu Feb 11 2021 11:42:22 for ps2sdk by
1.9.2