mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
defaults: better solution for 34877d97e9
Origin commit data ------------------ Commit:83dcb4de65
Author: vanhofen <vanhofen@gmx.de> Date: 2016-06-13 (Mon, 13 Jun 2016) Origin message was: ------------------ - defaults: better solution for34877d97e9
This commit is contained in:
@@ -541,10 +541,17 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.auto_subs = configfile.getInt32( "auto_subs", 0 );
|
||||
|
||||
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);
|
||||
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);
|
||||
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.zap_cycle = configfile.getInt32( "zap_cycle", 0 );
|
||||
|
Reference in New Issue
Block a user