macos: don't assume that all macOS major versions are simple numeric values (#3836)

Related to https://github.com/open-goal/launcher/pull/664
Likely Fixes https://github.com/open-goal/launcher/issues/663
This commit is contained in:
Tyler Wilding
2025-01-11 15:50:13 -05:00
committed by GitHub
parent 434484e5b5
commit f6fad0630f
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -182,8 +182,8 @@ int main(int argc, char** argv) {
// Check if we are on a modern enough version of macOS so that AVX can be
// emulated via rosetta
#ifdef __APPLE__
auto macos_version = get_macos_version();
if (macos_version < 15.0) {
auto macos_major_version = get_macos_major_version();
if (macos_major_version < 15.0) {
lg::info(
"Your CPU does not support AVX. But the newer version of Rosetta supports it, update to "
"atleast Sequoia to run OpenGOAL!");