diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-09 05:48:53 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-10 07:23:22 +0100 |
commit | 909f7eb3d2d54050af667e7638171c0cc50c8f90 (patch) | |
tree | 10483ede13ae58af40d874210d8dd46547f52d3c /src/core/hle/service/bcat/news/overwrite_event_holder.cpp | |
parent | service: bcat: Migrate and refractor service to new IPC (diff) | |
download | yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.gz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.bz2 yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.lz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.xz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.zst yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/bcat/news/overwrite_event_holder.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/bcat/news/overwrite_event_holder.cpp b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp new file mode 100644 index 000000000..4b06bfc5e --- /dev/null +++ b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "core/hle/service/bcat/news/overwrite_event_holder.h" +#include "core/hle/service/cmif_serialization.h" + +namespace Service::BCAT { + +IOverwriteEventHolder::IOverwriteEventHolder(Core::System& system_) + : ServiceFramework{system_, "IOverwriteEventHolder"}, service_context{system_, + "IOverwriteEventHolder"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, C<&IOverwriteEventHolder::Get>, "Get"}, + }; + // clang-format on + + RegisterHandlers(functions); + overwrite_event = service_context.CreateEvent("IOverwriteEventHolder::OverwriteEvent"); +} + +IOverwriteEventHolder::~IOverwriteEventHolder() = default; + +Result IOverwriteEventHolder::Get(OutCopyHandle<Kernel::KReadableEvent> out_event) { + LOG_INFO(Service_BCAT, "called"); + + *out_event = &overwrite_event->GetReadableEvent(); + R_SUCCEED(); +} + +} // namespace Service::BCAT |