summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-13 03:47:13 +0100
committerLioncash <mathew1800@gmail.com>2019-02-13 03:47:18 +0100
commit83ba3515ec73aa213b12411c6cae6b8e6ea77780 (patch)
treec337e5d01d43c91a6207692eff145b37c5fff30f
parentMerge pull request #2114 from lioncash/global (diff)
downloadyuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar.gz
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar.bz2
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar.lz
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar.xz
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.tar.zst
yuzu-83ba3515ec73aa213b12411c6cae6b8e6ea77780.zip
-rw-r--r--src/core/core_timing.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index 2b7ca9766..2c44651f2 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -70,8 +70,6 @@ static bool is_global_timer_sane;
static EventType* ev_lost = nullptr;
-static void EmptyTimedCallback(u64 userdata, s64 cyclesLate) {}
-
EventType* RegisterEvent(const std::string& name, TimedCallback callback) {
// check for existing type with same name.
// we want event type names to remain unique so that we can use them for serialization.
@@ -104,7 +102,9 @@ void Init() {
is_global_timer_sane = true;
event_fifo_id = 0;
- ev_lost = RegisterEvent("_lost_event", &EmptyTimedCallback);
+
+ const auto empty_timed_callback = [](u64, s64) {};
+ ev_lost = RegisterEvent("_lost_event", empty_timed_callback);
}
void Shutdown() {