summaryrefslogtreecommitdiffstats
path: root/src/hid_core/resource_manager.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-22 18:58:52 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-24 00:49:02 +0100
commitd08f201e0c0e6d36176983f9673a89550705952b (patch)
tree93229a986e75f1962d0665dd05a8d2813a8c9ce7 /src/hid_core/resource_manager.cpp
parentMerge pull request #13141 from liamwhite/swap (diff)
downloadyuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar.gz
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar.bz2
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar.lz
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar.xz
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.tar.zst
yuzu-d08f201e0c0e6d36176983f9673a89550705952b.zip
Diffstat (limited to 'src/hid_core/resource_manager.cpp')
-rw-r--r--src/hid_core/resource_manager.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/hid_core/resource_manager.cpp b/src/hid_core/resource_manager.cpp
index 01261ba97..62fec03b1 100644
--- a/src/hid_core/resource_manager.cpp
+++ b/src/hid_core/resource_manager.cpp
@@ -4,7 +4,6 @@
#include "common/logging/log.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/hle/kernel/k_shared_memory.h"
#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/set/system_settings_server.h"
#include "core/hle/service/sm/sm.h"
@@ -501,29 +500,4 @@ void ResourceManager::UpdateMotion(std::chrono::nanoseconds ns_late) {
console_six_axis->OnUpdate(core_timing);
}
-IAppletResource::IAppletResource(Core::System& system_, std::shared_ptr<ResourceManager> resource,
- u64 applet_resource_user_id)
- : ServiceFramework{system_, "IAppletResource"}, aruid{applet_resource_user_id},
- resource_manager{resource} {
- static const FunctionInfo functions[] = {
- {0, &IAppletResource::GetSharedMemoryHandle, "GetSharedMemoryHandle"},
- };
- RegisterHandlers(functions);
-}
-
-IAppletResource::~IAppletResource() {
- resource_manager->FreeAppletResourceId(aruid);
-}
-
-void IAppletResource::GetSharedMemoryHandle(HLERequestContext& ctx) {
- Kernel::KSharedMemory* handle;
- const auto result = resource_manager->GetSharedMemoryHandle(&handle, aruid);
-
- LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}, result=0x{:X}", aruid, result.raw);
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(result);
- rb.PushCopyObjects(handle);
-}
-
} // namespace Service::HID