|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
#include <tamtypes.h>#include <kernel.h>#include <stdio.h>#include <sys/fcntl.h>#include <sys/unistd.h>#include <string.h>#include <osd_config.h>#include <rom0_info.h>Go to the source code of this file.
Classes | |
| struct | ConfigParamT10K |
Functions | |
| __attribute__ ((constructor)) | |
| void | converttobcd (sceCdCLOCK *time) |
| void | convertfrombcd (sceCdCLOCK *time) |
| void | __adjustTime (sceCdCLOCK *time, int offset) |
| int | IsEarlyJap (ConfigParam config) |
| 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 timezoneOffset) |
| int | configIsSpdifEnabled (void) |
| void | configSetSpdifEnabled (int enabled) |
| int | configIsDaylightSavingEnabled (void) |
| void | configSetDaylightSavingEnabled (int daylightSaving) |
| void | configConvertToGmtTime (sceCdCLOCK *time) |
| void | configConvertToLocalTime (sceCdCLOCK *time) |
Variables | |
| ConfigParamT10K | g_t10KConfig |
PS2 Configuration settings note: the 'set' methods are only valid till the ps2 gets turned off or reset!
Definition in file osd_config.c.
| void __adjustTime | ( | sceCdCLOCK * | time, |
| int | offset ) |
Definition at line 158 of file osd_config.c.
| __attribute__ | ( | (constructor) | ) |
Definition at line 43 of file osd_config.c.
| void configConvertToGmtTime | ( | sceCdCLOCK * | time | ) |
converts the time returned from the ps2's clock into GMT time (ps2 clock is in JST time)
Definition at line 439 of file osd_config.c.
| void configConvertToLocalTime | ( | sceCdCLOCK * | time | ) |
converts the time returned from the ps2's clock into local time (ps2 clock is in JST time)
Definition at line 444 of file osd_config.c.
| int configGetDateFormat | ( | void | ) |
gets the date display format
Definition at line 244 of file osd_config.c.
| int configGetLanguage | ( | void | ) |
get the language the ps2 is currently set to
Definition at line 185 of file osd_config.c.
| int configGetTimeFormat | ( | void | ) |
gets the time display format (whether 24hour time or not)
Definition at line 279 of file osd_config.c.
| int configGetTimezone | ( | void | ) |
| int configGetTvScreenType | ( | void | ) |
get the tv screen type the ps2 is setup for
Definition at line 217 of file osd_config.c.
| int configIsDaylightSavingEnabled | ( | void | ) |
checks whether daylight saving is currently set
Definition at line 407 of file osd_config.c.
| int configIsSpdifEnabled | ( | void | ) |
checks whether the spdif is enabled or not
Definition at line 384 of file osd_config.c.
| void configSetDateFormat | ( | int | dateFormat | ) |
sets the date display format
| dateFormat | 0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy |
Definition at line 259 of file osd_config.c.
| void configSetDaylightSavingEnabled | ( | int | enabled | ) |
| void configSetLanguage | ( | int | language | ) |
sets the default language of the ps2
| language | Language value (See OSD_LANGUAGES above) |
Definition at line 198 of file osd_config.c.
| void configSetSpdifEnabled | ( | int | enabled | ) |
sets whether the spdif is enabled or not
| enabled | 1 = on; 0 = off |
Definition at line 395 of file osd_config.c.
| void configSetTimeFormat | ( | int | timeFormat | ) |
sets the time display format (whether 24hour time or not)
| timeFormat | 0 = 24hour; 1 = 12hour |
Definition at line 294 of file osd_config.c.
| void configSetTimezone | ( | int | offset | ) |
set timezone
| offset | offset in minutes from GMT |
Definition at line 348 of file osd_config.c.
| void configSetTvScreenType | ( | int | screenType | ) |
set the tv screen type
| screenType | 0 = 4:3; 1 = fullscreen; 2 = 16:9 |
Definition at line 228 of file osd_config.c.
| void convertfrombcd | ( | sceCdCLOCK * | time | ) |
Definition at line 73 of file osd_config.c.
| void converttobcd | ( | sceCdCLOCK * | time | ) |
Definition at line 57 of file osd_config.c.
| int IsEarlyJap | ( | ConfigParam | config | ) |
check if ps2 has a 'Protokernel' (Really early Japanese models)
| config | unsigned int config value from GetOsdConfigParam() syscall |
Definition at line 180 of file osd_config.c.
| ConfigParamT10K g_t10KConfig |
Definition at line 41 of file osd_config.c.