diff options
| author | bunnei <bunneidev@gmail.com> | 2023-08-09 21:24:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 21:24:31 -0700 |
| commit | 9d3a293a4ea17b60146c10e7561c0fd1219fd6c1 (patch) | |
| tree | b69936f3e53ee675de0ca21a1dffabd7e71acae0 /src/core/hle/service/nvnflinger/nvnflinger.cpp | |
| parent | 3d6ce9dd2b5bad115b295fb7092abc5c30a34448 (diff) | |
| parent | 1e394c6cdf1ab83c83477c19c0e736a95b86e8da (diff) | |
Merge pull request #11093 from liamwhite/result-ergonomics
core: remove ResultVal type
Diffstat (limited to 'src/core/hle/service/nvnflinger/nvnflinger.cpp')
| -rw-r--r-- | src/core/hle/service/nvnflinger/nvnflinger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.cpp b/src/core/hle/service/nvnflinger/nvnflinger.cpp index 5f55cd31e..21f31f7a0 100644 --- a/src/core/hle/service/nvnflinger/nvnflinger.cpp +++ b/src/core/hle/service/nvnflinger/nvnflinger.cpp @@ -183,7 +183,7 @@ std::optional<u32> Nvnflinger::FindBufferQueueId(u64 display_id, u64 layer_id) { return layer->GetBinderId(); } -ResultVal<Kernel::KReadableEvent*> Nvnflinger::FindVsyncEvent(u64 display_id) { +Result Nvnflinger::FindVsyncEvent(Kernel::KReadableEvent** out_vsync_event, u64 display_id) { const auto lock_guard = Lock(); auto* const display = FindDisplay(display_id); @@ -191,7 +191,7 @@ ResultVal<Kernel::KReadableEvent*> Nvnflinger::FindVsyncEvent(u64 display_id) { return VI::ResultNotFound; } - return display->GetVSyncEvent(); + return display->GetVSyncEvent(out_vsync_event); } VI::Display* Nvnflinger::FindDisplay(u64 display_id) { |
