summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-22 00:19:48 +0100
committerLiam <byteslice@airmail.cc>2024-02-22 00:19:48 +0100
commit868937083097ad5ea2ce5c2b209762064b9c9381 (patch)
tree9afd20797018f313e7cd308172ba740cbe84439f /src
parentolsc: rewrite IOlscServiceForApplication (diff)
downloadyuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar.gz
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar.bz2
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar.lz
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar.xz
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.tar.zst
yuzu-868937083097ad5ea2ce5c2b209762064b9c9381.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/olsc/native_handle_holder.cpp9
-rw-r--r--src/core/hle/service/olsc/native_handle_holder.h8
2 files changed, 16 insertions, 1 deletions
diff --git a/src/core/hle/service/olsc/native_handle_holder.cpp b/src/core/hle/service/olsc/native_handle_holder.cpp
index ac5af5497..3cb5d7b11 100644
--- a/src/core/hle/service/olsc/native_handle_holder.cpp
+++ b/src/core/hle/service/olsc/native_handle_holder.cpp
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/hle/service/cmif_serialization.h"
#include "core/hle/service/olsc/native_handle_holder.h"
namespace Service::OLSC {
@@ -9,7 +10,7 @@ INativeHandleHolder::INativeHandleHolder(Core::System& system_)
: ServiceFramework{system_, "INativeHandleHolder"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, nullptr, "GetNativeHandle"},
+ {0, D<&INativeHandleHolder::GetNativeHandle>, "GetNativeHandle"},
};
// clang-format on
@@ -18,4 +19,10 @@ INativeHandleHolder::INativeHandleHolder(Core::System& system_)
INativeHandleHolder::~INativeHandleHolder() = default;
+Result INativeHandleHolder::GetNativeHandle(OutCopyHandle<Kernel::KReadableEvent> out_event) {
+ LOG_WARNING(Service_OLSC, "(STUBBED) called");
+ *out_event = nullptr;
+ R_SUCCEED();
+}
+
} // namespace Service::OLSC
diff --git a/src/core/hle/service/olsc/native_handle_holder.h b/src/core/hle/service/olsc/native_handle_holder.h
index bb8973a1d..a44754c20 100644
--- a/src/core/hle/service/olsc/native_handle_holder.h
+++ b/src/core/hle/service/olsc/native_handle_holder.h
@@ -1,14 +1,22 @@
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/hle/service/cmif_types.h"
#include "core/hle/service/service.h"
+namespace Kernel {
+class KReadableEvent;
+}
+
namespace Service::OLSC {
class INativeHandleHolder final : public ServiceFramework<INativeHandleHolder> {
public:
explicit INativeHandleHolder(Core::System& system_);
~INativeHandleHolder() override;
+
+private:
+ Result GetNativeHandle(OutCopyHandle<Kernel::KReadableEvent> out_event);
};
} // namespace Service::OLSC