diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-07-10 10:29:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 10:29:56 +0200 |
commit | 25e47738f71e6a6469ff251dd84e28289133dad1 (patch) | |
tree | c431a3b1ee04fb4da60e08ab21d78a5813e9b528 /src/core/tools | |
parent | Merge pull request #8531 from FernandoS27/core-timing-fix-reg (diff) | |
parent | PR (diff) | |
download | yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar.gz yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar.bz2 yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar.lz yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar.xz yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.tar.zst yuzu-25e47738f71e6a6469ff251dd84e28289133dad1.zip |
Diffstat (limited to 'src/core/tools')
-rw-r--r-- | src/core/tools/freezer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/tools/freezer.cpp b/src/core/tools/freezer.cpp index 5cc99fbe4..98ebbbf32 100644 --- a/src/core/tools/freezer.cpp +++ b/src/core/tools/freezer.cpp @@ -53,8 +53,10 @@ Freezer::Freezer(Core::Timing::CoreTiming& core_timing_, Core::Memory::Memory& m : core_timing{core_timing_}, memory{memory_} { event = Core::Timing::CreateEvent( "MemoryFreezer::FrameCallback", - [this](std::uintptr_t user_data, std::chrono::nanoseconds ns_late) { + [this](std::uintptr_t user_data, s64 time, + std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> { FrameCallback(user_data, ns_late); + return std::nullopt; }); core_timing.ScheduleEvent(memory_freezer_ns, event); } |