summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_handle_table.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-03-17 06:22:38 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-03-18 05:28:25 +0100
commit8b7d571b66c913c2f0a9e2804c90392f34440983 (patch)
treeb5ea0a787bbb15a583d4a095daf6967ee0cff14b /src/core/hle/kernel/k_handle_table.cpp
parentMerge pull request #8026 from lat9nq/ext-mem-ini (diff)
downloadyuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar.gz
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar.bz2
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar.lz
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar.xz
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.tar.zst
yuzu-8b7d571b66c913c2f0a9e2804c90392f34440983.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_handle_table.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_handle_table.cpp b/src/core/hle/kernel/k_handle_table.cpp
index cf95f0852..db7512ee7 100644
--- a/src/core/hle/kernel/k_handle_table.cpp
+++ b/src/core/hle/kernel/k_handle_table.cpp
@@ -63,7 +63,7 @@ bool KHandleTable::Remove(Handle handle) {
return true;
}
-ResultCode KHandleTable::Add(Handle* out_handle, KAutoObject* obj, u16 type) {
+ResultCode KHandleTable::Add(Handle* out_handle, KAutoObject* obj) {
KScopedDisableDispatch dd(kernel);
KScopedSpinLock lk(m_lock);
@@ -75,7 +75,7 @@ ResultCode KHandleTable::Add(Handle* out_handle, KAutoObject* obj, u16 type) {
const auto linear_id = this->AllocateLinearId();
const auto index = this->AllocateEntry();
- m_entry_infos[index].info = {.linear_id = linear_id, .type = type};
+ m_entry_infos[index].linear_id = linear_id;
m_objects[index] = obj;
obj->Open();
@@ -116,7 +116,7 @@ void KHandleTable::Unreserve(Handle handle) {
}
}
-void KHandleTable::Register(Handle handle, KAutoObject* obj, u16 type) {
+void KHandleTable::Register(Handle handle, KAutoObject* obj) {
KScopedDisableDispatch dd(kernel);
KScopedSpinLock lk(m_lock);
@@ -132,7 +132,7 @@ void KHandleTable::Register(Handle handle, KAutoObject* obj, u16 type) {
// Set the entry.
ASSERT(m_objects[index] == nullptr);
- m_entry_infos[index].info = {.linear_id = static_cast<u16>(linear_id), .type = type};
+ m_entry_infos[index].linear_id = static_cast<u16>(linear_id);
m_objects[index] = obj;
obj->Open();