Changed behaviour of setting.from element
This commit is contained in:
parent
ee7e65b1ce
commit
353109a704
|
@ -354,8 +354,7 @@ uint32_t xeXamUserReadProfileSettingsEx(uint32_t title_id, uint32_t user_index,
|
|||
auto setting = user_profile->GetSetting(setting_id);
|
||||
|
||||
std::memset(out_setting, 0, sizeof(X_USER_READ_PROFILE_SETTING));
|
||||
out_setting->from =
|
||||
!setting || !setting->is_set ? 0 : setting->is_title_specific() ? 2 : 1;
|
||||
out_setting->from = !setting ? 0 : 1;
|
||||
out_setting->user_index = static_cast<uint32_t>(user_index);
|
||||
out_setting->setting_id = setting_id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue