mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
defaults: better solution for eb2b49bbed
Origin commit data ------------------ Branch: ni/coolstream Commit:83dcb4de65
Author: vanhofen <vanhofen@gmx.de> Date: 2016-06-13 (Mon, 13 Jun 2016) Origin message was: ------------------ - defaults: better solution foreb2b49bbed
------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit
This commit is contained in:
@@ -541,10 +541,17 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
g_settings.auto_subs = configfile.getInt32( "auto_subs", 0 );
|
g_settings.auto_subs = configfile.getInt32( "auto_subs", 0 );
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++) {
|
for(int i = 0; i < 3; i++) {
|
||||||
|
//NI
|
||||||
|
std::string _lang = "none";
|
||||||
|
switch (i) {
|
||||||
|
case 0: _lang = "German" ; break;
|
||||||
|
case 1: _lang = "English"; break;
|
||||||
|
case 2: _lang = "French" ; break;
|
||||||
|
}
|
||||||
sprintf(cfg_key, "pref_lang_%d", i);
|
sprintf(cfg_key, "pref_lang_%d", i);
|
||||||
g_settings.pref_lang[i] = configfile.getString(cfg_key, (i == 0) ? "German" : "none"); //NI
|
g_settings.pref_lang[i] = configfile.getString(cfg_key, _lang); //NI
|
||||||
sprintf(cfg_key, "pref_subs_%d", i);
|
sprintf(cfg_key, "pref_subs_%d", i);
|
||||||
g_settings.pref_subs[i] = configfile.getString(cfg_key, (i == 0) ? "German" : "none"); //NI
|
g_settings.pref_subs[i] = configfile.getString(cfg_key, _lang); //NI
|
||||||
}
|
}
|
||||||
g_settings.subs_charset = configfile.getString("subs_charset", "CP1252");
|
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 );
|
||||||
|
Reference in New Issue
Block a user