Merge branch 'shadps4-emu:main' into main

This commit is contained in:
Xphalnos 2024-06-11 22:10:04 +02:00 committed by GitHub
commit 5d69def24c

View file

@ -47,8 +47,8 @@ u64 PS4_SYSV_ABI sceKernelReadTsc() {
}
int PS4_SYSV_ABI sceKernelUsleep(u32 microseconds) {
#ifdef _WIN64
if (microseconds < 1000u) {
#if _WIN64
LARGE_INTEGER interval{
.QuadPart = -1 * (microseconds * 10u),
};
@ -57,7 +57,7 @@ int PS4_SYSV_ABI sceKernelUsleep(u32 microseconds) {
std::this_thread::sleep_for(std::chrono::microseconds(microseconds));
}
#else
usleep(microseconds);
usleep(microseconds);
#endif
return 0;
}