diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-08-15 06:50:22 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-08-15 06:50:50 -0400 |
| commit | aac5792a2b02200a55efdf13090ae57005ff3346 (patch) | |
| tree | 6e7f3e623669f326bb9dc9eb1c305674bd5d125d /src/core/hle/kernel/server_session.cpp | |
| parent | 301baaa94206e3b185f259e6c44bdc8e6c0a3879 (diff) | |
kernel/server_session: Add IsSession() member function
Allows querying the inverse of IsDomain() to make things more readable.
This will likely also be usable in the event of implementing
ConvertDomainToSession().
Diffstat (limited to 'src/core/hle/kernel/server_session.cpp')
| -rw-r--r-- | src/core/hle/kernel/server_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp index d09ca5992..51a1ec160 100644 --- a/src/core/hle/kernel/server_session.cpp +++ b/src/core/hle/kernel/server_session.cpp @@ -152,7 +152,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) { // Handle scenario when ConvertToDomain command was issued, as we must do the conversion at the // end of the command such that only commands following this one are handled as domains if (convert_to_domain) { - ASSERT_MSG(domain_request_handlers.empty(), "already a domain"); + ASSERT_MSG(IsSession(), "ServerSession is already a domain instance."); domain_request_handlers = {hle_handler}; convert_to_domain = false; } |
