summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitmodules42
-rw-r--r--src/common/settings.cpp19
2 files changed, 37 insertions, 24 deletions
diff --git a/.gitmodules b/.gitmodules
index 5a8169b44..9f96b70be 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -2,35 +2,35 @@
# SPDX-License-Identifier: GPL-2.0-or-later
[submodule "enet"]
- path = externals/enet
- url = https://github.com/lsalzman/enet.git
+ path = externals/enet
+ url = https://github.com/lsalzman/enet.git
[submodule "inih"]
- path = externals/inih/inih
- url = https://github.com/benhoyt/inih.git
+ path = externals/inih/inih
+ url = https://github.com/benhoyt/inih.git
[submodule "cubeb"]
- path = externals/cubeb
- url = https://github.com/mozilla/cubeb.git
+ path = externals/cubeb
+ url = https://github.com/mozilla/cubeb.git
[submodule "dynarmic"]
- path = externals/dynarmic
- url = https://github.com/MerryMage/dynarmic.git
+ path = externals/dynarmic
+ url = https://github.com/merryhime/dynarmic.git
[submodule "libusb"]
path = externals/libusb/libusb
url = https://github.com/libusb/libusb.git
[submodule "discord-rpc"]
- path = externals/discord-rpc
- url = https://github.com/yuzu-emu/discord-rpc.git
+ path = externals/discord-rpc
+ url = https://github.com/yuzu-emu/discord-rpc.git
[submodule "Vulkan-Headers"]
- path = externals/Vulkan-Headers
- url = https://github.com/KhronosGroup/Vulkan-Headers.git
+ path = externals/Vulkan-Headers
+ url = https://github.com/KhronosGroup/Vulkan-Headers.git
[submodule "sirit"]
- path = externals/sirit
- url = https://github.com/yuzu-emu/sirit
+ path = externals/sirit
+ url = https://github.com/yuzu-emu/sirit.git
[submodule "mbedtls"]
- path = externals/mbedtls
- url = https://github.com/yuzu-emu/mbedtls
+ path = externals/mbedtls
+ url = https://github.com/yuzu-emu/mbedtls.git
[submodule "xbyak"]
- path = externals/xbyak
- url = https://github.com/herumi/xbyak.git
+ path = externals/xbyak
+ url = https://github.com/herumi/xbyak.git
[submodule "opus"]
path = externals/opus/opus
url = https://github.com/xiph/opus.git
@@ -45,16 +45,16 @@
url = https://github.com/FFmpeg/FFmpeg.git
[submodule "vcpkg"]
path = externals/vcpkg
- url = https://github.com/Microsoft/vcpkg.git
+ url = https://github.com/microsoft/vcpkg.git
[submodule "cpp-jwt"]
path = externals/cpp-jwt
url = https://github.com/arun11299/cpp-jwt.git
[submodule "libadrenotools"]
path = externals/libadrenotools
- url = https://github.com/bylaws/libadrenotools
+ url = https://github.com/bylaws/libadrenotools.git
[submodule "tzdb_to_nx"]
path = externals/nx_tzdb/tzdb_to_nx
url = https://github.com/lat9nq/tzdb_to_nx.git
[submodule "VulkanMemoryAllocator"]
path = externals/vma/VulkanMemoryAllocator
- url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
+ url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 66dffc9bf..6cbbea1b2 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -1,8 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <version>
#if __cpp_lib_chrono >= 201907L
#include <chrono>
+#include <exception>
+#include <stdexcept>
#endif
#include <string_view>
@@ -25,9 +28,19 @@ std::string GetTimeZoneString() {
if (time_zone_index == 0) { // Auto
#if __cpp_lib_chrono >= 201907L
const struct std::chrono::tzdb& time_zone_data = std::chrono::get_tzdb();
- const std::chrono::time_zone* current_zone = time_zone_data.current_zone();
- std::string_view current_zone_name = current_zone->name();
- location_name = current_zone_name;
+ try {
+ const std::chrono::time_zone* current_zone = time_zone_data.current_zone();
+ std::string_view current_zone_name = current_zone->name();
+ location_name = current_zone_name;
+ } catch (std::runtime_error& runtime_error) {
+ // VCRUNTIME will throw a runtime_error if the operating system's selected time zone
+ // cannot be found
+ location_name = Common::TimeZone::FindSystemTimeZone();
+ LOG_WARNING(Common,
+ "Error occurred when trying to determine system time zone:\n{}\nFalling "
+ "back to hour offset \"{}\"",
+ runtime_error.what(), location_name);
+ }
#else
location_name = Common::TimeZone::FindSystemTimeZone();
#endif