summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/session.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-21 00:16:45 +0100
committerbunnei <bunneidev@gmail.com>2015-01-22 02:47:49 +0100
commit15b6a4d9add6b260a2a1a84ab6228addced4f851 (patch)
treee9934863ebd6483cabae0f6c280fab7e34eee32e /src/core/hle/kernel/session.h
parentWaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual. (diff)
downloadyuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar.gz
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar.bz2
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar.lz
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar.xz
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.tar.zst
yuzu-15b6a4d9add6b260a2a1a84ab6228addced4f851.zip
Diffstat (limited to 'src/core/hle/kernel/session.h')
-rw-r--r--src/core/hle/kernel/session.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.h
index f0343d9b2..1788e4375 100644
--- a/src/core/hle/kernel/session.h
+++ b/src/core/hle/kernel/session.h
@@ -57,12 +57,12 @@ public:
// TODO(bunnei): These functions exist to satisfy a hardware test with a Session object
// passed into WaitSynchronization. Figure out the meaning of them.
- ResultVal<bool> ShouldWait() override {
- return MakeResult<bool>(true);
+ bool ShouldWait() override {
+ return true;
}
- ResultVal<bool> Acquire() override {
- return MakeResult<bool>(false);
+ void Acquire() override {
+ _assert_msg_(Kernel, !ShouldWait(), "object unavailable!");
}
};