neutrino.cpp: add subtitles charset setting

This commit is contained in:
[CST] Focus
2014-02-25 16:39:43 +04:00
parent fa79f1d9d3
commit b85c0daf7a
2 changed files with 3 additions and 0 deletions

View File

@@ -435,6 +435,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
sprintf(cfg_key, "pref_subs_%d", i);
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 );
//vcr
@@ -945,6 +946,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
sprintf(cfg_key, "pref_subs_%d", i);
configfile.setString(cfg_key, g_settings.pref_subs[i]);
}
configfile.setString("subs_charset", g_settings.subs_charset);
//vcr
configfile.setBool("vcr_AutoSwitch" , g_settings.vcr_AutoSwitch );

View File

@@ -138,6 +138,7 @@ struct SNeutrinoSettings
std::string pref_lang[3];
std::string pref_subs[3];
std::string subs_charset;
// EPG
int epg_save;