mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
neutrino.cpp: add subtitles charset setting
This commit is contained in:
@@ -435,6 +435,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
sprintf(cfg_key, "pref_subs_%d", i);
|
sprintf(cfg_key, "pref_subs_%d", i);
|
||||||
g_settings.pref_subs[i] = configfile.getString(cfg_key, "none");
|
g_settings.pref_subs[i] = configfile.getString(cfg_key, "none");
|
||||||
}
|
}
|
||||||
|
g_settings.subs_charset = configfile.getString("subs_charset", "CP1252");
|
||||||
g_settings.zap_cycle = configfile.getInt32( "zap_cycle", 0 );
|
g_settings.zap_cycle = configfile.getInt32( "zap_cycle", 0 );
|
||||||
|
|
||||||
//vcr
|
//vcr
|
||||||
@@ -945,6 +946,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
sprintf(cfg_key, "pref_subs_%d", i);
|
sprintf(cfg_key, "pref_subs_%d", i);
|
||||||
configfile.setString(cfg_key, g_settings.pref_subs[i]);
|
configfile.setString(cfg_key, g_settings.pref_subs[i]);
|
||||||
}
|
}
|
||||||
|
configfile.setString("subs_charset", g_settings.subs_charset);
|
||||||
|
|
||||||
//vcr
|
//vcr
|
||||||
configfile.setBool("vcr_AutoSwitch" , g_settings.vcr_AutoSwitch );
|
configfile.setBool("vcr_AutoSwitch" , g_settings.vcr_AutoSwitch );
|
||||||
|
@@ -138,6 +138,7 @@ struct SNeutrinoSettings
|
|||||||
|
|
||||||
std::string pref_lang[3];
|
std::string pref_lang[3];
|
||||||
std::string pref_subs[3];
|
std::string pref_subs[3];
|
||||||
|
std::string subs_charset;
|
||||||
|
|
||||||
// EPG
|
// EPG
|
||||||
int epg_save;
|
int epg_save;
|
||||||
|
Reference in New Issue
Block a user