diff --git a/README.md b/README.md index a29f6fbe2..d47eb312a 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 2439. +This is the source code for early-access 2440. ## Legal Notice diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index 49830b8ab..ffa282e88 100755 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp @@ -72,7 +72,9 @@ std::unique_ptr CreateBestMatchingClock(u32 emulated_cpu_frequency, if (caps.invariant_tsc) { rtsc_frequency = EstimateRDTSCFrequency(); } - if (rtsc_frequency == 0) { + + // Fallback to StandardWallClock if rtsc period is higher than a nano second + if (rtsc_frequency <= 1000000000) { return std::make_unique(emulated_cpu_frequency, emulated_clock_frequency); } else { diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index ed6281772..577bf5c31 100755 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp @@ -109,8 +109,9 @@ public: bool HasHDRumble() const { if (sdl_controller) { - return (SDL_GameControllerGetType(sdl_controller.get()) == - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO); + const auto type = SDL_GameControllerGetType(sdl_controller.get()); + return (type == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO) || + (type == SDL_CONTROLLER_TYPE_PS5); } return false; }