VERY experimental Nintendo Switch 2 emulator
C++
Common/Kernel: Corrections and small bug fixing.
Fernando Sahmkow24e0d393e298
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cppindex a46db6bbfb..3afbdb898d 100644--- a/src/common/wall_clock.cpp+++ b/src/common/wall_clock.cpp@@ -68,12 +68,7 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency,const auto& caps = GetCPUCaps();u64 rtsc_frequency = 0;if (caps.invariant_tsc) {- if (caps.base_frequency != 0) {- rtsc_frequency = static_cast<u64>(caps.base_frequency) * 1000000U;- }- if (rtsc_frequency == 0) {- rtsc_frequency = EstimateRDTSCFrequency();- }+ rtsc_frequency = EstimateRDTSCFrequency();}if (rtsc_frequency == 0) {return std::make_unique<StandardWallClock>(emulated_cpu_frequency,diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cppindex 781032cd18..013ae9e34b 100644--- a/src/core/hle/kernel/svc.cpp+++ b/src/core/hle/kernel/svc.cpp@@ -344,9 +344,9 @@ static ResultCode SendSyncRequest(Core::System& system, Handle handle) {SchedulerLock lock(system.Kernel());auto* sync_object = thread->GetHLESyncObject();sync_object->RemoveWaitingThread(SharedFrom(thread));-- thread->InvokeHLECallback(SharedFrom(thread));}++ thread->InvokeHLECallback(SharedFrom(thread));}return thread->GetSignalingResult();