summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-10 07:04:36 +0200
committerbunnei <bunneidev@gmail.com>2021-06-10 07:04:36 +0200
commit2aa6a8d889e91cf999a9e95d18d06f455c337288 (patch)
treeb735ae978d72d01921769475842af4588885c82b /src
parenthle: kernel: KServerSession: Fix client disconnected. (diff)
downloadyuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar.gz
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar.bz2
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar.lz
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar.xz
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.tar.zst
yuzu-2aa6a8d889e91cf999a9e95d18d06f455c337288.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/service.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 78afd7c73..e078ac176 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -40,9 +40,11 @@ namespace SM {
class ServiceManager;
}
-static const int kMaxPortSize = 8; ///< Maximum size of a port name (8 characters)
-/// Arbitrary default number of maximum connections to an HLE service.
-static const u32 DefaultMaxSessions = 0x100;
+/// Default number of maximum connections to a server session.
+static constexpr u32 ServerSessionCountMax = 0x40;
+static_assert(ServerSessionCountMax == 0x40,
+ "ServerSessionCountMax isn't 0x40 somehow, this assert is a reminder that this will "
+ "break lots of things");
/**
* This is an non-templated base of ServiceFramework to reduce code bloat and compilation times, it
@@ -178,7 +180,7 @@ protected:
* connected to this service at the same time.
*/
explicit ServiceFramework(Core::System& system_, const char* service_name_,
- u32 max_sessions_ = DefaultMaxSessions)
+ u32 max_sessions_ = ServerSessionCountMax)
: ServiceFrameworkBase(system_, service_name_, max_sessions_, Invoker) {}
/// Registers handlers in the service.