diff options
| author | 2021-06-18 11:25:26 -0400 | |
|---|---|---|
| committer | 2021-06-18 11:25:26 -0400 | |
| commit | fd5ef1970c6f66c5080a8b3388986e485d751588 (patch) | |
| tree | 4ef400cb71105e184a055b332bf7a8aedd457f3c | |
| parent | Merge pull request #6478 from ameerj/vk-layer-settings (diff) | |
| download | yuzu-fd5ef1970c6f66c5080a8b3388986e485d751588.tar.gz yuzu-fd5ef1970c6f66c5080a8b3388986e485d751588.tar.xz yuzu-fd5ef1970c6f66c5080a8b3388986e485d751588.zip | |
service: time: Use GetFileRelative to get files within subdirectories
The timezone info file can be within subdirectories (such as Asia/Tokyo), use GetFileRelative instead of GetFile to get files within subdirectories.
| -rw-r--r-- | src/core/hle/service/time/time_zone_content_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/time/time_zone_content_manager.cpp b/src/core/hle/service/time/time_zone_content_manager.cpp index bf4402308..c634b6abd 100644 --- a/src/core/hle/service/time/time_zone_content_manager.cpp +++ b/src/core/hle/service/time/time_zone_content_manager.cpp | |||
| @@ -125,7 +125,7 @@ ResultCode TimeZoneContentManager::GetTimeZoneInfoFile(const std::string& locati | |||
| 125 | return ERROR_TIME_NOT_FOUND; | 125 | return ERROR_TIME_NOT_FOUND; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | vfs_file = zoneinfo_dir->GetFile(location_name); | 128 | vfs_file = zoneinfo_dir->GetFileRelative(location_name); |
| 129 | if (!vfs_file) { | 129 | if (!vfs_file) { |
| 130 | LOG_ERROR(Service_Time, "{:016X} has no file \"{}\"! Using default timezone.", | 130 | LOG_ERROR(Service_Time, "{:016X} has no file \"{}\"! Using default timezone.", |
| 131 | time_zone_binary_titleid, location_name); | 131 | time_zone_binary_titleid, location_name); |