diff options
author | bunnei <bunneidev@gmail.com> | 2016-11-20 04:19:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-20 04:19:45 +0100 |
commit | f1798c1db6dd580d695c97e020d5a0b5d898db40 (patch) | |
tree | 634986539dd19dd6c54c32ec315c40cc5faa6598 /src | |
parent | Merge pull request #2192 from Subv/applet_enums (diff) | |
parent | Kernel/Events: Log an error when trying to create Pulse events and timers. (diff) | |
download | yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar.gz yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar.bz2 yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar.lz yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar.xz yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.tar.zst yuzu-f1798c1db6dd580d695c97e020d5a0b5d898db40.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/event.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/kernel/timer.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp index 1489c7002..3e116e3df 100644 --- a/src/core/hle/kernel/event.cpp +++ b/src/core/hle/kernel/event.cpp @@ -22,6 +22,11 @@ SharedPtr<Event> Event::Create(ResetType reset_type, std::string name) { evt->reset_type = reset_type; evt->name = std::move(name); + if (reset_type == ResetType::Pulse) { + LOG_ERROR(Kernel, "Unimplemented event reset type Pulse"); + UNIMPLEMENTED(); + } + return evt; } diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index a9f98223c..eac181f4e 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp @@ -31,6 +31,11 @@ SharedPtr<Timer> Timer::Create(ResetType reset_type, std::string name) { timer->interval_delay = 0; timer->callback_handle = timer_callback_handle_table.Create(timer).MoveFrom(); + if (reset_type == ResetType::Pulse) { + LOG_ERROR(Kernel, "Unimplemented timer reset type Pulse"); + UNIMPLEMENTED(); + } + return timer; } |