Browse Source
Merge pull request #4529 from lioncash/assignment
time_zone_content_manager: Collapse auto and default case
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
src/core/hle/service/time/time_zone_content_manager.cpp
|
|
|
@ -73,10 +73,8 @@ TimeZoneContentManager::TimeZoneContentManager(TimeManager& time_manager, Core:: |
|
|
|
|
|
|
|
std::string location_name; |
|
|
|
const auto timezone_setting = Settings::GetTimeZoneString(); |
|
|
|
if (timezone_setting == "auto") { |
|
|
|
if (timezone_setting == "auto" || timezone_setting == "default") { |
|
|
|
location_name = Common::TimeZone::GetDefaultTimeZone(); |
|
|
|
} else if (timezone_setting == "default") { |
|
|
|
location_name = location_name; |
|
|
|
} else { |
|
|
|
location_name = timezone_setting; |
|
|
|
} |
|
|
|
|