Esempio n. 1
0
int PatchIsNeeded(void){
	ConfigParam original_config, config;

	GetOsdConfigParam(&original_config);
	config=original_config;
	config.version=1;	//Protokernels cannot retain values set in this field.
	SetOsdConfigParam(&config);
	GetOsdConfigParam(&config);
	SetOsdConfigParam(&original_config);

	return(config.version<1);
}
Esempio n. 2
0
int  configIsSpdifEnabled(void)
{
	ConfigParam config;

	if(IsT10K())
		return g_t10KConfig.spdifMode ^ 1;

	GetOsdConfigParam(&config);
	return config.spdifMode ^ 1;
}
Esempio n. 3
0
int  configGetTvScreenType(void)
{
	ConfigParam config;

	if(IsT10K())
		return g_t10KConfig.screenType;

	GetOsdConfigParam(&config);
	return config.screenType;
}
Esempio n. 4
0
void configSetSpdifEnabled(int enabled)
{
	ConfigParam config;

	if(IsT10K())
		g_t10KConfig.spdifMode = enabled ^ 1;

	GetOsdConfigParam(&config);
	config.spdifMode = enabled ^ 1;
	SetOsdConfigParam(&config);
}
Esempio n. 5
0
int  configGetLanguage(void)
{
	ConfigParam config;

	if(IsT10K())
		return g_t10KConfig.language;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return config.japLanguage;
	return config.language;
}
Esempio n. 6
0
int  configGetTimezone(void)
{
	ConfigParam config;

	if(IsT10K())
		return g_t10KConfig.timezoneOffset;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return 540;
	return config.timezoneOffset;
}
Esempio n. 7
0
void configSetTimezone(int timezoneOffset)
{
	ConfigParam config;

	// set offset from GMT
	if(IsT10K())
		g_t10KConfig.timezoneOffset = timezoneOffset;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return;
	config.timezoneOffset = timezoneOffset;
	SetOsdConfigParam(&config);
}
Esempio n. 8
0
int  configGetTimeFormat(void)
{
	ConfigParam config;
	Config2Param config2;

	if(IsT10K())
		return g_t10KConfig.timeFormat;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return 0;
	GetOsdConfigParam2(&config2, 1, 1);
	return config2.timeFormat;
}
Esempio n. 9
0
void configSetDaylightSavingEnabled(int daylightSaving)
{
	ConfigParam config;
	Config2Param config2;

	if(IsT10K())
		g_t10KConfig.daylightSaving = daylightSaving;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return;
	GetOsdConfigParam2(&config2, 1, 1);
	config2.daylightSaving = daylightSaving;
	SetOsdConfigParam2(&config2, 1, 1);
}
Esempio n. 10
0
int  configIsDaylightSavingEnabled(void)
{
	ConfigParam config;
	Config2Param config2;

	if(IsT10K())
		return g_t10KConfig.daylightSaving;

	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return 0;
	GetOsdConfigParam2(&config2, 1, 1);

	return config2.daylightSaving;
}
Esempio n. 11
0
// set the tv screen type
//
// args:	0 = 4:3
//			1 = fullscreen
//			2 = 16:9
void configSetTvScreenType(int screenType)
{
	ConfigParam config;

	// make sure screen type is valid
	if(screenType < TV_SCREEN_43 || screenType > TV_SCREEN_169)
		return;
	if(IsT10K())
		g_t10KConfig.screenType = screenType;

	// set screen type
	GetOsdConfigParam(&config);
	config.screenType = screenType;
	SetOsdConfigParam(&config);
}
Esempio n. 12
0
void configSetLanguage(int language)
{
	ConfigParam config;

	// make sure language is valid
	if(language < LANGUAGE_JAPANESE || language > LANGUAGE_PORTUGUESE)
		return;
	if(IsT10K())
		g_t10KConfig.language = language;

	// set language
	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		config.japLanguage = language;
	else
		config.language = language;
	SetOsdConfigParam(&config);
}
Esempio n. 13
0
void configSetTimeFormat(int timeFormat)
{
	ConfigParam config;
	Config2Param config2;

	// make sure time format is valid
	if(timeFormat < TIME_24H || timeFormat > TIME_12H)
		return;
	if(IsT10K())
		g_t10KConfig.timeFormat = timeFormat;

	// set time format
	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return;
	GetOsdConfigParam2(&config2, 1, 1);
	config2.timeFormat = timeFormat;
	SetOsdConfigParam2(&config2, 1, 1);
}
Esempio n. 14
0
void configSetDateFormat(int dateFormat)
{
	ConfigParam config;
	Config2Param config2;

	// make sure date format is valid
	if(dateFormat < DATE_YYYYMMDD || dateFormat > DATE_DDMMYYYY)
		return;
	if(IsT10K())
		g_t10KConfig.dateFormat = dateFormat;

	// set date format
	GetOsdConfigParam(&config);
	if(IsEarlyJap(config))
		return;
	GetOsdConfigParam2(&config2, 1, 1);
	config2.dateFormat = dateFormat;
	SetOsdConfigParam2(&config2, 1, 1);
}