|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Include dependency graph for osd_config.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ConfigParam |
| struct | Config2Param |
Enumerations | |
| enum | OSD_LANGUAGES { LANGUAGE_JAPANESE = 0 , LANGUAGE_ENGLISH , LANGUAGE_FRENCH , LANGUAGE_SPANISH , LANGUAGE_GERMAN , LANGUAGE_ITALIAN , LANGUAGE_DUTCH , LANGUAGE_PORTUGUESE , LANGUAGE_RUSSIAN , LANGUAGE_KOREAN , LANGUAGE_TRAD_CHINESE , LANGUAGE_SIMPL_CHINESE } |
| enum | TV_SCREEN_TYPES { TV_SCREEN_43 = 0 , TV_SCREEN_FULL , TV_SCREEN_169 } |
| enum | VIDEO_OUTPUT_TYPES { VIDEO_OUTPUT_RGB = 0 , VIDEO_OUTPUT_COMPONENT } |
| enum | DATE_FORMAT_TYPES { DATE_YYYYMMDD = 0 , DATE_MMDDYYYY , DATE_DDMMYYYY } |
| enum | TIME_FORMAT_TYPES { TIME_24H = 0 , TIME_12H } |
Functions | |
| int | configGetLanguage (void) |
| void | configSetLanguage (int language) |
| int | configGetTvScreenType (void) |
| void | configSetTvScreenType (int screenType) |
| int | configGetDateFormat (void) |
| void | configSetDateFormat (int dateFormat) |
| int | configGetTimeFormat (void) |
| void | configSetTimeFormat (int timeFormat) |
| int | configGetTimezone (void) |
| void | configSetTimezone (int offset) |
| int | configIsSpdifEnabled (void) |
| void | configSetSpdifEnabled (int enabled) |
| int | configIsDaylightSavingEnabled (void) |
| void | configSetDaylightSavingEnabled (int enabled) |
| void | configConvertToGmtTime (sceCdCLOCK *time) |
| void | configConvertToLocalTime (sceCdCLOCK *time) |
| int | IsT10K (void) |
| int | IsEarlyJap (ConfigParam config) |
| char * | GetRomName (char *romname) |
PS2 Configuration settings Note: the 'set' methods are only valid till the ps2 gets turned off or reset!
Note 2: Early Japanese consoles (The SCPH-10000 and SCPH-15000) have kernels based on older specifications. The SCPH-18000 has the same kernel as the first expansion bay model (SCPH-30000). The early kernels can be modernized if patched. Newer games will automatically patch ExecPS2 of such a kernel when they detect one, although only HDDOSDs will fully patch kernel completely (causes the kernel to appear as a newer kernel to everything).
Definition in file osd_config.h.
| enum DATE_FORMAT_TYPES |
date format values returned by: int getDateFormat(void)
| Enumerator | |
|---|---|
| DATE_YYYYMMDD | |
| DATE_MMDDYYYY | |
| DATE_DDMMYYYY | |
Definition at line 68 of file osd_config.h.
| enum OSD_LANGUAGES |
language values returned and used by: configGetLanguage() and configSetLanguage()
Definition at line 33 of file osd_config.h.
| enum TIME_FORMAT_TYPES |
Time format values returned by: int getTimeFormat(void)
| Enumerator | |
|---|---|
| TIME_24H | |
| TIME_12H | |
Definition at line 75 of file osd_config.h.
| enum TV_SCREEN_TYPES |
tv screen values returned by: int getTvScreenType(void)
| Enumerator | |
|---|---|
| TV_SCREEN_43 | |
| TV_SCREEN_FULL | |
| TV_SCREEN_169 | |
Definition at line 55 of file osd_config.h.
| enum VIDEO_OUTPUT_TYPES |
Video output type values
| Enumerator | |
|---|---|
| VIDEO_OUTPUT_RGB | |
| VIDEO_OUTPUT_COMPONENT | |
Definition at line 62 of file osd_config.h.
| void configConvertToGmtTime | ( | sceCdCLOCK * | time | ) |
converts the time returned from the ps2's clock into GMT time (ps2 clock is in JST time)
| void configConvertToLocalTime | ( | sceCdCLOCK * | time | ) |
converts the time returned from the ps2's clock into LOCAL time (ps2 clock is in JST time)
| int configGetDateFormat | ( | void | ) |
gets the date display format
| int configGetLanguage | ( | void | ) |
get the language the ps2 is currently set to
| int configGetTimeFormat | ( | void | ) |
gets the time display format (whether 24hour time or not)
| int configGetTimezone | ( | void | ) |
| int configGetTvScreenType | ( | void | ) |
get the tv screen type the ps2 is setup for
Referenced by graph_aspect_ratio().
| int configIsDaylightSavingEnabled | ( | void | ) |
checks whether daylight saving is currently set
Referenced by _ps2sdk_timezone_update().
| int configIsSpdifEnabled | ( | void | ) |
checks whether the spdif is enabled or not
| void configSetDateFormat | ( | int | dateFormat | ) |
sets the date display format
| dateFormat | 0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy |
| void configSetDaylightSavingEnabled | ( | int | enabled | ) |
sets daylight saving
| enabled | 1 = on; 0 = off |
| void configSetLanguage | ( | int | language | ) |
sets the default language of the ps2
| language | Language value (See OSD_LANGUAGES above) |
| void configSetSpdifEnabled | ( | int | enabled | ) |
sets whether the spdif is enabled or not
| enabled | 1 = on; 0 = off |
| void configSetTimeFormat | ( | int | timeFormat | ) |
sets the time display format (whether 24hour time or not)
| timeFormat | 0 = 24hour; 1 = 12hour |
| void configSetTimezone | ( | int | offset | ) |
set timezone
| offset | offset in minutes from GMT |
| void configSetTvScreenType | ( | int | screenType | ) |
set the tv screen type
| screenType | 0 = 4:3; 1 = fullscreen; 2 = 16:9 |
| char* GetRomName | ( | char * | romname | ) |
gets the romname from the current ps2 14 chars - doesnt set a null terminator
| romname | buffer to hold romname (14 chars long) |
Referenced by debug_detect_signal(), graph_get_region(), and graph_set_mode().
| int IsEarlyJap | ( | ConfigParam | config | ) |
check if ps2 has a 'Protokernel' (Really early Japanese models)
| config | unsigned int config value from GetOsdConfigParam() syscall |
| int IsT10K | ( | void | ) |
check whether the PlayStation 2 is actually a TOOL DTL-T10000(H)