summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apt
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-12-05 19:44:41 +0100
committerSubv <subv2112@gmail.com>2016-12-05 19:44:41 +0100
commit61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec (patch)
treeb32d013cfd1758df64f324f850b2c0af470be255 /src/core/hle/service/apt
parentSplit SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl. (diff)
downloadyuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar.gz
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar.bz2
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar.lz
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar.xz
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.tar.zst
yuzu-61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/apt/apt.h2
-rw-r--r--src/core/hle/service/apt/apt_a.cpp2
-rw-r--r--src/core/hle/service/apt/apt_s.cpp2
-rw-r--r--src/core/hle/service/apt/apt_u.cpp2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/apt/apt.h b/src/core/hle/service/apt/apt.h
index 44dbd8757..9bc6327ed 100644
--- a/src/core/hle/service/apt/apt.h
+++ b/src/core/hle/service/apt/apt.h
@@ -14,6 +14,8 @@ class Interface;
namespace APT {
+static const u32 MaxAPTSessions = 2; ///< Each APT service can only have up to 2 sessions connected at the same time.
+
/// Holds information about the parameters used in Send/Glance/ReceiveParameter
struct MessageParameter {
u32 sender_id = 0;
diff --git a/src/core/hle/service/apt/apt_a.cpp b/src/core/hle/service/apt/apt_a.cpp
index a7a0c8a41..7f37a7f54 100644
--- a/src/core/hle/service/apt/apt_a.cpp
+++ b/src/core/hle/service/apt/apt_a.cpp
@@ -39,7 +39,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x01020000, CheckNew3DS, "CheckNew3DS"},
};
-APT_A_Interface::APT_A_Interface() {
+APT_A_Interface::APT_A_Interface() : Interface(MaxAPTSessions) {
Register(FunctionTable);
}
diff --git a/src/core/hle/service/apt/apt_s.cpp b/src/core/hle/service/apt/apt_s.cpp
index c4556a5de..933f26e60 100644
--- a/src/core/hle/service/apt/apt_s.cpp
+++ b/src/core/hle/service/apt/apt_s.cpp
@@ -99,7 +99,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x01020000, CheckNew3DS, "CheckNew3DS"},
};
-APT_S_Interface::APT_S_Interface() {
+APT_S_Interface::APT_S_Interface() : Interface(MaxAPTSessions) {
Register(FunctionTable);
}
diff --git a/src/core/hle/service/apt/apt_u.cpp b/src/core/hle/service/apt/apt_u.cpp
index a731c39f6..e06084a1e 100644
--- a/src/core/hle/service/apt/apt_u.cpp
+++ b/src/core/hle/service/apt/apt_u.cpp
@@ -99,7 +99,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x01020000, CheckNew3DS, "CheckNew3DS"},
};
-APT_U_Interface::APT_U_Interface() {
+APT_U_Interface::APT_U_Interface() : Interface(MaxAPTSessions) {
Register(FunctionTable);
}