diff --git a/hecl-gui/CMakeLists.txt b/hecl-gui/CMakeLists.txt index 81a683236..7996ad355 100644 --- a/hecl-gui/CMakeLists.txt +++ b/hecl-gui/CMakeLists.txt @@ -26,7 +26,7 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "") set(QUAZIP_INSTALL OFF CACHE BOOL "") add_subdirectory(quazip) -if (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64) set(VectorISATableModel_HEADER VectorISATableModelIntel.hpp) else () set(VectorISATableModel_HEADER "") diff --git a/hecl-gui/FindBlender.cpp b/hecl-gui/FindBlender.cpp index c34618b6a..16d250587 100644 --- a/hecl-gui/FindBlender.cpp +++ b/hecl-gui/FindBlender.cpp @@ -51,9 +51,9 @@ hecl::SystemString FindBlender(int& major, int& minor) { /* No steam; try default */ wchar_t progFiles[256]; if (GetEnvironmentVariableW(L"ProgramFiles", progFiles, 256)) { - for (size_t major = MinBlenderMajorSearch; major <= MaxBlenderMajorSearch; ++major) { + for (size_t major = MaxBlenderMajorSearch; major >= MinBlenderMajorSearch; --major) { bool found = false; - for (size_t minor = MinBlenderMinorSearch; minor <= MaxBlenderMinorSearch; ++minor) { + for (size_t minor = MaxBlenderMinorSearch; minor > MinBlenderMinorSearch; --minor) { _snwprintf(BLENDER_BIN_BUF, 2048, L"%s\\Blender Foundation\\Blender %i.%i\\blender.exe", progFiles, major, minor); if (RegFileExists(BLENDER_BIN_BUF)) {