diff --git a/Source/Core/Common/Version.cpp b/Source/Core/Common/Version.cpp index 618d000b9f..5a34b73018 100644 --- a/Source/Core/Common/Version.cpp +++ b/Source/Core/Common/Version.cpp @@ -19,6 +19,12 @@ namespace Common #define BUILD_TYPE_STR "" #endif +const std::string& GetEmulatorName() +{ + static const std::string emulator_name = EMULATOR_NAME; + return emulator_name; +} + const std::string& GetScmRevStr() { static const std::string scm_rev_str = EMULATOR_NAME " " diff --git a/Source/Core/Common/Version.h b/Source/Core/Common/Version.h index a141ecb898..6a8f29923c 100644 --- a/Source/Core/Common/Version.h +++ b/Source/Core/Common/Version.h @@ -7,6 +7,7 @@ namespace Common { +const std::string& GetEmulatorName(); const std::string& GetScmDescStr(); const std::string& GetScmBranchStr(); const std::string& GetScmRevStr(); diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index d7956fb617..2944c31272 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -128,7 +128,7 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string const std::optional> result = request.Get("https://redump.info/datfile/" + system + "/serial,version", - {{"User-Agent", Common::GetScmRevStr()}}); + {{"User-Agent", Common::GetEmulatorName()}}); const std::string output_path = GetPathForSystem(system);