sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
osd_config.c File Reference
#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

Detailed Description

PS2 Configuration settings note: the 'set' methods are only valid till the ps2 gets turned off or reset!

Definition in file osd_config.c.

Function Documentation

◆ __adjustTime()

void __adjustTime ( sceCdCLOCK * time,
int offset )

Definition at line 158 of file osd_config.c.

◆ __attribute__()

__attribute__ ( (constructor) )

Definition at line 43 of file osd_config.c.

◆ configConvertToGmtTime()

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.

◆ configConvertToLocalTime()

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.

◆ configGetDateFormat()

int configGetDateFormat ( void )

gets the date display format

Returns
0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy

Definition at line 244 of file osd_config.c.

◆ configGetLanguage()

int configGetLanguage ( void )

get the language the ps2 is currently set to

Returns
Language value (See OSD_LANGUAGES above)

Definition at line 185 of file osd_config.c.

◆ configGetTimeFormat()

int configGetTimeFormat ( void )

gets the time display format (whether 24hour time or not)

Returns
0 = 24hour; 1 = 12hour

Definition at line 279 of file osd_config.c.

◆ configGetTimezone()

int configGetTimezone ( void )

get timezone

Returns
offset in minutes from GMT

Definition at line 314 of file osd_config.c.

◆ configGetTvScreenType()

int configGetTvScreenType ( void )

get the tv screen type the ps2 is setup for

Returns
0 = 4:3; 1 = fullscreen; 2 = 16:9

Definition at line 217 of file osd_config.c.

◆ configIsDaylightSavingEnabled()

int configIsDaylightSavingEnabled ( void )

checks whether daylight saving is currently set

Returns
1 = on; 0 = off

Definition at line 407 of file osd_config.c.

◆ configIsSpdifEnabled()

int configIsSpdifEnabled ( void )

checks whether the spdif is enabled or not

Returns
1 = on; 0 = off

Definition at line 384 of file osd_config.c.

◆ configSetDateFormat()

void configSetDateFormat ( int dateFormat)

sets the date display format

Parameters
dateFormat0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy

Definition at line 259 of file osd_config.c.

◆ configSetDaylightSavingEnabled()

void configSetDaylightSavingEnabled ( int enabled)

sets daylight saving

Parameters
enabled1 = on; 0 = off

Definition at line 423 of file osd_config.c.

◆ configSetLanguage()

void configSetLanguage ( int language)

sets the default language of the ps2

Parameters
languageLanguage value (See OSD_LANGUAGES above)

Definition at line 198 of file osd_config.c.

◆ configSetSpdifEnabled()

void configSetSpdifEnabled ( int enabled)

sets whether the spdif is enabled or not

Parameters
enabled1 = on; 0 = off

Definition at line 395 of file osd_config.c.

◆ configSetTimeFormat()

void configSetTimeFormat ( int timeFormat)

sets the time display format (whether 24hour time or not)

Parameters
timeFormat0 = 24hour; 1 = 12hour

Definition at line 294 of file osd_config.c.

◆ configSetTimezone()

void configSetTimezone ( int offset)

set timezone

Parameters
offsetoffset in minutes from GMT

Definition at line 348 of file osd_config.c.

◆ configSetTvScreenType()

void configSetTvScreenType ( int screenType)

set the tv screen type

Parameters
screenType0 = 4:3; 1 = fullscreen; 2 = 16:9

Definition at line 228 of file osd_config.c.

◆ convertfrombcd()

void convertfrombcd ( sceCdCLOCK * time)

Definition at line 73 of file osd_config.c.

◆ converttobcd()

void converttobcd ( sceCdCLOCK * time)

Definition at line 57 of file osd_config.c.

◆ IsEarlyJap()

int IsEarlyJap ( ConfigParam config)

check if ps2 has a 'Protokernel' (Really early Japanese models)

Parameters
configunsigned int config value from GetOsdConfigParam() syscall
Returns
1 if early jap model; 0 if not

Definition at line 180 of file osd_config.c.

Variable Documentation

◆ g_t10KConfig

ConfigParamT10K g_t10KConfig

Definition at line 41 of file osd_config.c.