summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-14 00:04:22 +0100
committerLéo Lam <leo@leolam.fr>2022-01-14 00:04:22 +0100
commit83c5446d852178794450f7c5833f7a047490ff31 (patch)
treec154122215e7dd3917ff4d57ed4d35eeb1b46ee1 /Source/Core/DiscIO/VolumeVerifier.cpp
parent07fd17445c6ca4e89b0cef023ba711bb27c920aa (diff)
Fix static initialisation order fiasco issue for Version variables
Fixes a crash that could occur if the static constructor function for the MainSettings.cpp TU happened to run before the variables in Common/Version.cpp are initialised. (This is known as the static initialisation order fiasco.) By using wrapper functions, those variables are now guaranteed to be constructed on first use.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 0a17864290..252cf427b6 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -125,7 +125,7 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string
const std::optional<std::vector<u8>> result =
request.Get("http://redump.org/datfile/" + system + "/serial,version",
- {{"User-Agent", Common::scm_rev_str}});
+ {{"User-Agent", Common::GetScmRevStr()}});
const std::string output_path = GetPathForSystem(system);