diff options
| author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-10-29 13:50:55 +0000 |
|---|---|---|
| committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2024-01-24 04:26:55 +0000 |
| commit | e4915fb7d2077584a11a15141bc81d28ed2b0125 (patch) | |
| tree | 1783055dc2e98eaf9099e8e7b194b55f8f607747 /src/core/hle/service/psc/time/common.cpp | |
| parent | a560b9f5a26bdc49814930a0bec91d0ad6545942 (diff) | |
Rework time service to fix time passing offline.
Diffstat (limited to 'src/core/hle/service/psc/time/common.cpp')
| -rw-r--r-- | src/core/hle/service/psc/time/common.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/service/psc/time/common.cpp b/src/core/hle/service/psc/time/common.cpp new file mode 100644 index 000000000..a6d9f02ca --- /dev/null +++ b/src/core/hle/service/psc/time/common.cpp @@ -0,0 +1,16 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/core.h" +#include "core/hle/service/psc/time/common.h" + +namespace Service::PSC::Time { +OperationEvent::OperationEvent(Core::System& system) + : m_ctx{system, "Time:OperationEvent"}, m_event{ + m_ctx.CreateEvent("Time:OperationEvent:Event")} {} + +OperationEvent::~OperationEvent() { + m_ctx.CloseEvent(m_event); +} + +} // namespace Service::PSC::Time |
