VERY experimental Nintendo Switch 2 emulator
C++
Service: Move SRV interface to a new sm/ subdirectory
Yuri Kunde Schlesnerc17330e05f50
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex 51ee80bc48..0e2aacde7d 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -156,8 +156,8 @@ set(SRCShle/service/qtm/qtm_sp.cpphle/service/qtm/qtm_u.cpphle/service/service.cpp+ hle/service/sm/srv.cpphle/service/soc_u.cpp- hle/service/srv.cpphle/service/ssl_c.cpphle/service/y2r_u.cpphle/shared_page.cpp@@ -352,8 +352,8 @@ set(HEADERShle/service/qtm/qtm_sp.hhle/service/qtm/qtm_u.hhle/service/service.h+ hle/service/sm/srv.hhle/service/soc_u.h- hle/service/srv.hhle/service/ssl_c.hhle/service/y2r_u.hhle/shared_page.hdiff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex 8f7c97d541..3a821871fb 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -38,8 +38,8 @@#include "core/hle/service/ptm/ptm.h"#include "core/hle/service/qtm/qtm.h"#include "core/hle/service/service.h"+#include "core/hle/service/sm/srv.h"#include "core/hle/service/soc_u.h"-#include "core/hle/service/srv.h"#include "core/hle/service/ssl_c.h"#include "core/hle/service/y2r_u.h"@@ -126,7 +126,7 @@ void AddService(Interface* interface_) {/// Initialize ServiceManagervoid Init() {- AddNamedPort(new SRV::SRV);+ AddNamedPort(new SM::SRV);AddNamedPort(new ERR::ERR_F);FS::ArchiveInit();diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/sm/srv.cppsimilarity index 98%rename from src/core/hle/service/srv.cpprename to src/core/hle/service/sm/srv.cppindex 130c9d25e4..9d7a83597a 100644--- a/src/core/hle/service/srv.cpp+++ b/src/core/hle/service/sm/srv.cpp@@ -9,10 +9,10 @@#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"+#include "core/hle/service/sm/srv.h"namespace Service {-namespace SRV {+namespace SM {static Kernel::SharedPtr<Kernel::Event> event_handle;@@ -184,5 +184,5 @@ SRV::~SRV() {event_handle = nullptr;}-} // namespace SRV+} // namespace SM} // namespace Servicediff --git a/src/core/hle/service/srv.h b/src/core/hle/service/sm/srv.hsimilarity index 89%rename from src/core/hle/service/srv.hrename to src/core/hle/service/sm/srv.hindex d3a9de879a..4196ca1e25 100644--- a/src/core/hle/service/srv.h+++ b/src/core/hle/service/sm/srv.h@@ -4,10 +4,11 @@#pragma once+#include <string>#include "core/hle/service/service.h"namespace Service {-namespace SRV {+namespace SM {/// Interface to "srv:" serviceclass SRV final : public Interface {@@ -20,5 +21,5 @@ public:}};-} // namespace SRV+} // namespace SM} // namespace Service