neutrino.cpp: add subtitles charset setting

Origin commit data
------------------
Branch: ni/coolstream
Commit: b85c0daf7a
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-02-25 (Tue, 25 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2014-02-25 16:39:43 +04:00
parent 42fa1ab54d
commit 24f469b5c5
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;