summaryrefslogtreecommitdiff
path: root/src/core/hle/service/service.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-06-10 11:34:41 -0700
committerGravatar bunnei2021-06-10 11:34:41 -0700
commit781c85b951a8ac8de8f876429a56ae5c375e4149 (patch)
treecb1c3905b5cbcc47aa31100e4bc484bb79252213 /src/core/hle/service/service.h
parenthle: service: Increase arbitrary max sessions limit. (diff)
downloadyuzu-781c85b951a8ac8de8f876429a56ae5c375e4149.tar.gz
yuzu-781c85b951a8ac8de8f876429a56ae5c375e4149.tar.xz
yuzu-781c85b951a8ac8de8f876429a56ae5c375e4149.zip
hle: service: sm: Remove redundant session reservation, etc.
- We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield.
Diffstat (limited to 'src/core/hle/service/service.h')
-rw-r--r--src/core/hle/service/service.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 6c5bf3a95..e078ac176 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -41,7 +41,10 @@ class ServiceManager;
41} 41}
42 42
43/// Default number of maximum connections to a server session. 43/// Default number of maximum connections to a server session.
44static constexpr u32 ServerSessionCountMax = 0x10000; 44static constexpr u32 ServerSessionCountMax = 0x40;
45static_assert(ServerSessionCountMax == 0x40,
46 "ServerSessionCountMax isn't 0x40 somehow, this assert is a reminder that this will "
47 "break lots of things");
45 48
46/** 49/**
47 * This is an non-templated base of ServiceFramework to reduce code bloat and compilation times, it 50 * This is an non-templated base of ServiceFramework to reduce code bloat and compilation times, it