mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
ENH: GUI: add arm64 check logic for windows
jira: no-jira Change-Id: Ic788d4ae9218b909eae5ce571d4436c39e77230a (cherry picked from commit 323184e42c5f85c8738b03b890e5aaf3818e8858)
This commit is contained in:
@@ -1087,6 +1087,20 @@ GUI_App::GUI_App()
|
||||
#endif
|
||||
|
||||
reset_to_active();
|
||||
|
||||
#if defined(__WINDOWS__)
|
||||
SYSTEM_INFO sysInfo;
|
||||
GetNativeSystemInfo(&sysInfo);
|
||||
switch (sysInfo.wProcessorArchitecture) {
|
||||
case PROCESSOR_ARCHITECTURE_ARM64:
|
||||
m_is_arm64 = true;
|
||||
break;
|
||||
case PROCESSOR_ARCHITECTURE_AMD64:
|
||||
default:
|
||||
m_is_arm64 = false;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void GUI_App::shutdown()
|
||||
|
||||
Reference in New Issue
Block a user