summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar german772021-04-24 10:26:30 -0500
committerGravatar german772021-04-24 10:50:25 -0500
commita02c4686c3db3babe75d0d26636bfef09b36db2b (patch)
tree034cc6429ee3bcbad532429c6ef36db4dadb60a1
parentMerge pull request #6224 from Morph1984/hid_InitializeSevenSixAxisSensor (diff)
downloadyuzu-a02c4686c3db3babe75d0d26636bfef09b36db2b.tar.gz
yuzu-a02c4686c3db3babe75d0d26636bfef09b36db2b.tar.xz
yuzu-a02c4686c3db3babe75d0d26636bfef09b36db2b.zip
glue: Add ectx:aw placeholder
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/hle/service/glue/ectx.cpp22
-rw-r--r--src/core/hle/service/glue/ectx.h21
-rw-r--r--src/core/hle/service/glue/glue.cpp4
4 files changed, 49 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 532e418b0..04cf3f5b9 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -377,6 +377,8 @@ add_library(core STATIC
377 hle/service/glue/arp.h 377 hle/service/glue/arp.h
378 hle/service/glue/bgtc.cpp 378 hle/service/glue/bgtc.cpp
379 hle/service/glue/bgtc.h 379 hle/service/glue/bgtc.h
380 hle/service/glue/ectx.cpp
381 hle/service/glue/ectx.h
380 hle/service/glue/errors.h 382 hle/service/glue/errors.h
381 hle/service/glue/glue.cpp 383 hle/service/glue/glue.cpp
382 hle/service/glue/glue.h 384 hle/service/glue/glue.h
diff --git a/src/core/hle/service/glue/ectx.cpp b/src/core/hle/service/glue/ectx.cpp
new file mode 100644
index 000000000..249c6f003
--- /dev/null
+++ b/src/core/hle/service/glue/ectx.cpp
@@ -0,0 +1,22 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include "core/hle/service/glue/ectx.h"
6
7namespace Service::Glue {
8
9ECTX_AW::ECTX_AW(Core::System& system_) : ServiceFramework{system_, "ectx:aw"} {
10 // clang-format off
11 static const FunctionInfo functions[] = {
12 {0, nullptr, "CreateContextRegistrar"},
13 {1, nullptr, "CommitContext"},
14 };
15 // clang-format on
16
17 RegisterHandlers(functions);
18}
19
20ECTX_AW::~ECTX_AW() = default;
21
22} // namespace Service::Glue
diff --git a/src/core/hle/service/glue/ectx.h b/src/core/hle/service/glue/ectx.h
new file mode 100644
index 000000000..b275e808a
--- /dev/null
+++ b/src/core/hle/service/glue/ectx.h
@@ -0,0 +1,21 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "core/hle/service/service.h"
8
9namespace Core {
10class System;
11}
12
13namespace Service::Glue {
14
15class ECTX_AW final : public ServiceFramework<ECTX_AW> {
16public:
17 explicit ECTX_AW(Core::System& system_);
18 ~ECTX_AW() override;
19};
20
21} // namespace Service::Glue
diff --git a/src/core/hle/service/glue/glue.cpp b/src/core/hle/service/glue/glue.cpp
index 4eafbe5fa..a08dc9758 100644
--- a/src/core/hle/service/glue/glue.cpp
+++ b/src/core/hle/service/glue/glue.cpp
@@ -6,6 +6,7 @@
6#include "core/core.h" 6#include "core/core.h"
7#include "core/hle/service/glue/arp.h" 7#include "core/hle/service/glue/arp.h"
8#include "core/hle/service/glue/bgtc.h" 8#include "core/hle/service/glue/bgtc.h"
9#include "core/hle/service/glue/ectx.h"
9#include "core/hle/service/glue/glue.h" 10#include "core/hle/service/glue/glue.h"
10 11
11namespace Service::Glue { 12namespace Service::Glue {
@@ -20,6 +21,9 @@ void InstallInterfaces(Core::System& system) {
20 // BackGround Task Controller 21 // BackGround Task Controller
21 std::make_shared<BGTC_T>(system)->InstallAsService(system.ServiceManager()); 22 std::make_shared<BGTC_T>(system)->InstallAsService(system.ServiceManager());
22 std::make_shared<BGTC_SC>(system)->InstallAsService(system.ServiceManager()); 23 std::make_shared<BGTC_SC>(system)->InstallAsService(system.ServiceManager());
24
25 // Error Context
26 std::make_shared<ECTX_AW>(system)->InstallAsService(system.ServiceManager());
23} 27}
24 28
25} // namespace Service::Glue 29} // namespace Service::Glue