diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-31 14:53:13 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-31 17:03:08 +0200 |
commit | 369f6e58aa30fe48e8b1fc484192bfc5223b9ec5 (patch) | |
tree | 7c01a5ea620eb6ac49f7b3121d7d34b1a56393bc /src/core/hle/kernel/object_address_table.cpp | |
parent | Merge pull request #855 from bunnei/cubeb (diff) | |
download | yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar.gz yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar.bz2 yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar.lz yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar.xz yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.tar.zst yuzu-369f6e58aa30fe48e8b1fc484192bfc5223b9ec5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/object_address_table.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/core/hle/kernel/object_address_table.cpp b/src/core/hle/kernel/object_address_table.cpp deleted file mode 100644 index ca8a833a1..000000000 --- a/src/core/hle/kernel/object_address_table.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2018 yuzu emulator team -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include <utility> - -#include "common/assert.h" -#include "core/hle/kernel/object_address_table.h" - -namespace Kernel { - -ObjectAddressTable g_object_address_table; - -void ObjectAddressTable::Insert(VAddr addr, SharedPtr<Object> obj) { - ASSERT_MSG(objects.find(addr) == objects.end(), "Object already exists with addr=0x{:X}", addr); - objects[addr] = std::move(obj); -} - -void ObjectAddressTable::Close(VAddr addr) { - ASSERT_MSG(objects.find(addr) != objects.end(), "Object does not exist with addr=0x{:X}", addr); - objects.erase(addr); -} - -SharedPtr<Object> ObjectAddressTable::GetGeneric(VAddr addr) const { - auto iter = objects.find(addr); - if (iter != objects.end()) { - return iter->second; - } - return {}; -} - -void ObjectAddressTable::Clear() { - objects.clear(); -} - -} // namespace Kernel |