mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Updater not detecting architecture on Windows correctly
This commit is contained in:
@@ -102,12 +102,12 @@ std::optional<std::fs::path> downloadUpdate(const std::string &url) {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
#if defined(__x86_64__)
|
||||
#if defined(__x86_64__) || defined(_X86_) || defined(_AMD64_)
|
||||
#define ARCH_DEPENDENT(x86_64, arm64) x86_64
|
||||
#elif defined(__arm64__)
|
||||
#elif defined(__arm64__) || defined(_ARM64_)
|
||||
#define ARCH_DEPENDENT(x86_64, arm64) arm64
|
||||
#else
|
||||
#define ARCH_DEPENDENT(x86_64, arm64) ""
|
||||
#error "Unsupported architecture for updater"
|
||||
#endif
|
||||
|
||||
std::string_view getUpdateArtifactEnding() {
|
||||
|
||||
Reference in New Issue
Block a user