Skip to content

Commit

Permalink
Improve macOS < 14.3 Rosetta blocker message (#15258)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastys committed Mar 1, 2024
1 parent eecfbf3 commit df4fc94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rpcs3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit df4fc94

Please sign in to comment.