ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
osd_config.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
24 #ifndef __OSD_CONFIG_H__
25 #define __OSD_CONFIG_H__
26 
27 #include <tamtypes.h>
28 #ifndef OSD_CONFIG_NO_LIBCDVD
29 #include <libcdvd.h>
30 #endif
31 
42  /* Language values after here are not officially documented.
43  Are supported by neither this library nor the original Sony libscf library,
44  but can be found in the MECHACON's NVRAM and are used exclusively by the OSDs of consoles that support these languages.
45  However, these consoles will always specify English within ConfigParam.
46 
47  When ConfigParam.version is 2, the true language can be found in Config2Param.language. */
52 };
53 
59 };
60 
65 };
66 
72 };
73 
76  TIME_24H = 0,
78 };
79 
81 typedef struct {
83 /*00*/u32 spdifMode:1;
85 /*01*/u32 screenType:2;
87 /*03*/u32 videoOutput:1;
89 /*04*/u32 japLanguage:1;
91 /*05*/u32 ps1drvConfig:8;
93 /*13*/u32 version:3;
95 /*16*/u32 language:5;
98 } ConfigParam;
99 
103 typedef struct {
104 /*00*/u8 format;
105 
106 /*00*/u8 reserved:4;
110 /*05*/u8 timeFormat:1;
112 /*06*/u8 dateFormat:2;
113 
114 //Only used if ConfigParam.version = 2
116 /*00*/u8 version;
118 /*00*/u8 language;
119 } Config2Param;
120 
121 #ifdef __cplusplus
122 extern "C" {
123 #endif
124 
132 void configSetLanguage(int language);
133 
134 
142 void configSetTvScreenType(int screenType);
143 
144 
152 void configSetDateFormat(int dateFormat);
153 
154 
164 void configSetTimeFormat(int timeFormat);
165 
173 void configSetTimezone(int offset);
174 
182 void configSetSpdifEnabled(int enabled);
183 
192 
193 #ifndef OSD_CONFIG_NO_LIBCDVD
198 
203 #endif
204 
205 // Internal functions.
210 int IsT10K(void);
223 char* GetRomName(char *romname);
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif /* __OSD_CONFIG_H__ */
u32 time
Definition: libmouse.c:37
int IsEarlyJap(ConfigParam config)
void configSetSpdifEnabled(int enabled)
int configGetTvScreenType(void)
void configSetTimeFormat(int timeFormat)
void configSetTimezone(int offset)
int IsT10K(void)
int configGetTimezone(void)
int configGetLanguage(void)
VIDEO_OUTPUT_TYPES
Definition: osd_config.h:62
@ VIDEO_OUTPUT_RGB
Definition: osd_config.h:63
@ VIDEO_OUTPUT_COMPONENT
Definition: osd_config.h:64
TV_SCREEN_TYPES
Definition: osd_config.h:55
@ TV_SCREEN_FULL
Definition: osd_config.h:57
@ TV_SCREEN_43
Definition: osd_config.h:56
@ TV_SCREEN_169
Definition: osd_config.h:58
void configSetDateFormat(int dateFormat)
void configSetLanguage(int language)
DATE_FORMAT_TYPES
Definition: osd_config.h:68
@ DATE_YYYYMMDD
Definition: osd_config.h:69
@ DATE_MMDDYYYY
Definition: osd_config.h:70
@ DATE_DDMMYYYY
Definition: osd_config.h:71
TIME_FORMAT_TYPES
Definition: osd_config.h:75
@ TIME_24H
Definition: osd_config.h:76
@ TIME_12H
Definition: osd_config.h:77
int configGetDateFormat(void)
OSD_LANGUAGES
Definition: osd_config.h:33
@ LANGUAGE_DUTCH
Definition: osd_config.h:40
@ LANGUAGE_RUSSIAN
Definition: osd_config.h:48
@ LANGUAGE_ITALIAN
Definition: osd_config.h:39
@ LANGUAGE_JAPANESE
Definition: osd_config.h:34
@ LANGUAGE_SIMPL_CHINESE
Definition: osd_config.h:51
@ LANGUAGE_KOREAN
Definition: osd_config.h:49
@ LANGUAGE_ENGLISH
Definition: osd_config.h:35
@ LANGUAGE_PORTUGUESE
Definition: osd_config.h:41
@ LANGUAGE_GERMAN
Definition: osd_config.h:38
@ LANGUAGE_FRENCH
Definition: osd_config.h:36
@ LANGUAGE_SPANISH
Definition: osd_config.h:37
@ LANGUAGE_TRAD_CHINESE
Definition: osd_config.h:50
void configConvertToGmtTime(sceCdCLOCK *time)
int configIsSpdifEnabled(void)
void configSetDaylightSavingEnabled(int enabled)
int configGetTimeFormat(void)
char * GetRomName(char *romname)
void configSetTvScreenType(int screenType)
int configIsDaylightSavingEnabled(void)
void configConvertToLocalTime(sceCdCLOCK *time)
u32 spdifMode
Definition: osd_config.h:83
u32 screenType
Definition: osd_config.h:85
u32 language
Definition: osd_config.h:95
u32 ps1drvConfig
Definition: osd_config.h:91
u32 timezoneOffset
Definition: osd_config.h:97
u32 videoOutput
Definition: osd_config.h:87
u32 japLanguage
Definition: osd_config.h:89
unsigned int u32
Definition: tamtypes.h:30
unsigned char u8
Definition: tamtypes.h:23