summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-07 03:55:16 +0100
committerGitHub <noreply@github.com>2019-03-07 03:55:16 +0100
commited0bdcc6385f8984b07780a7b2071696c4829466 (patch)
tree24f3df88cf878349c0d7b4c58a25d702789de057 /src/core/hle/kernel
parentMerge pull request #2190 from lioncash/ogl-global (diff)
parentcore/hle/ipc: Remove unnecessary includes (diff)
downloadyuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar.gz
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar.bz2
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar.lz
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar.xz
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.tar.zst
yuzu-ed0bdcc6385f8984b07780a7b2071696c4829466.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/hle_ipc.h10
-rw-r--r--src/core/hle/kernel/svc.cpp1
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index cb1c5aff3..0107acea4 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -15,6 +15,8 @@
#include "core/hle/ipc.h"
#include "core/hle/kernel/object.h"
+union ResultCode;
+
namespace Service {
class ServiceFrameworkBase;
}
@@ -208,14 +210,12 @@ public:
template <typename T>
SharedPtr<T> GetCopyObject(std::size_t index) {
- ASSERT(index < copy_objects.size());
- return DynamicObjectCast<T>(copy_objects[index]);
+ return DynamicObjectCast<T>(copy_objects.at(index));
}
template <typename T>
SharedPtr<T> GetMoveObject(std::size_t index) {
- ASSERT(index < move_objects.size());
- return DynamicObjectCast<T>(move_objects[index]);
+ return DynamicObjectCast<T>(move_objects.at(index));
}
void AddMoveObject(SharedPtr<Object> object) {
@@ -232,7 +232,7 @@ public:
template <typename T>
std::shared_ptr<T> GetDomainRequestHandler(std::size_t index) const {
- return std::static_pointer_cast<T>(domain_request_handlers[index]);
+ return std::static_pointer_cast<T>(domain_request_handlers.at(index));
}
void SetDomainRequestHandlers(
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 75b88a333..7f5c0cc86 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -20,6 +20,7 @@
#include "core/hle/kernel/address_arbiter.h"
#include "core/hle/kernel/client_port.h"
#include "core/hle/kernel/client_session.h"
+#include "core/hle/kernel/errors.h"
#include "core/hle/kernel/handle_table.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/mutex.h"