Revert "elm_config: remove profile name reading logic from data dir"
This reverts commit 6c4e49d970
.
Hell no - this removes loading of system config profile. the entire
premise of the patch is wrong. it isn't reading the code at all... how
this got through review is rather amazing...
This commit is contained in:
parent
5f207d79e3
commit
fe6ea2314c
|
@ -1459,9 +1459,14 @@ _profile_fetch_from_conf(void)
|
|||
}
|
||||
}
|
||||
|
||||
if(!_use_build_config)
|
||||
for (i = 0; i < 2 && !_use_build_config; i++)
|
||||
{
|
||||
_elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
|
||||
// user profile
|
||||
if (i == 0)
|
||||
_elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
|
||||
// system profile
|
||||
else if (i == 1)
|
||||
_elm_data_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
|
||||
ef = eet_open(buf, EET_FILE_MODE_READ);
|
||||
if (ef)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue