Improve macOS < 14.3 Rosetta blocker message (#15258)

This commit is contained in:
nastys 2024-03-01 20:01:21 +01:00 committed by GitHub
parent eecfbf3fa6
commit df4fc947ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -527,9 +527,12 @@ int main(int argc, char** argv)
#endif
#ifdef __APPLE__
if ((Darwin_Version::getNSmajorVersion() == 14 && Darwin_Version::getNSminorVersion() < 3) && (utils::get_cpu_brand().rfind("VirtualApple", 0) == 0))
const int osx_ver_major = Darwin_Version::getNSmajorVersion();
const int osx_ver_minor = Darwin_Version::getNSminorVersion();
if ((osx_ver_major == 14 && osx_ver_minor < 3) && (utils::get_cpu_brand().rfind("VirtualApple", 0) == 0))
{
report_fatal_error("Unsupported Rosetta version.\nPlease update macOS to a supported version.");
int osx_ver_patch = Darwin_Version::getNSpatchVersion();
report_fatal_error(fmt::format("RPCS3 requires macOS 14.3.0 or later.\nYou're currently using macOS %i.%i.%i.\nPlease update macOS from System Settings.\n\n", osx_ver_major, osx_ver_minor, osx_ver_patch));
}
#endif