kernel: Don't fail silently

This commit is contained in:
David Marcec
2020-04-29 14:53:53 +10:00
parent 8e64fb3225
commit b6538c3e7c
7 changed files with 51 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <algorithm>
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/hle/kernel/errors.h"
#include "core/hle/kernel/object.h"
#include "core/hle/kernel/readable_event.h"
@ -35,6 +36,8 @@ void ReadableEvent::Clear() {
ResultCode ReadableEvent::Reset() {
if (!is_signaled) {
LOG_ERROR(Kernel, "Handle is not signaled! object_id={}, object_type={}, object_name={}",
GetObjectId(), GetTypeName(), GetName());
return ERR_INVALID_STATE;
}