mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-08 09:40:56 +00:00
Block Rosetta on macOS 14.0, 14.1, and 14.2 (#15237)
This commit is contained in:
parent
ac8e914a25
commit
2b385f28f0
@ -60,6 +60,13 @@ DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResoluti
|
|||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <dispatch/dispatch.h>
|
#include <dispatch/dispatch.h>
|
||||||
|
// sysinfo_darwin.mm
|
||||||
|
namespace Darwin_Version
|
||||||
|
{
|
||||||
|
extern int getNSmajorVersion();
|
||||||
|
extern int getNSminorVersion();
|
||||||
|
extern int getNSpatchVersion();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Utilities/Config.h"
|
#include "Utilities/Config.h"
|
||||||
@ -519,6 +526,13 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
if ((Darwin_Version::getNSmajorVersion() == 14 && Darwin_Version::getNSminorVersion() < 3) && (utils::get_cpu_brand().rfind("VirtualApple", 0) == 0))
|
||||||
|
{
|
||||||
|
report_fatal_error("Unsupported Rosetta version.\nPlease update macOS to a supported version.");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ensure(thread_ctrl::is_main(), "Not main thread");
|
ensure(thread_ctrl::is_main(), "Not main thread");
|
||||||
|
|
||||||
// Initialize TSC freq (in case it isn't)
|
// Initialize TSC freq (in case it isn't)
|
||||||
|
Loading…
Reference in New Issue
Block a user