summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/AutoUpdate.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-06-16 14:55:51 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2022-06-16 14:55:51 -0700
commit896d5454f09ce8240e3b4a11d010b2bcf44ebf8d (patch)
treea8e7813e046a4b6a70b7a9a49356dda96d8195ef /Source/Core/UICommon/AutoUpdate.cpp
parent107a928452f4bd9fb86b7a1b2e247fd5bcdd8453 (diff)
updater: use new platform id for win-arm64
Diffstat (limited to 'Source/Core/UICommon/AutoUpdate.cpp')
-rw-r--r--Source/Core/UICommon/AutoUpdate.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/UICommon/AutoUpdate.cpp b/Source/Core/UICommon/AutoUpdate.cpp
index d02c2356b3..de8d426c7f 100644
--- a/Source/Core/UICommon/AutoUpdate.cpp
+++ b/Source/Core/UICommon/AutoUpdate.cpp
@@ -128,22 +128,22 @@ std::string GenerateChangelog(const picojson::array& versions)
bool AutoUpdateChecker::SystemSupportsAutoUpdates()
{
-#if defined AUTOUPDATE
-#if defined _WIN32 || defined __APPLE__
+#if defined(AUTOUPDATE) && (defined(_WIN32) || defined(__APPLE__))
return true;
#else
return false;
#endif
-#else
- return false;
-#endif
}
static std::string GetPlatformID()
{
-#if defined _WIN32
+#if defined(_WIN32)
+#if defined(_M_ARM_64)
+ return "win-arm64";
+#else
return "win";
-#elif defined __APPLE__
+#endif
+#elif defined(__APPLE__)
#if defined(MACOS_UNIVERSAL_BUILD)
return "macos-universal";
#else