mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 17:00:07 +00:00
hle: service: Use correct size for ServerSessionCountMax.
This commit is contained in:
parent
b2971b48ed
commit
2aa6a8d889
@ -40,9 +40,11 @@ namespace SM {
|
|||||||
class ServiceManager;
|
class ServiceManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const int kMaxPortSize = 8; ///< Maximum size of a port name (8 characters)
|
/// Default number of maximum connections to a server session.
|
||||||
/// Arbitrary default number of maximum connections to an HLE service.
|
static constexpr u32 ServerSessionCountMax = 0x40;
|
||||||
static const u32 DefaultMaxSessions = 0x100;
|
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
|
* 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.
|
* connected to this service at the same time.
|
||||||
*/
|
*/
|
||||||
explicit ServiceFramework(Core::System& system_, const char* service_name_,
|
explicit ServiceFramework(Core::System& system_, const char* service_name_,
|
||||||
u32 max_sessions_ = DefaultMaxSessions)
|
u32 max_sessions_ = ServerSessionCountMax)
|
||||||
: ServiceFrameworkBase(system_, service_name_, max_sessions_, Invoker) {}
|
: ServiceFrameworkBase(system_, service_name_, max_sessions_, Invoker) {}
|
||||||
|
|
||||||
/// Registers handlers in the service.
|
/// Registers handlers in the service.
|
||||||
|
Loading…
Reference in New Issue
Block a user