mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-27 12:05:56 +02:00
[service/ro] Fix too many plugin.nro not being loaded for SSBU (#3982)
Good fix or absolute trash? For me it seems like an OK balance, better would be fully dynamic; but I believe 256 is a reasonable limit? Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3982 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Maufeat <sahyno1996@gmail.com>
This commit is contained in:
parent
950e0f82fb
commit
8e9513cb5f
1 changed files with 7 additions and 4 deletions
|
|
@ -21,10 +21,13 @@ namespace Service::RO {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Convenience definitions.
|
// Atmosphere defines as follows:
|
||||||
constexpr size_t MaxSessions = 0x3;
|
// Sessions = 0x03, NrrInfos = 0x40, NroInfos = 0x40
|
||||||
constexpr size_t MaxNrrInfos = 0x40;
|
// This may not be enough for some mods (plugin.nro dependant games) like SSBU
|
||||||
constexpr size_t MaxNroInfos = 0x40;
|
// Suppose someone loads like 64 plugins of these, now what?
|
||||||
|
constexpr size_t MaxSessions = 0x03; // No change
|
||||||
|
constexpr size_t MaxNrrInfos = 0x100; // Up to 256 NRRs
|
||||||
|
constexpr size_t MaxNroInfos = 0x100; // Up to 256 NROs
|
||||||
|
|
||||||
constexpr u64 InvalidProcessId = 0xffffffffffffffffULL;
|
constexpr u64 InvalidProcessId = 0xffffffffffffffffULL;
|
||||||
constexpr u64 InvalidContextId = 0xffffffffffffffffULL;
|
constexpr u64 InvalidContextId = 0xffffffffffffffffULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue