VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #2249 from Subv/sessions_v3
Yuri Kunde Schlesnerc99b5e312268
diff --cc src/core/hle/service/apt/apt_a.cppindex 6e35e1d297,7f37a7f544..62dc2d61dd--- a/src/core/hle/service/apt/apt_a.cpp+++ b/src/core/hle/service/apt/apt_a.cpp@@@ -90,19 -33,13 +90,19 @@@ const Interface::FunctionInfo FunctionT{0x004F0080, SetAppCpuTimeLimit, "SetAppCpuTimeLimit"},{0x00500040, GetAppCpuTimeLimit, "GetAppCpuTimeLimit"},{0x00510080, GetStartupArgument, "GetStartupArgument"},+ {0x00520104, nullptr, "Wrap1"},+ {0x00530104, nullptr, "Unwrap1"},{0x00550040, SetScreenCapPostPermission, "SetScreenCapPostPermission"},{0x00560000, GetScreenCapPostPermission, "GetScreenCapPostPermission"},+ {0x00570044, nullptr, "WakeupApplication2"},+ {0x00580002, nullptr, "GetProgramID"},{0x01010000, CheckNew3DSApp, "CheckNew3DSApp"},{0x01020000, CheckNew3DS, "CheckNew3DS"},+ {0x01040000, nullptr, "IsStandardMemoryLayout"},+ {0x01050100, nullptr, "IsTitleAllowed"},};- APT_A_Interface::APT_A_Interface() {+ APT_A_Interface::APT_A_Interface() : Interface(MaxAPTSessions) {Register(FunctionTable);}diff --cc src/core/hle/service/apt/apt_s.cppindex 84019e6e53,933f26e60a..effd23dce3--- a/src/core/hle/service/apt/apt_s.cpp+++ b/src/core/hle/service/apt/apt_s.cpp@@@ -98,11 -97,9 +98,11 @@@ const Interface::FunctionInfo FunctionT{0x00580002, nullptr, "GetProgramID"},{0x01010000, CheckNew3DSApp, "CheckNew3DSApp"},{0x01020000, CheckNew3DS, "CheckNew3DS"},+ {0x01040000, nullptr, "IsStandardMemoryLayout"},+ {0x01050100, nullptr, "IsTitleAllowed"},};- APT_S_Interface::APT_S_Interface() {+ APT_S_Interface::APT_S_Interface() : Interface(MaxAPTSessions) {Register(FunctionTable);}diff --cc src/core/hle/service/srv.cppindex f8df38c426,18d0a699d4..3bd787147e--- a/src/core/hle/service/srv.cpp+++ b/src/core/hle/service/srv.cpp@@@ -2,12 -2,18 +2,16 @@@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+ #include <tuple>+#include "common/common_types.h"#include "common/logging/log.h"+ #include "core/hle/kernel/client_session.h"#include "core/hle/kernel/event.h"+ #include "core/hle/kernel/server_session.h"#include "core/hle/service/srv.h"-////////////////////////////////////////////////////////////////////////////////////////////////////-// Namespace SRV-+namespace Service {namespace SRV {static Kernel::SharedPtr<Kernel::Event> event_handle;