sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
osd_config.h File Reference
#include <tamtypes.h>
#include <rom0_info.h>
#include <libcdvd.h>

Go to the source code of this file.

Classes

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 IsEarlyJap (ConfigParam config)

Detailed Description

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.

Enumeration Type Documentation

◆ DATE_FORMAT_TYPES

date format values returned by: int getDateFormat(void)

Definition at line 70 of file osd_config.h.

◆ OSD_LANGUAGES

language values returned and used by: configGetLanguage() and configSetLanguage()

Definition at line 35 of file osd_config.h.

◆ TIME_FORMAT_TYPES

Time format values returned by: int getTimeFormat(void)

Definition at line 77 of file osd_config.h.

◆ TV_SCREEN_TYPES

tv screen values returned by: int getTvScreenType(void)

Definition at line 57 of file osd_config.h.

◆ VIDEO_OUTPUT_TYPES

Video output type values

Definition at line 64 of file osd_config.h.

Function Documentation

◆ configConvertToGmtTime()

void configConvertToGmtTime ( sceCdCLOCK * time)
extern

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)
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

get timezone

Returns
offset in minutes from GMT

Definition at line 314 of file osd_config.c.

◆ configGetTvScreenType()

int configGetTvScreenType ( void )
extern

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 )
extern

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 )
extern

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)
extern

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)
extern

sets daylight saving

Parameters
enabled1 = on; 0 = off

Definition at line 423 of file osd_config.c.

◆ configSetLanguage()

void configSetLanguage ( int language)
extern

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)
extern

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)
extern

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)
extern

set timezone

Parameters
offsetoffset in minutes from GMT

Definition at line 348 of file osd_config.c.

◆ configSetTvScreenType()

void configSetTvScreenType ( int screenType)
extern

set the tv screen type

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

Definition at line 228 of file osd_config.c.

◆ IsEarlyJap()

int IsEarlyJap ( ConfigParam config)
extern

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.