summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-04-19 21:41:44 -0400
committerGravatar Lioncash2018-04-19 22:20:28 -0400
commitccca5e7c2872d477cc7bef73ed141dc093b106ef (patch)
tree17f5db413993ed4a6f1fec0ac27fb20b44328459 /src
parentMerge pull request #356 from lioncash/shader (diff)
downloadyuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.gz
yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.xz
yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.zip
service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/acc/acc.cpp6
-rw-r--r--src/core/hle/service/acc/acc.h6
-rw-r--r--src/core/hle/service/acc/acc_aa.cpp6
-rw-r--r--src/core/hle/service/acc/acc_aa.h6
-rw-r--r--src/core/hle/service/acc/acc_su.cpp6
-rw-r--r--src/core/hle/service/acc/acc_u0.cpp6
-rw-r--r--src/core/hle/service/acc/acc_u0.h6
-rw-r--r--src/core/hle/service/acc/acc_u1.cpp6
-rw-r--r--src/core/hle/service/acc/acc_u1.h6
-rw-r--r--src/core/hle/service/am/am.cpp6
-rw-r--r--src/core/hle/service/am/applet_ae.cpp6
-rw-r--r--src/core/hle/service/am/applet_oe.cpp6
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp6
-rw-r--r--src/core/hle/service/aoc/aoc_u.h6
-rw-r--r--src/core/hle/service/apm/apm.cpp6
-rw-r--r--src/core/hle/service/apm/apm.h6
-rw-r--r--src/core/hle/service/apm/interface.cpp6
-rw-r--r--src/core/hle/service/apm/interface.h6
-rw-r--r--src/core/hle/service/audio/audin_u.cpp6
-rw-r--r--src/core/hle/service/audio/audin_u.h6
-rw-r--r--src/core/hle/service/audio/audio.cpp6
-rw-r--r--src/core/hle/service/audio/audio.h6
-rw-r--r--src/core/hle/service/audio/audout_u.cpp6
-rw-r--r--src/core/hle/service/audio/audout_u.h6
-rw-r--r--src/core/hle/service/audio/audrec_u.cpp6
-rw-r--r--src/core/hle/service/audio/audrec_u.h6
-rw-r--r--src/core/hle/service/audio/audren_u.cpp6
-rw-r--r--src/core/hle/service/audio/audren_u.h6
-rw-r--r--src/core/hle/service/audio/codecctl.cpp6
-rw-r--r--src/core/hle/service/audio/codecctl.h6
-rw-r--r--src/core/hle/service/fatal/fatal.cpp6
-rw-r--r--src/core/hle/service/fatal/fatal.h6
-rw-r--r--src/core/hle/service/fatal/fatal_p.cpp6
-rw-r--r--src/core/hle/service/fatal/fatal_p.h6
-rw-r--r--src/core/hle/service/fatal/fatal_u.cpp6
-rw-r--r--src/core/hle/service/fatal/fatal_u.h6
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp6
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp6
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h6
-rw-r--r--src/core/hle/service/friend/friend.cpp6
-rw-r--r--src/core/hle/service/friend/friend.h6
-rw-r--r--src/core/hle/service/friend/friend_a.cpp6
-rw-r--r--src/core/hle/service/friend/friend_a.h6
-rw-r--r--src/core/hle/service/friend/friend_u.cpp6
-rw-r--r--src/core/hle/service/friend/friend_u.h6
-rw-r--r--src/core/hle/service/hid/hid.cpp6
-rw-r--r--src/core/hle/service/hid/hid.h6
-rw-r--r--src/core/hle/service/lm/lm.cpp6
-rw-r--r--src/core/hle/service/lm/lm.h6
-rw-r--r--src/core/hle/service/nfp/nfp.cpp6
-rw-r--r--src/core/hle/service/nfp/nfp.h6
-rw-r--r--src/core/hle/service/nfp/nfp_user.cpp6
-rw-r--r--src/core/hle/service/nfp/nfp_user.h6
-rw-r--r--src/core/hle/service/nifm/nifm.cpp6
-rw-r--r--src/core/hle/service/nifm/nifm.h6
-rw-r--r--src/core/hle/service/nifm/nifm_a.cpp6
-rw-r--r--src/core/hle/service/nifm/nifm_a.h6
-rw-r--r--src/core/hle/service/nifm/nifm_s.cpp6
-rw-r--r--src/core/hle/service/nifm/nifm_s.h6
-rw-r--r--src/core/hle/service/nifm/nifm_u.cpp6
-rw-r--r--src/core/hle/service/nifm/nifm_u.h6
-rw-r--r--src/core/hle/service/ns/ns.cpp6
-rw-r--r--src/core/hle/service/ns/ns.h6
-rw-r--r--src/core/hle/service/ns/pl_u.cpp6
-rw-r--r--src/core/hle/service/ns/pl_u.h6
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdevice.h8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.h8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.h8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h9
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.h8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.cpp8
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.h8
-rw-r--r--src/core/hle/service/nvdrv/interface.cpp6
-rw-r--r--src/core/hle/service/nvdrv/interface.h6
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.cpp6
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.h6
-rw-r--r--src/core/hle/service/nvdrv/nvmemp.cpp6
-rw-r--r--src/core/hle/service/nvdrv/nvmemp.h6
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp6
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.h6
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp6
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h6
-rw-r--r--src/core/hle/service/pctl/pctl.cpp6
-rw-r--r--src/core/hle/service/pctl/pctl.h6
-rw-r--r--src/core/hle/service/pctl/pctl_a.cpp6
-rw-r--r--src/core/hle/service/pctl/pctl_a.h6
-rw-r--r--src/core/hle/service/set/set.cpp6
-rw-r--r--src/core/hle/service/set/set.h6
-rw-r--r--src/core/hle/service/set/set_cal.cpp6
-rw-r--r--src/core/hle/service/set/set_cal.h6
-rw-r--r--src/core/hle/service/set/set_fd.cpp6
-rw-r--r--src/core/hle/service/set/set_fd.h6
-rw-r--r--src/core/hle/service/set/set_sys.cpp6
-rw-r--r--src/core/hle/service/set/set_sys.h6
-rw-r--r--src/core/hle/service/set/settings.cpp6
-rw-r--r--src/core/hle/service/set/settings.h6
-rw-r--r--src/core/hle/service/sm/controller.cpp6
-rw-r--r--src/core/hle/service/sm/controller.h6
-rw-r--r--src/core/hle/service/sm/sm.cpp6
-rw-r--r--src/core/hle/service/sm/sm.h6
-rw-r--r--src/core/hle/service/sockets/bsd.cpp6
-rw-r--r--src/core/hle/service/sockets/bsd.h6
-rw-r--r--src/core/hle/service/sockets/nsd.cpp6
-rw-r--r--src/core/hle/service/sockets/nsd.h6
-rw-r--r--src/core/hle/service/sockets/sfdnsres.cpp6
-rw-r--r--src/core/hle/service/sockets/sfdnsres.h6
-rw-r--r--src/core/hle/service/sockets/sockets.cpp6
-rw-r--r--src/core/hle/service/sockets/sockets.h6
-rw-r--r--src/core/hle/service/spl/csrng.cpp6
-rw-r--r--src/core/hle/service/spl/csrng.h6
-rw-r--r--src/core/hle/service/spl/module.cpp6
-rw-r--r--src/core/hle/service/spl/module.h6
-rw-r--r--src/core/hle/service/spl/spl.cpp6
-rw-r--r--src/core/hle/service/spl/spl.h6
-rw-r--r--src/core/hle/service/ssl/ssl.cpp6
-rw-r--r--src/core/hle/service/ssl/ssl.h6
-rw-r--r--src/core/hle/service/time/time.cpp6
-rw-r--r--src/core/hle/service/time/time.h6
-rw-r--r--src/core/hle/service/time/time_s.cpp6
-rw-r--r--src/core/hle/service/time/time_s.h6
-rw-r--r--src/core/hle/service/time/time_u.cpp6
-rw-r--r--src/core/hle/service/time/time_u.h6
-rw-r--r--src/core/hle/service/vi/vi.cpp6
-rw-r--r--src/core/hle/service/vi/vi.h6
-rw-r--r--src/core/hle/service/vi/vi_m.cpp6
-rw-r--r--src/core/hle/service/vi/vi_m.h6
-rw-r--r--src/core/hle/service/vi/vi_s.cpp6
-rw-r--r--src/core/hle/service/vi/vi_s.h6
-rw-r--r--src/core/hle/service/vi/vi_u.cpp6
-rw-r--r--src/core/hle/service/vi/vi_u.h6
136 files changed, 273 insertions, 570 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 949bf06b3..6bafb2dce 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -10,8 +10,7 @@
10#include "core/hle/service/acc/acc_u0.h" 10#include "core/hle/service/acc/acc_u0.h"
11#include "core/hle/service/acc/acc_u1.h" 11#include "core/hle/service/acc/acc_u1.h"
12 12
13namespace Service { 13namespace Service::Account {
14namespace Account {
15 14
16// TODO: RE this structure 15// TODO: RE this structure
17struct UserData { 16struct UserData {
@@ -148,5 +147,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
148 std::make_shared<ACC_U1>(module)->InstallAsService(service_manager); 147 std::make_shared<ACC_U1>(module)->InstallAsService(service_manager);
149} 148}
150 149
151} // namespace Account 150} // namespace Service::Account
152} // namespace Service
diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h
index 2d2f57b7d..58f8d260c 100644
--- a/src/core/hle/service/acc/acc.h
+++ b/src/core/hle/service/acc/acc.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Account {
10namespace Account {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -31,5 +30,4 @@ public:
31/// Registers all ACC services with the specified service manager. 30/// Registers all ACC services with the specified service manager.
32void InstallInterfaces(SM::ServiceManager& service_manager); 31void InstallInterfaces(SM::ServiceManager& service_manager);
33 32
34} // namespace Account 33} // namespace Service::Account
35} // namespace Service
diff --git a/src/core/hle/service/acc/acc_aa.cpp b/src/core/hle/service/acc/acc_aa.cpp
index 76deaa07f..280b3e464 100644
--- a/src/core/hle/service/acc/acc_aa.cpp
+++ b/src/core/hle/service/acc/acc_aa.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/acc/acc_aa.h" 5#include "core/hle/service/acc/acc_aa.h"
6 6
7namespace Service { 7namespace Service::Account {
8namespace Account {
9 8
10ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:aa") { 9ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:aa") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -18,5 +17,4 @@ ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
18 RegisterHandlers(functions); 17 RegisterHandlers(functions);
19} 18}
20 19
21} // namespace Account 20} // namespace Service::Account
22} // namespace Service
diff --git a/src/core/hle/service/acc/acc_aa.h b/src/core/hle/service/acc/acc_aa.h
index 5069c6890..796f7ef85 100644
--- a/src/core/hle/service/acc/acc_aa.h
+++ b/src/core/hle/service/acc/acc_aa.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/acc/acc.h" 7#include "core/hle/service/acc/acc.h"
8 8
9namespace Service { 9namespace Service::Account {
10namespace Account {
11 10
12class ACC_AA final : public Module::Interface { 11class ACC_AA final : public Module::Interface {
13public: 12public:
14 explicit ACC_AA(std::shared_ptr<Module> module); 13 explicit ACC_AA(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Account 16} // namespace Service::Account
18} // namespace Service
diff --git a/src/core/hle/service/acc/acc_su.cpp b/src/core/hle/service/acc/acc_su.cpp
index 538f9d9b1..9ffb40b22 100644
--- a/src/core/hle/service/acc/acc_su.cpp
+++ b/src/core/hle/service/acc/acc_su.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/acc/acc_su.h" 5#include "core/hle/service/acc/acc_su.h"
6 6
7namespace Service { 7namespace Service::Account {
8namespace Account {
9 8
10ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:su") { 9ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:su") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -51,5 +50,4 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
51 RegisterHandlers(functions); 50 RegisterHandlers(functions);
52} 51}
53 52
54} // namespace Account 53} // namespace Service::Account
55} // namespace Service
diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp
index 7b9c667ef..44e21ac09 100644
--- a/src/core/hle/service/acc/acc_u0.cpp
+++ b/src/core/hle/service/acc/acc_u0.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/acc/acc_u0.h" 5#include "core/hle/service/acc/acc_u0.h"
6 6
7namespace Service { 7namespace Service::Account {
8namespace Account {
9 8
10ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u0") { 9ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u0") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -31,5 +30,4 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
31 RegisterHandlers(functions); 30 RegisterHandlers(functions);
32} 31}
33 32
34} // namespace Account 33} // namespace Service::Account
35} // namespace Service
diff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.h
index d4f36e172..6ded596b3 100644
--- a/src/core/hle/service/acc/acc_u0.h
+++ b/src/core/hle/service/acc/acc_u0.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/acc/acc.h" 7#include "core/hle/service/acc/acc.h"
8 8
9namespace Service { 9namespace Service::Account {
10namespace Account {
11 10
12class ACC_U0 final : public Module::Interface { 11class ACC_U0 final : public Module::Interface {
13public: 12public:
14 explicit ACC_U0(std::shared_ptr<Module> module); 13 explicit ACC_U0(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Account 16} // namespace Service::Account
18} // namespace Service
diff --git a/src/core/hle/service/acc/acc_u1.cpp b/src/core/hle/service/acc/acc_u1.cpp
index dea353554..d101d4e0d 100644
--- a/src/core/hle/service/acc/acc_u1.cpp
+++ b/src/core/hle/service/acc/acc_u1.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/acc/acc_u1.h" 5#include "core/hle/service/acc/acc_u1.h"
6 6
7namespace Service { 7namespace Service::Account {
8namespace Account {
9 8
10ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u1") { 9ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u1") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -38,5 +37,4 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
38 RegisterHandlers(functions); 37 RegisterHandlers(functions);
39} 38}
40 39
41} // namespace Account 40} // namespace Service::Account
42} // namespace Service
diff --git a/src/core/hle/service/acc/acc_u1.h b/src/core/hle/service/acc/acc_u1.h
index 432d5b3e9..5e3e7659b 100644
--- a/src/core/hle/service/acc/acc_u1.h
+++ b/src/core/hle/service/acc/acc_u1.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/acc/acc.h" 7#include "core/hle/service/acc/acc.h"
8 8
9namespace Service { 9namespace Service::Account {
10namespace Account {
11 10
12class ACC_U1 final : public Module::Interface { 11class ACC_U1 final : public Module::Interface {
13public: 12public:
14 explicit ACC_U1(std::shared_ptr<Module> module); 13 explicit ACC_U1(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Account 16} // namespace Service::Account
18} // namespace Service
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index bfc431e88..f41a59afe 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -14,8 +14,7 @@
14#include "core/hle/service/nvflinger/nvflinger.h" 14#include "core/hle/service/nvflinger/nvflinger.h"
15#include "core/settings.h" 15#include "core/settings.h"
16 16
17namespace Service { 17namespace Service::AM {
18namespace AM {
19 18
20IWindowController::IWindowController() : ServiceFramework("IWindowController") { 19IWindowController::IWindowController() : ServiceFramework("IWindowController") {
21 static const FunctionInfo functions[] = { 20 static const FunctionInfo functions[] = {
@@ -571,5 +570,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager,
571 std::make_shared<AppletOE>(nvflinger)->InstallAsService(service_manager); 570 std::make_shared<AppletOE>(nvflinger)->InstallAsService(service_manager);
572} 571}
573 572
574} // namespace AM 573} // namespace Service::AM
575} // namespace Service
diff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cpp
index 154d346d5..4f0698a8a 100644
--- a/src/core/hle/service/am/applet_ae.cpp
+++ b/src/core/hle/service/am/applet_ae.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/am/applet_ae.h" 8#include "core/hle/service/am/applet_ae.h"
9#include "core/hle/service/nvflinger/nvflinger.h" 9#include "core/hle/service/nvflinger/nvflinger.h"
10 10
11namespace Service { 11namespace Service::AM {
12namespace AM {
13 12
14class ILibraryAppletProxy final : public ServiceFramework<ILibraryAppletProxy> { 13class ILibraryAppletProxy final : public ServiceFramework<ILibraryAppletProxy> {
15public: 14public:
@@ -109,5 +108,4 @@ AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)
109 RegisterHandlers(functions); 108 RegisterHandlers(functions);
110} 109}
111 110
112} // namespace AM 111} // namespace Service::AM
113} // namespace Service
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp
index 334c38392..674b4d753 100644
--- a/src/core/hle/service/am/applet_oe.cpp
+++ b/src/core/hle/service/am/applet_oe.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/am/applet_oe.h" 8#include "core/hle/service/am/applet_oe.h"
9#include "core/hle/service/nvflinger/nvflinger.h" 9#include "core/hle/service/nvflinger/nvflinger.h"
10 10
11namespace Service { 11namespace Service::AM {
12namespace AM {
13 12
14class IApplicationProxy final : public ServiceFramework<IApplicationProxy> { 13class IApplicationProxy final : public ServiceFramework<IApplicationProxy> {
15public: 14public:
@@ -104,5 +103,4 @@ AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)
104 RegisterHandlers(functions); 103 RegisterHandlers(functions);
105} 104}
106 105
107} // namespace AM 106} // namespace Service::AM
108} // namespace Service
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index f64001df3..6e7438580 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -6,8 +6,7 @@
6#include "core/hle/ipc_helpers.h" 6#include "core/hle/ipc_helpers.h"
7#include "core/hle/service/aoc/aoc_u.h" 7#include "core/hle/service/aoc/aoc_u.h"
8 8
9namespace Service { 9namespace Service::AOC {
10namespace AOC {
11 10
12AOC_U::AOC_U() : ServiceFramework("aoc:u") { 11AOC_U::AOC_U() : ServiceFramework("aoc:u") {
13 static const FunctionInfo functions[] = { 12 static const FunctionInfo functions[] = {
@@ -42,5 +41,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
42 std::make_shared<AOC_U>()->InstallAsService(service_manager); 41 std::make_shared<AOC_U>()->InstallAsService(service_manager);
43} 42}
44 43
45} // namespace AOC 44} // namespace Service::AOC
46} // namespace Service
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h
index 6e0ba15a5..17d48ef30 100644
--- a/src/core/hle/service/aoc/aoc_u.h
+++ b/src/core/hle/service/aoc/aoc_u.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::AOC {
10namespace AOC {
11 10
12class AOC_U final : public ServiceFramework<AOC_U> { 11class AOC_U final : public ServiceFramework<AOC_U> {
13public: 12public:
@@ -22,5 +21,4 @@ private:
22/// Registers all AOC services with the specified service manager. 21/// Registers all AOC services with the specified service manager.
23void InstallInterfaces(SM::ServiceManager& service_manager); 22void InstallInterfaces(SM::ServiceManager& service_manager);
24 23
25} // namespace AOC 24} // namespace Service::AOC
26} // namespace Service
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp
index c4b09b435..7a185c6c8 100644
--- a/src/core/hle/service/apm/apm.cpp
+++ b/src/core/hle/service/apm/apm.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/service/apm/apm.h" 7#include "core/hle/service/apm/apm.h"
8#include "core/hle/service/apm/interface.h" 8#include "core/hle/service/apm/interface.h"
9 9
10namespace Service { 10namespace Service::APM {
11namespace APM {
12 11
13void InstallInterfaces(SM::ServiceManager& service_manager) { 12void InstallInterfaces(SM::ServiceManager& service_manager) {
14 auto module_ = std::make_shared<Module>(); 13 auto module_ = std::make_shared<Module>();
@@ -16,5 +15,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
16 std::make_shared<APM>(module_, "apm:p")->InstallAsService(service_manager); 15 std::make_shared<APM>(module_, "apm:p")->InstallAsService(service_manager);
17} 16}
18 17
19} // namespace APM 18} // namespace Service::APM
20} // namespace Service
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h
index 070ab21f8..90a80d51b 100644
--- a/src/core/hle/service/apm/apm.h
+++ b/src/core/hle/service/apm/apm.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::APM {
10namespace APM {
11 10
12enum class PerformanceMode : u8 { 11enum class PerformanceMode : u8 {
13 Handheld = 0, 12 Handheld = 0,
@@ -23,5 +22,4 @@ public:
23/// Registers all AM services with the specified service manager. 22/// Registers all AM services with the specified service manager.
24void InstallInterfaces(SM::ServiceManager& service_manager); 23void InstallInterfaces(SM::ServiceManager& service_manager);
25 24
26} // namespace APM 25} // namespace Service::APM
27} // namespace Service
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp
index 0179351ba..4e11f3f14 100644
--- a/src/core/hle/service/apm/interface.cpp
+++ b/src/core/hle/service/apm/interface.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/service/apm/apm.h" 7#include "core/hle/service/apm/apm.h"
8#include "core/hle/service/apm/interface.h" 8#include "core/hle/service/apm/interface.h"
9 9
10namespace Service { 10namespace Service::APM {
11namespace APM {
12 11
13class ISession final : public ServiceFramework<ISession> { 12class ISession final : public ServiceFramework<ISession> {
14public: 13public:
@@ -62,5 +61,4 @@ void APM::OpenSession(Kernel::HLERequestContext& ctx) {
62 rb.PushIpcInterface<ISession>(); 61 rb.PushIpcInterface<ISession>();
63} 62}
64 63
65} // namespace APM 64} // namespace Service::APM
66} // namespace Service
diff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.h
index 7d53721de..b99dbb412 100644
--- a/src/core/hle/service/apm/interface.h
+++ b/src/core/hle/service/apm/interface.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::APM {
10namespace APM {
11 10
12class APM final : public ServiceFramework<APM> { 11class APM final : public ServiceFramework<APM> {
13public: 12public:
@@ -23,5 +22,4 @@ private:
23/// Registers all AM services with the specified service manager. 22/// Registers all AM services with the specified service manager.
24void InstallInterfaces(SM::ServiceManager& service_manager); 23void InstallInterfaces(SM::ServiceManager& service_manager);
25 24
26} // namespace APM 25} // namespace Service::APM
27} // namespace Service
diff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cpp
index 3c495b3a0..dca2bfb92 100644
--- a/src/core/hle/service/audio/audin_u.cpp
+++ b/src/core/hle/service/audio/audin_u.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/audio/audin_u.h" 8#include "core/hle/service/audio/audin_u.h"
9 9
10namespace Service { 10namespace Service::Audio {
11namespace Audio {
12 11
13class IAudioIn final : public ServiceFramework<IAudioIn> { 12class IAudioIn final : public ServiceFramework<IAudioIn> {
14public: 13public:
@@ -44,5 +43,4 @@ AudInU::AudInU() : ServiceFramework("audin:u") {
44 RegisterHandlers(functions); 43 RegisterHandlers(functions);
45} 44}
46 45
47} // namespace Audio 46} // namespace Service::Audio
48} // namespace Service
diff --git a/src/core/hle/service/audio/audin_u.h b/src/core/hle/service/audio/audin_u.h
index 2b8576756..2e65efb5b 100644
--- a/src/core/hle/service/audio/audin_u.h
+++ b/src/core/hle/service/audio/audin_u.h
@@ -10,8 +10,7 @@ namespace Kernel {
10class HLERequestContext; 10class HLERequestContext;
11} 11}
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16class AudInU final : public ServiceFramework<AudInU> { 15class AudInU final : public ServiceFramework<AudInU> {
17public: 16public:
@@ -19,5 +18,4 @@ public:
19 ~AudInU() = default; 18 ~AudInU() = default;
20}; 19};
21 20
22} // namespace Audio 21} // namespace Service::Audio
23} // namespace Service
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp
index 3f7fb44eb..92f910b5f 100644
--- a/src/core/hle/service/audio/audio.cpp
+++ b/src/core/hle/service/audio/audio.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/service/audio/audren_u.h" 9#include "core/hle/service/audio/audren_u.h"
10#include "core/hle/service/audio/codecctl.h" 10#include "core/hle/service/audio/codecctl.h"
11 11
12namespace Service { 12namespace Service::Audio {
13namespace Audio {
14 13
15void InstallInterfaces(SM::ServiceManager& service_manager) { 14void InstallInterfaces(SM::ServiceManager& service_manager) {
16 std::make_shared<AudOutU>()->InstallAsService(service_manager); 15 std::make_shared<AudOutU>()->InstallAsService(service_manager);
@@ -20,5 +19,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
20 std::make_shared<CodecCtl>()->InstallAsService(service_manager); 19 std::make_shared<CodecCtl>()->InstallAsService(service_manager);
21} 20}
22 21
23} // namespace Audio 22} // namespace Service::Audio
24} // namespace Service
diff --git a/src/core/hle/service/audio/audio.h b/src/core/hle/service/audio/audio.h
index cbd56b2a8..95e5691f7 100644
--- a/src/core/hle/service/audio/audio.h
+++ b/src/core/hle/service/audio/audio.h
@@ -6,11 +6,9 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Audio {
10namespace Audio {
11 10
12/// Registers all Audio services with the specified service manager. 11/// Registers all Audio services with the specified service manager.
13void InstallInterfaces(SM::ServiceManager& service_manager); 12void InstallInterfaces(SM::ServiceManager& service_manager);
14 13
15} // namespace Audio 14} // namespace Service::Audio
16} // namespace Service
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index db6e6647c..2d7f8cb04 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -10,8 +10,7 @@
10#include "core/hle/kernel/hle_ipc.h" 10#include "core/hle/kernel/hle_ipc.h"
11#include "core/hle/service/audio/audout_u.h" 11#include "core/hle/service/audio/audout_u.h"
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16/// Switch sample rate frequency 15/// Switch sample rate frequency
17constexpr u32 sample_rate{48000}; 16constexpr u32 sample_rate{48000};
@@ -204,5 +203,4 @@ AudOutU::AudOutU() : ServiceFramework("audout:u") {
204 RegisterHandlers(functions); 203 RegisterHandlers(functions);
205} 204}
206 205
207} // namespace Audio 206} // namespace Service::Audio
208} // namespace Service
diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h
index 7fbce2225..1f9bb9bcf 100644
--- a/src/core/hle/service/audio/audout_u.h
+++ b/src/core/hle/service/audio/audout_u.h
@@ -10,8 +10,7 @@ namespace Kernel {
10class HLERequestContext; 10class HLERequestContext;
11} 11}
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16class IAudioOut; 15class IAudioOut;
17 16
@@ -37,5 +36,4 @@ private:
37 }; 36 };
38}; 37};
39 38
40} // namespace Audio 39} // namespace Service::Audio
41} // namespace Service
diff --git a/src/core/hle/service/audio/audrec_u.cpp b/src/core/hle/service/audio/audrec_u.cpp
index 953104f19..b2be10919 100644
--- a/src/core/hle/service/audio/audrec_u.cpp
+++ b/src/core/hle/service/audio/audrec_u.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/audio/audrec_u.h" 8#include "core/hle/service/audio/audrec_u.h"
9 9
10namespace Service { 10namespace Service::Audio {
11namespace Audio {
12 11
13class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> { 12class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> {
14public: 13public:
@@ -36,5 +35,4 @@ AudRecU::AudRecU() : ServiceFramework("audrec:u") {
36 RegisterHandlers(functions); 35 RegisterHandlers(functions);
37} 36}
38 37
39} // namespace Audio 38} // namespace Service::Audio
40} // namespace Service
diff --git a/src/core/hle/service/audio/audrec_u.h b/src/core/hle/service/audio/audrec_u.h
index c31e412c1..46daa33a4 100644
--- a/src/core/hle/service/audio/audrec_u.h
+++ b/src/core/hle/service/audio/audrec_u.h
@@ -10,8 +10,7 @@ namespace Kernel {
10class HLERequestContext; 10class HLERequestContext;
11} 11}
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16class AudRecU final : public ServiceFramework<AudRecU> { 15class AudRecU final : public ServiceFramework<AudRecU> {
17public: 16public:
@@ -19,5 +18,4 @@ public:
19 ~AudRecU() = default; 18 ~AudRecU() = default;
20}; 19};
21 20
22} // namespace Audio 21} // namespace Service::Audio
23} // namespace Service
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index 0e78c57e9..d9245cb19 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/kernel/hle_ipc.h" 9#include "core/hle/kernel/hle_ipc.h"
10#include "core/hle/service/audio/audren_u.h" 10#include "core/hle/service/audio/audren_u.h"
11 11
12namespace Service { 12namespace Service::Audio {
13namespace Audio {
14 13
15/// TODO(bunnei): Find a proper value for the audio_ticks 14/// TODO(bunnei): Find a proper value for the audio_ticks
16constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)}; 15constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)};
@@ -272,5 +271,4 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) {
272 LOG_DEBUG(Service_Audio, "called"); 271 LOG_DEBUG(Service_Audio, "called");
273} 272}
274 273
275} // namespace Audio 274} // namespace Service::Audio
276} // namespace Service
diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h
index f59d1627d..71b632e80 100644
--- a/src/core/hle/service/audio/audren_u.h
+++ b/src/core/hle/service/audio/audren_u.h
@@ -10,8 +10,7 @@ namespace Kernel {
10class HLERequestContext; 10class HLERequestContext;
11} 11}
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16class AudRenU final : public ServiceFramework<AudRenU> { 15class AudRenU final : public ServiceFramework<AudRenU> {
17public: 16public:
@@ -24,5 +23,4 @@ private:
24 void GetAudioDevice(Kernel::HLERequestContext& ctx); 23 void GetAudioDevice(Kernel::HLERequestContext& ctx);
25}; 24};
26 25
27} // namespace Audio 26} // namespace Service::Audio
28} // namespace Service
diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cpp
index 1c86d8d17..ba0f1d228 100644
--- a/src/core/hle/service/audio/codecctl.cpp
+++ b/src/core/hle/service/audio/codecctl.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/audio/codecctl.h" 8#include "core/hle/service/audio/codecctl.h"
9 9
10namespace Service { 10namespace Service::Audio {
11namespace Audio {
12 11
13CodecCtl::CodecCtl() : ServiceFramework("codecctl") { 12CodecCtl::CodecCtl() : ServiceFramework("codecctl") {
14 static const FunctionInfo functions[] = { 13 static const FunctionInfo functions[] = {
@@ -29,5 +28,4 @@ CodecCtl::CodecCtl() : ServiceFramework("codecctl") {
29 RegisterHandlers(functions); 28 RegisterHandlers(functions);
30} 29}
31 30
32} // namespace Audio 31} // namespace Service::Audio
33} // namespace Service
diff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.h
index 1121ab0b1..d9ac29b67 100644
--- a/src/core/hle/service/audio/codecctl.h
+++ b/src/core/hle/service/audio/codecctl.h
@@ -10,8 +10,7 @@ namespace Kernel {
10class HLERequestContext; 10class HLERequestContext;
11} 11}
12 12
13namespace Service { 13namespace Service::Audio {
14namespace Audio {
15 14
16class CodecCtl final : public ServiceFramework<CodecCtl> { 15class CodecCtl final : public ServiceFramework<CodecCtl> {
17public: 16public:
@@ -19,5 +18,4 @@ public:
19 ~CodecCtl() = default; 18 ~CodecCtl() = default;
20}; 19};
21 20
22} // namespace Audio 21} // namespace Service::Audio
23} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp
index 1a18e0051..41d58f999 100644
--- a/src/core/hle/service/fatal/fatal.cpp
+++ b/src/core/hle/service/fatal/fatal.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/fatal/fatal_p.h" 8#include "core/hle/service/fatal/fatal_p.h"
9#include "core/hle/service/fatal/fatal_u.h" 9#include "core/hle/service/fatal/fatal_u.h"
10 10
11namespace Service { 11namespace Service::Fatal {
12namespace Fatal {
13 12
14Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 13Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
15 : ServiceFramework(name), module(std::move(module)) {} 14 : ServiceFramework(name), module(std::move(module)) {}
@@ -34,5 +33,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
34 std::make_shared<Fatal_U>(module)->InstallAsService(service_manager); 33 std::make_shared<Fatal_U>(module)->InstallAsService(service_manager);
35} 34}
36 35
37} // namespace Fatal 36} // namespace Service::Fatal
38} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.h
index 85272b4be..2d8d08320 100644
--- a/src/core/hle/service/fatal/fatal.h
+++ b/src/core/hle/service/fatal/fatal.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Fatal {
10namespace Fatal {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -25,5 +24,4 @@ public:
25 24
26void InstallInterfaces(SM::ServiceManager& service_manager); 25void InstallInterfaces(SM::ServiceManager& service_manager);
27 26
28} // namespace Fatal 27} // namespace Service::Fatal
29} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal_p.cpp b/src/core/hle/service/fatal/fatal_p.cpp
index ba194e340..a5254ac2f 100644
--- a/src/core/hle/service/fatal/fatal_p.cpp
+++ b/src/core/hle/service/fatal/fatal_p.cpp
@@ -4,11 +4,9 @@
4 4
5#include "core/hle/service/fatal/fatal_p.h" 5#include "core/hle/service/fatal/fatal_p.h"
6 6
7namespace Service { 7namespace Service::Fatal {
8namespace Fatal {
9 8
10Fatal_P::Fatal_P(std::shared_ptr<Module> module) 9Fatal_P::Fatal_P(std::shared_ptr<Module> module)
11 : Module::Interface(std::move(module), "fatal:p") {} 10 : Module::Interface(std::move(module), "fatal:p") {}
12 11
13} // namespace Fatal 12} // namespace Service::Fatal
14} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal_p.h b/src/core/hle/service/fatal/fatal_p.h
index d77b24bc4..bfd8c8b74 100644
--- a/src/core/hle/service/fatal/fatal_p.h
+++ b/src/core/hle/service/fatal/fatal_p.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/fatal/fatal.h" 7#include "core/hle/service/fatal/fatal.h"
8 8
9namespace Service { 9namespace Service::Fatal {
10namespace Fatal {
11 10
12class Fatal_P final : public Module::Interface { 11class Fatal_P final : public Module::Interface {
13public: 12public:
14 explicit Fatal_P(std::shared_ptr<Module> module); 13 explicit Fatal_P(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Fatal 16} // namespace Service::Fatal
18} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal_u.cpp b/src/core/hle/service/fatal/fatal_u.cpp
index 065cc868d..26aa9f3b7 100644
--- a/src/core/hle/service/fatal/fatal_u.cpp
+++ b/src/core/hle/service/fatal/fatal_u.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/fatal/fatal_u.h" 5#include "core/hle/service/fatal/fatal_u.h"
6 6
7namespace Service { 7namespace Service::Fatal {
8namespace Fatal {
9 8
10Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "fatal:u") { 9Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "fatal:u") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -15,5 +14,4 @@ Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(m
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace Fatal 17} // namespace Service::Fatal
19} // namespace Service
diff --git a/src/core/hle/service/fatal/fatal_u.h b/src/core/hle/service/fatal/fatal_u.h
index 22374755e..9b1a9e97a 100644
--- a/src/core/hle/service/fatal/fatal_u.h
+++ b/src/core/hle/service/fatal/fatal_u.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/fatal/fatal.h" 7#include "core/hle/service/fatal/fatal.h"
8 8
9namespace Service { 9namespace Service::Fatal {
10namespace Fatal {
11 10
12class Fatal_U final : public Module::Interface { 11class Fatal_U final : public Module::Interface {
13public: 12public:
14 explicit Fatal_U(std::shared_ptr<Module> module); 13 explicit Fatal_U(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Fatal 16} // namespace Service::Fatal
18} // namespace Service
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 945832e98..9e504992f 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -10,8 +10,7 @@
10#include "core/hle/service/filesystem/filesystem.h" 10#include "core/hle/service/filesystem/filesystem.h"
11#include "core/hle/service/filesystem/fsp_srv.h" 11#include "core/hle/service/filesystem/fsp_srv.h"
12 12
13namespace Service { 13namespace Service::FileSystem {
14namespace FileSystem {
15 14
16/** 15/**
17 * Map of registered file systems, identified by type. Once an file system is registered here, it 16 * Map of registered file systems, identified by type. Once an file system is registered here, it
@@ -75,5 +74,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
75 std::make_shared<FSP_SRV>()->InstallAsService(service_manager); 74 std::make_shared<FSP_SRV>()->InstallAsService(service_manager);
76} 75}
77 76
78} // namespace FileSystem 77} // namespace Service::FileSystem
79} // namespace Service
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 45accbf0e..2f476c869 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -14,8 +14,7 @@
14#include "core/hle/service/filesystem/filesystem.h" 14#include "core/hle/service/filesystem/filesystem.h"
15#include "core/hle/service/filesystem/fsp_srv.h" 15#include "core/hle/service/filesystem/fsp_srv.h"
16 16
17namespace Service { 17namespace Service::FileSystem {
18namespace FileSystem {
19 18
20class IStorage final : public ServiceFramework<IStorage> { 19class IStorage final : public ServiceFramework<IStorage> {
21public: 20public:
@@ -573,5 +572,4 @@ void FSP_SRV::OpenRomStorage(Kernel::HLERequestContext& ctx) {
573 OpenDataStorageByCurrentProcess(ctx); 572 OpenDataStorageByCurrentProcess(ctx);
574} 573}
575 574
576} // namespace FileSystem 575} // namespace Service::FileSystem
577} // namespace Service
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h
index 6dc5874c0..acb78fac1 100644
--- a/src/core/hle/service/filesystem/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp_srv.h
@@ -11,8 +11,7 @@ namespace FileSys {
11class FileSystemBackend; 11class FileSystemBackend;
12} 12}
13 13
14namespace Service { 14namespace Service::FileSystem {
15namespace FileSystem {
16 15
17class FSP_SRV final : public ServiceFramework<FSP_SRV> { 16class FSP_SRV final : public ServiceFramework<FSP_SRV> {
18public: 17public:
@@ -33,5 +32,4 @@ private:
33 std::unique_ptr<FileSys::FileSystemBackend> romfs; 32 std::unique_ptr<FileSys::FileSystemBackend> romfs;
34}; 33};
35 34
36} // namespace FileSystem 35} // namespace Service::FileSystem
37} // namespace Service
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index 051448b2a..c98a46e05 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/friend/friend_a.h" 8#include "core/hle/service/friend/friend_a.h"
9#include "core/hle/service/friend/friend_u.h" 9#include "core/hle/service/friend/friend_u.h"
10 10
11namespace Service { 11namespace Service::Friend {
12namespace Friend {
13 12
14void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) { 13void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) {
15 IPC::ResponseBuilder rb{ctx, 2}; 14 IPC::ResponseBuilder rb{ctx, 2};
@@ -26,5 +25,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
26 std::make_shared<Friend_U>(module)->InstallAsService(service_manager); 25 std::make_shared<Friend_U>(module)->InstallAsService(service_manager);
27} 26}
28 27
29} // namespace Friend 28} // namespace Service::Friend
30} // namespace Service
diff --git a/src/core/hle/service/friend/friend.h b/src/core/hle/service/friend/friend.h
index 2b21b4e15..4b72115c0 100644
--- a/src/core/hle/service/friend/friend.h
+++ b/src/core/hle/service/friend/friend.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Friend {
10namespace Friend {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -25,5 +24,4 @@ public:
25/// Registers all Friend services with the specified service manager. 24/// Registers all Friend services with the specified service manager.
26void InstallInterfaces(SM::ServiceManager& service_manager); 25void InstallInterfaces(SM::ServiceManager& service_manager);
27 26
28} // namespace Friend 27} // namespace Service::Friend
29} // namespace Service
diff --git a/src/core/hle/service/friend/friend_a.cpp b/src/core/hle/service/friend/friend_a.cpp
index d64fe846a..a2cc81926 100644
--- a/src/core/hle/service/friend/friend_a.cpp
+++ b/src/core/hle/service/friend/friend_a.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/friend/friend_a.h" 5#include "core/hle/service/friend/friend_a.h"
6 6
7namespace Service { 7namespace Service::Friend {
8namespace Friend {
9 8
10Friend_A::Friend_A(std::shared_ptr<Module> module) 9Friend_A::Friend_A(std::shared_ptr<Module> module)
11 : Module::Interface(std::move(module), "friend:a") { 10 : Module::Interface(std::move(module), "friend:a") {
@@ -16,5 +15,4 @@ Friend_A::Friend_A(std::shared_ptr<Module> module)
16 RegisterHandlers(functions); 15 RegisterHandlers(functions);
17} 16}
18 17
19} // namespace Friend 18} // namespace Service::Friend
20} // namespace Service
diff --git a/src/core/hle/service/friend/friend_a.h b/src/core/hle/service/friend/friend_a.h
index 68fa58297..81257583b 100644
--- a/src/core/hle/service/friend/friend_a.h
+++ b/src/core/hle/service/friend/friend_a.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/friend/friend.h" 7#include "core/hle/service/friend/friend.h"
8 8
9namespace Service { 9namespace Service::Friend {
10namespace Friend {
11 10
12class Friend_A final : public Module::Interface { 11class Friend_A final : public Module::Interface {
13public: 12public:
14 explicit Friend_A(std::shared_ptr<Module> module); 13 explicit Friend_A(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Friend 16} // namespace Service::Friend
18} // namespace Service
diff --git a/src/core/hle/service/friend/friend_u.cpp b/src/core/hle/service/friend/friend_u.cpp
index 9a4b05b38..90b30883f 100644
--- a/src/core/hle/service/friend/friend_u.cpp
+++ b/src/core/hle/service/friend/friend_u.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/friend/friend_u.h" 5#include "core/hle/service/friend/friend_u.h"
6 6
7namespace Service { 7namespace Service::Friend {
8namespace Friend {
9 8
10Friend_U::Friend_U(std::shared_ptr<Module> module) 9Friend_U::Friend_U(std::shared_ptr<Module> module)
11 : Module::Interface(std::move(module), "friend:u") { 10 : Module::Interface(std::move(module), "friend:u") {
@@ -16,5 +15,4 @@ Friend_U::Friend_U(std::shared_ptr<Module> module)
16 RegisterHandlers(functions); 15 RegisterHandlers(functions);
17} 16}
18 17
19} // namespace Friend 18} // namespace Service::Friend
20} // namespace Service
diff --git a/src/core/hle/service/friend/friend_u.h b/src/core/hle/service/friend/friend_u.h
index 6be49ff01..0d953d807 100644
--- a/src/core/hle/service/friend/friend_u.h
+++ b/src/core/hle/service/friend/friend_u.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/friend/friend.h" 7#include "core/hle/service/friend/friend.h"
8 8
9namespace Service { 9namespace Service::Friend {
10namespace Friend {
11 10
12class Friend_U final : public Module::Interface { 11class Friend_U final : public Module::Interface {
13public: 12public:
14 explicit Friend_U(std::shared_ptr<Module> module); 13 explicit Friend_U(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace Friend 16} // namespace Service::Friend
18} // namespace Service
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index b59c52f07..aad5e688b 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -14,8 +14,7 @@
14#include "core/hle/service/hid/hid.h" 14#include "core/hle/service/hid/hid.h"
15#include "core/hle/service/service.h" 15#include "core/hle/service/service.h"
16 16
17namespace Service { 17namespace Service::HID {
18namespace HID {
19 18
20// Updating period for each HID device. 19// Updating period for each HID device.
21// TODO(shinyquagsire23): These need better values. 20// TODO(shinyquagsire23): These need better values.
@@ -434,5 +433,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
434 std::make_shared<Hid>()->InstallAsService(service_manager); 433 std::make_shared<Hid>()->InstallAsService(service_manager);
435} 434}
436 435
437} // namespace HID 436} // namespace Service::HID
438} // namespace Service
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h
index 3de9adb4b..350174ccd 100644
--- a/src/core/hle/service/hid/hid.h
+++ b/src/core/hle/service/hid/hid.h
@@ -7,8 +7,7 @@
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8#include "core/settings.h" 8#include "core/settings.h"
9 9
10namespace Service { 10namespace Service::HID {
11namespace HID {
12 11
13// Begin enums and output structs 12// Begin enums and output structs
14 13
@@ -337,5 +336,4 @@ void ReloadInputDevices();
337/// Registers all HID services with the specified service manager. 336/// Registers all HID services with the specified service manager.
338void InstallInterfaces(SM::ServiceManager& service_manager); 337void InstallInterfaces(SM::ServiceManager& service_manager);
339 338
340} // namespace HID 339} // namespace Service::HID
341} // namespace Service
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index b8e53d2c7..b87172dff 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/kernel/client_session.h" 9#include "core/hle/kernel/client_session.h"
10#include "core/hle/service/lm/lm.h" 10#include "core/hle/service/lm/lm.h"
11 11
12namespace Service { 12namespace Service::LM {
13namespace LM {
14 13
15class Logger final : public ServiceFramework<Logger> { 14class Logger final : public ServiceFramework<Logger> {
16public: 15public:
@@ -189,5 +188,4 @@ LM::LM() : ServiceFramework("lm") {
189 RegisterHandlers(functions); 188 RegisterHandlers(functions);
190} 189}
191 190
192} // namespace LM 191} // namespace Service::LM
193} // namespace Service
diff --git a/src/core/hle/service/lm/lm.h b/src/core/hle/service/lm/lm.h
index 371135057..63d6506fe 100644
--- a/src/core/hle/service/lm/lm.h
+++ b/src/core/hle/service/lm/lm.h
@@ -8,8 +8,7 @@
8#include "core/hle/kernel/kernel.h" 8#include "core/hle/kernel/kernel.h"
9#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
10 10
11namespace Service { 11namespace Service::LM {
12namespace LM {
13 12
14class LM final : public ServiceFramework<LM> { 13class LM final : public ServiceFramework<LM> {
15public: 14public:
@@ -23,5 +22,4 @@ private:
23/// Registers all LM services with the specified service manager. 22/// Registers all LM services with the specified service manager.
24void InstallInterfaces(SM::ServiceManager& service_manager); 23void InstallInterfaces(SM::ServiceManager& service_manager);
25 24
26} // namespace LM 25} // namespace Service::LM
27} // namespace Service
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index 49870841c..91e5f527a 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/service/nfp/nfp.h" 7#include "core/hle/service/nfp/nfp.h"
8#include "core/hle/service/nfp/nfp_user.h" 8#include "core/hle/service/nfp/nfp_user.h"
9 9
10namespace Service { 10namespace Service::NFP {
11namespace NFP {
12 11
13Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 12Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
14 : ServiceFramework(name), module(std::move(module)) {} 13 : ServiceFramework(name), module(std::move(module)) {}
@@ -24,5 +23,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
24 std::make_shared<NFP_User>(module)->InstallAsService(service_manager); 23 std::make_shared<NFP_User>(module)->InstallAsService(service_manager);
25} 24}
26 25
27} // namespace NFP 26} // namespace Service::NFP
28} // namespace Service
diff --git a/src/core/hle/service/nfp/nfp.h b/src/core/hle/service/nfp/nfp.h
index 1163e9954..095209ad8 100644
--- a/src/core/hle/service/nfp/nfp.h
+++ b/src/core/hle/service/nfp/nfp.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::NFP {
10namespace NFP {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -24,5 +23,4 @@ public:
24 23
25void InstallInterfaces(SM::ServiceManager& service_manager); 24void InstallInterfaces(SM::ServiceManager& service_manager);
26 25
27} // namespace NFP 26} // namespace Service::NFP
28} // namespace Service
diff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cpp
index 14e5647c4..e94c271e7 100644
--- a/src/core/hle/service/nfp/nfp_user.cpp
+++ b/src/core/hle/service/nfp/nfp_user.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/nfp/nfp_user.h" 5#include "core/hle/service/nfp/nfp_user.h"
6 6
7namespace Service { 7namespace Service::NFP {
8namespace NFP {
9 8
10NFP_User::NFP_User(std::shared_ptr<Module> module) 9NFP_User::NFP_User(std::shared_ptr<Module> module)
11 : Module::Interface(std::move(module), "nfp:user") { 10 : Module::Interface(std::move(module), "nfp:user") {
@@ -15,5 +14,4 @@ NFP_User::NFP_User(std::shared_ptr<Module> module)
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace NFP 17} // namespace Service::NFP
19} // namespace Service
diff --git a/src/core/hle/service/nfp/nfp_user.h b/src/core/hle/service/nfp/nfp_user.h
index 1606444ca..700043114 100644
--- a/src/core/hle/service/nfp/nfp_user.h
+++ b/src/core/hle/service/nfp/nfp_user.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/nfp/nfp.h" 7#include "core/hle/service/nfp/nfp.h"
8 8
9namespace Service { 9namespace Service::NFP {
10namespace NFP {
11 10
12class NFP_User final : public Module::Interface { 11class NFP_User final : public Module::Interface {
13public: 12public:
14 explicit NFP_User(std::shared_ptr<Module> module); 13 explicit NFP_User(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace NFP 16} // namespace Service::NFP
18} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index b32112db3..df1e7f8fe 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/service/nifm/nifm_s.h" 9#include "core/hle/service/nifm/nifm_s.h"
10#include "core/hle/service/nifm/nifm_u.h" 10#include "core/hle/service/nifm/nifm_u.h"
11 11
12namespace Service { 12namespace Service::NIFM {
13namespace NIFM {
14 13
15class IScanRequest final : public ServiceFramework<IScanRequest> { 14class IScanRequest final : public ServiceFramework<IScanRequest> {
16public: 15public:
@@ -208,5 +207,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
208 std::make_shared<NIFM_U>(module)->InstallAsService(service_manager); 207 std::make_shared<NIFM_U>(module)->InstallAsService(service_manager);
209} 208}
210 209
211} // namespace NIFM 210} // namespace Service::NIFM
212} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm.h b/src/core/hle/service/nifm/nifm.h
index 11d263b12..4ad3f3bcf 100644
--- a/src/core/hle/service/nifm/nifm.h
+++ b/src/core/hle/service/nifm/nifm.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::NIFM {
10namespace NIFM {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -25,5 +24,4 @@ public:
25 24
26void InstallInterfaces(SM::ServiceManager& service_manager); 25void InstallInterfaces(SM::ServiceManager& service_manager);
27 26
28} // namespace NIFM 27} // namespace Service::NIFM
29} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_a.cpp b/src/core/hle/service/nifm/nifm_a.cpp
index f75df8c04..b7f296a20 100644
--- a/src/core/hle/service/nifm/nifm_a.cpp
+++ b/src/core/hle/service/nifm/nifm_a.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/nifm/nifm_a.h" 5#include "core/hle/service/nifm/nifm_a.h"
6 6
7namespace Service { 7namespace Service::NIFM {
8namespace NIFM {
9 8
10NIFM_A::NIFM_A(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:a") { 9NIFM_A::NIFM_A(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:a") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -15,5 +14,4 @@ NIFM_A::NIFM_A(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace NIFM 17} // namespace Service::NIFM
19} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_a.h b/src/core/hle/service/nifm/nifm_a.h
index eaea14e29..c3ba33110 100644
--- a/src/core/hle/service/nifm/nifm_a.h
+++ b/src/core/hle/service/nifm/nifm_a.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/nifm/nifm.h" 7#include "core/hle/service/nifm/nifm.h"
8 8
9namespace Service { 9namespace Service::NIFM {
10namespace NIFM {
11 10
12class NIFM_A final : public Module::Interface { 11class NIFM_A final : public Module::Interface {
13public: 12public:
14 explicit NIFM_A(std::shared_ptr<Module> module); 13 explicit NIFM_A(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace NIFM 16} // namespace Service::NIFM
18} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_s.cpp b/src/core/hle/service/nifm/nifm_s.cpp
index 9c0b300e4..96e3c0cee 100644
--- a/src/core/hle/service/nifm/nifm_s.cpp
+++ b/src/core/hle/service/nifm/nifm_s.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/nifm/nifm_s.h" 5#include "core/hle/service/nifm/nifm_s.h"
6 6
7namespace Service { 7namespace Service::NIFM {
8namespace NIFM {
9 8
10NIFM_S::NIFM_S(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:s") { 9NIFM_S::NIFM_S(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:s") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -15,5 +14,4 @@ NIFM_S::NIFM_S(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace NIFM 17} // namespace Service::NIFM
19} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_s.h b/src/core/hle/service/nifm/nifm_s.h
index f9e2d8039..8d1635a5d 100644
--- a/src/core/hle/service/nifm/nifm_s.h
+++ b/src/core/hle/service/nifm/nifm_s.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/nifm/nifm.h" 7#include "core/hle/service/nifm/nifm.h"
8 8
9namespace Service { 9namespace Service::NIFM {
10namespace NIFM {
11 10
12class NIFM_S final : public Module::Interface { 11class NIFM_S final : public Module::Interface {
13public: 12public:
14 explicit NIFM_S(std::shared_ptr<Module> module); 13 explicit NIFM_S(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace NIFM 16} // namespace Service::NIFM
18} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_u.cpp b/src/core/hle/service/nifm/nifm_u.cpp
index 44e6f483d..8cb75b903 100644
--- a/src/core/hle/service/nifm/nifm_u.cpp
+++ b/src/core/hle/service/nifm/nifm_u.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/nifm/nifm_u.h" 5#include "core/hle/service/nifm/nifm_u.h"
6 6
7namespace Service { 7namespace Service::NIFM {
8namespace NIFM {
9 8
10NIFM_U::NIFM_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:u") { 9NIFM_U::NIFM_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:u") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -15,5 +14,4 @@ NIFM_U::NIFM_U(std::shared_ptr<Module> module) : Module::Interface(std::move(mod
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace NIFM 17} // namespace Service::NIFM
19} // namespace Service
diff --git a/src/core/hle/service/nifm/nifm_u.h b/src/core/hle/service/nifm/nifm_u.h
index 912006775..def9726b1 100644
--- a/src/core/hle/service/nifm/nifm_u.h
+++ b/src/core/hle/service/nifm/nifm_u.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/nifm/nifm.h" 7#include "core/hle/service/nifm/nifm.h"
8 8
9namespace Service { 9namespace Service::NIFM {
10namespace NIFM {
11 10
12class NIFM_U final : public Module::Interface { 11class NIFM_U final : public Module::Interface {
13public: 12public:
14 explicit NIFM_U(std::shared_ptr<Module> module); 13 explicit NIFM_U(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace NIFM 16} // namespace Service::NIFM
18} // namespace Service
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp
index 45681c50f..89c703310 100644
--- a/src/core/hle/service/ns/ns.cpp
+++ b/src/core/hle/service/ns/ns.cpp
@@ -5,12 +5,10 @@
5#include "core/hle/service/ns/ns.h" 5#include "core/hle/service/ns/ns.h"
6#include "core/hle/service/ns/pl_u.h" 6#include "core/hle/service/ns/pl_u.h"
7 7
8namespace Service { 8namespace Service::NS {
9namespace NS {
10 9
11void InstallInterfaces(SM::ServiceManager& service_manager) { 10void InstallInterfaces(SM::ServiceManager& service_manager) {
12 std::make_shared<PL_U>()->InstallAsService(service_manager); 11 std::make_shared<PL_U>()->InstallAsService(service_manager);
13} 12}
14 13
15} // namespace NS 14} // namespace Service::NS
16} // namespace Service
diff --git a/src/core/hle/service/ns/ns.h b/src/core/hle/service/ns/ns.h
index a4b7e3ded..b81ca8f1e 100644
--- a/src/core/hle/service/ns/ns.h
+++ b/src/core/hle/service/ns/ns.h
@@ -6,11 +6,9 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::NS {
10namespace NS {
11 10
12/// Registers all NS services with the specified service manager. 11/// Registers all NS services with the specified service manager.
13void InstallInterfaces(SM::ServiceManager& service_manager); 12void InstallInterfaces(SM::ServiceManager& service_manager);
14 13
15} // namespace NS 14} // namespace Service::NS
16} // namespace Service
diff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cpp
index 7ff1ab664..c416ad720 100644
--- a/src/core/hle/service/ns/pl_u.cpp
+++ b/src/core/hle/service/ns/pl_u.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/ipc_helpers.h" 8#include "core/hle/ipc_helpers.h"
9#include "core/hle/service/ns/pl_u.h" 9#include "core/hle/service/ns/pl_u.h"
10 10
11namespace Service { 11namespace Service::NS {
12namespace NS {
13 12
14struct FontRegion { 13struct FontRegion {
15 u32 offset; 14 u32 offset;
@@ -117,5 +116,4 @@ void PL_U::GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx) {
117 rb.PushCopyObjects(shared_font_mem); 116 rb.PushCopyObjects(shared_font_mem);
118} 117}
119 118
120} // namespace NS 119} // namespace Service::NS
121} // namespace Service
diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h
index 360482d13..b175c9c44 100644
--- a/src/core/hle/service/ns/pl_u.h
+++ b/src/core/hle/service/ns/pl_u.h
@@ -8,8 +8,7 @@
8#include "core/hle/kernel/shared_memory.h" 8#include "core/hle/kernel/shared_memory.h"
9#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
10 10
11namespace Service { 11namespace Service::NS {
12namespace NS {
13 12
14class PL_U final : public ServiceFramework<PL_U> { 13class PL_U final : public ServiceFramework<PL_U> {
15public: 14public:
@@ -30,5 +29,4 @@ private:
30 std::shared_ptr<std::vector<u8>> shared_font; 29 std::shared_ptr<std::vector<u8>> shared_font;
31}; 30};
32 31
33} // namespace NS 32} // namespace Service::NS
34} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.h
index cdc25b059..0f02a1a18 100644
--- a/src/core/hle/service/nvdrv/devices/nvdevice.h
+++ b/src/core/hle/service/nvdrv/devices/nvdevice.h
@@ -9,9 +9,7 @@
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/swap.h" 10#include "common/swap.h"
11 11
12namespace Service { 12namespace Service::Nvidia::Devices {
13namespace Nvidia {
14namespace Devices {
15 13
16/// Represents an abstract nvidia device node. It is to be subclassed by concrete device nodes to 14/// Represents an abstract nvidia device node. It is to be subclassed by concrete device nodes to
17/// implement the ioctl interface. 15/// implement the ioctl interface.
@@ -38,6 +36,4 @@ public:
38 virtual u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) = 0; 36 virtual u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) = 0;
39}; 37};
40 38
41} // namespace Devices 39} // namespace Service::Nvidia::Devices
42} // namespace Nvidia
43} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
index 87b3a2d74..61f22b1a5 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
@@ -10,9 +10,7 @@
10#include "video_core/renderer_base.h" 10#include "video_core/renderer_base.h"
11#include "video_core/video_core.h" 11#include "video_core/video_core.h"
12 12
13namespace Service { 13namespace Service::Nvidia::Devices {
14namespace Nvidia {
15namespace Devices {
16 14
17u32 nvdisp_disp0::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 15u32 nvdisp_disp0::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
18 UNIMPLEMENTED(); 16 UNIMPLEMENTED();
@@ -35,6 +33,4 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3
35 VideoCore::g_renderer->SwapBuffers(framebuffer); 33 VideoCore::g_renderer->SwapBuffers(framebuffer);
36} 34}
37 35
38} // namespace Devices 36} // namespace Service::Nvidia::Devices
39} // namespace Nvidia
40} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
index 66f56f23d..3d3979723 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
@@ -10,9 +10,7 @@
10#include "core/hle/service/nvdrv/devices/nvdevice.h" 10#include "core/hle/service/nvdrv/devices/nvdevice.h"
11#include "core/hle/service/nvflinger/buffer_queue.h" 11#include "core/hle/service/nvflinger/buffer_queue.h"
12 12
13namespace Service { 13namespace Service::Nvidia::Devices {
14namespace Nvidia {
15namespace Devices {
16 14
17class nvmap; 15class nvmap;
18 16
@@ -31,6 +29,4 @@ private:
31 std::shared_ptr<nvmap> nvmap_dev; 29 std::shared_ptr<nvmap> nvmap_dev;
32}; 30};
33 31
34} // namespace Devices 32} // namespace Service::Nvidia::Devices
35} // namespace Nvidia
36} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index 9892402fa..71e844959 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
@@ -9,9 +9,7 @@
9#include "core/hle/service/nvdrv/devices/nvhost_as_gpu.h" 9#include "core/hle/service/nvdrv/devices/nvhost_as_gpu.h"
10#include "core/hle/service/nvdrv/devices/nvmap.h" 10#include "core/hle/service/nvdrv/devices/nvmap.h"
11 11
12namespace Service { 12namespace Service::Nvidia::Devices {
13namespace Nvidia {
14namespace Devices {
15 13
16u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 14u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
17 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx", 15 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
@@ -115,6 +113,4 @@ u32 nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u8>& o
115 return 0; 113 return 0;
116} 114}
117 115
118} // namespace Devices 116} // namespace Service::Nvidia::Devices
119} // namespace Nvidia
120} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
index f8a60cce7..d86c3ebd9 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
@@ -11,9 +11,7 @@
11#include "common/swap.h" 11#include "common/swap.h"
12#include "core/hle/service/nvdrv/devices/nvdevice.h" 12#include "core/hle/service/nvdrv/devices/nvdevice.h"
13 13
14namespace Service { 14namespace Service::Nvidia::Devices {
15namespace Nvidia {
16namespace Devices {
17 15
18class nvmap; 16class nvmap;
19 17
@@ -100,6 +98,4 @@ private:
100 std::shared_ptr<nvmap> nvmap_dev; 98 std::shared_ptr<nvmap> nvmap_dev;
101}; 99};
102 100
103} // namespace Devices 101} // namespace Service::Nvidia::Devices
104} // namespace Nvidia
105} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
index 45711d686..660a0f665 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
@@ -6,9 +6,7 @@
6#include "common/logging/log.h" 6#include "common/logging/log.h"
7#include "core/hle/service/nvdrv/devices/nvhost_ctrl.h" 7#include "core/hle/service/nvdrv/devices/nvhost_ctrl.h"
8 8
9namespace Service { 9namespace Service::Nvidia::Devices {
10namespace Nvidia {
11namespace Devices {
12 10
13u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 11u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
14 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx", 12 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
@@ -59,6 +57,4 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>&
59 return 0; 57 return 0;
60} 58}
61 59
62} // namespace Devices 60} // namespace Service::Nvidia::Devices
63} // namespace Nvidia
64} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
index 0ca01aa6d..76a8b33c2 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
@@ -11,9 +11,7 @@
11#include "common/common_types.h" 11#include "common/common_types.h"
12#include "core/hle/service/nvdrv/devices/nvdevice.h" 12#include "core/hle/service/nvdrv/devices/nvdevice.h"
13 13
14namespace Service { 14namespace Service::Nvidia::Devices {
15namespace Nvidia {
16namespace Devices {
17 15
18class nvhost_ctrl final : public nvdevice { 16class nvhost_ctrl final : public nvdevice {
19public: 17public:
@@ -55,6 +53,4 @@ private:
55 u32 IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output); 53 u32 IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output);
56}; 54};
57 55
58} // namespace Devices 56} // namespace Service::Nvidia::Devices
59} // namespace Nvidia
60} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
index 3b353d742..18ea12ef5 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -7,9 +7,7 @@
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8#include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h" 8#include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h"
9 9
10namespace Service { 10namespace Service::Nvidia::Devices {
11namespace Nvidia {
12namespace Devices {
13 11
14u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 12u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
15 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx", 13 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
@@ -122,6 +120,4 @@ u32 nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>&
122 return 0; 120 return 0;
123} 121}
124 122
125} // namespace Devices 123} // namespace Service::Nvidia::Devices
126} // namespace Nvidia
127} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
index dc0476993..31040cdbe 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
@@ -9,9 +9,7 @@
9#include "common/swap.h" 9#include "common/swap.h"
10#include "core/hle/service/nvdrv/devices/nvdevice.h" 10#include "core/hle/service/nvdrv/devices/nvdevice.h"
11 11
12namespace Service { 12namespace Service::Nvidia::Devices {
13namespace Nvidia {
14namespace Devices {
15 13
16class nvhost_ctrl_gpu final : public nvdevice { 14class nvhost_ctrl_gpu final : public nvdevice {
17public: 15public:
@@ -125,6 +123,5 @@ private:
125 u32 ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u8>& output); 123 u32 ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u8>& output);
126 u32 ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output); 124 u32 ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output);
127}; 125};
128} // namespace Devices 126
129} // namespace Nvidia 127} // namespace Service::Nvidia::Devices
130} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
index da44c65f3..a16e90457 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
@@ -9,9 +9,7 @@
9#include "core/core.h" 9#include "core/core.h"
10#include "core/hle/service/nvdrv/devices/nvhost_gpu.h" 10#include "core/hle/service/nvdrv/devices/nvhost_gpu.h"
11 11
12namespace Service { 12namespace Service::Nvidia::Devices {
13namespace Nvidia {
14namespace Devices {
15 13
16u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 14u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
17 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx", 15 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
@@ -142,6 +140,4 @@ u32 nvhost_gpu::SubmitGPFIFO(const std::vector<u8>& input, std::vector<u8>& outp
142 return 0; 140 return 0;
143} 141}
144 142
145} // namespace Devices 143} // namespace Service::Nvidia::Devices
146} // namespace Nvidia
147} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
index e7e9a0088..703c36bbb 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
@@ -10,9 +10,7 @@
10#include "common/swap.h" 10#include "common/swap.h"
11#include "core/hle/service/nvdrv/devices/nvdevice.h" 11#include "core/hle/service/nvdrv/devices/nvdevice.h"
12 12
13namespace Service { 13namespace Service::Nvidia::Devices {
14namespace Nvidia {
15namespace Devices {
16 14
17class nvmap; 15class nvmap;
18constexpr u32 NVGPU_IOCTL_MAGIC('H'); 16constexpr u32 NVGPU_IOCTL_MAGIC('H');
@@ -139,6 +137,4 @@ private:
139 std::shared_ptr<nvmap> nvmap_dev; 137 std::shared_ptr<nvmap> nvmap_dev;
140}; 138};
141 139
142} // namespace Devices 140} // namespace Service::Nvidia::Devices
143} // namespace Nvidia
144} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp
index b3842eb4c..4bb1f57f6 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp
@@ -9,9 +9,7 @@
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "core/hle/service/nvdrv/devices/nvmap.h" 10#include "core/hle/service/nvdrv/devices/nvmap.h"
11 11
12namespace Service { 12namespace Service::Nvidia::Devices {
13namespace Nvidia {
14namespace Devices {
15 13
16VAddr nvmap::GetObjectAddress(u32 handle) const { 14VAddr nvmap::GetObjectAddress(u32 handle) const {
17 auto object = GetObject(handle); 15 auto object = GetObject(handle);
@@ -144,6 +142,4 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) {
144 return 0; 142 return 0;
145} 143}
146 144
147} // namespace Devices 145} // namespace Service::Nvidia::Devices
148} // namespace Nvidia
149} // namespace Service
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.h
index 4681e438b..431eb3773 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.h
+++ b/src/core/hle/service/nvdrv/devices/nvmap.h
@@ -12,9 +12,7 @@
12#include "common/swap.h" 12#include "common/swap.h"
13#include "core/hle/service/nvdrv/devices/nvdevice.h" 13#include "core/hle/service/nvdrv/devices/nvdevice.h"
14 14
15namespace Service { 15namespace Service::Nvidia::Devices {
16namespace Nvidia {
17namespace Devices {
18 16
19class nvmap final : public nvdevice { 17class nvmap final : public nvdevice {
20public: 18public:
@@ -111,6 +109,4 @@ private:
111 u32 IocParam(const std::vector<u8>& input, std::vector<u8>& output); 109 u32 IocParam(const std::vector<u8>& input, std::vector<u8>& output);
112}; 110};
113 111
114} // namespace Devices 112} // namespace Service::Nvidia::Devices
115} // namespace Nvidia
116} // namespace Service
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp
index 567c2cd7c..d0d64a840 100644
--- a/src/core/hle/service/nvdrv/interface.cpp
+++ b/src/core/hle/service/nvdrv/interface.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/service/nvdrv/interface.h" 9#include "core/hle/service/nvdrv/interface.h"
10#include "core/hle/service/nvdrv/nvdrv.h" 10#include "core/hle/service/nvdrv/nvdrv.h"
11 11
12namespace Service { 12namespace Service::Nvidia {
13namespace Nvidia {
14 13
15void NVDRV::Open(Kernel::HLERequestContext& ctx) { 14void NVDRV::Open(Kernel::HLERequestContext& ctx) {
16 LOG_DEBUG(Service_NVDRV, "called"); 15 LOG_DEBUG(Service_NVDRV, "called");
@@ -111,5 +110,4 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name)
111 query_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "NVDRV::query_event"); 110 query_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "NVDRV::query_event");
112} 111}
113 112
114} // namespace Nvidia 113} // namespace Service::Nvidia
115} // namespace Service
diff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.h
index daf2302af..959b5ba29 100644
--- a/src/core/hle/service/nvdrv/interface.h
+++ b/src/core/hle/service/nvdrv/interface.h
@@ -10,8 +10,7 @@
10#include "core/hle/service/nvdrv/nvdrv.h" 10#include "core/hle/service/nvdrv/nvdrv.h"
11#include "core/hle/service/service.h" 11#include "core/hle/service/service.h"
12 12
13namespace Service { 13namespace Service::Nvidia {
14namespace Nvidia {
15 14
16class NVDRV final : public ServiceFramework<NVDRV> { 15class NVDRV final : public ServiceFramework<NVDRV> {
17public: 16public:
@@ -34,5 +33,4 @@ private:
34 Kernel::SharedPtr<Kernel::Event> query_event; 33 Kernel::SharedPtr<Kernel::Event> query_event;
35}; 34};
36 35
37} // namespace Nvidia 36} // namespace Service::Nvidia
38} // namespace Service
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp
index ea00240e6..170420418 100644
--- a/src/core/hle/service/nvdrv/nvdrv.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv.cpp
@@ -14,8 +14,7 @@
14#include "core/hle/service/nvdrv/nvdrv.h" 14#include "core/hle/service/nvdrv/nvdrv.h"
15#include "core/hle/service/nvdrv/nvmemp.h" 15#include "core/hle/service/nvdrv/nvmemp.h"
16 16
17namespace Service { 17namespace Service::Nvidia {
18namespace Nvidia {
19 18
20std::weak_ptr<Module> nvdrv; 19std::weak_ptr<Module> nvdrv;
21 20
@@ -69,5 +68,4 @@ ResultCode Module::Close(u32 fd) {
69 return RESULT_SUCCESS; 68 return RESULT_SUCCESS;
70} 69}
71 70
72} // namespace Nvidia 71} // namespace Service::Nvidia
73} // namespace Service
diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.h
index 6a55ff96d..579940817 100644
--- a/src/core/hle/service/nvdrv/nvdrv.h
+++ b/src/core/hle/service/nvdrv/nvdrv.h
@@ -10,8 +10,7 @@
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "core/hle/service/service.h" 11#include "core/hle/service/service.h"
12 12
13namespace Service { 13namespace Service::Nvidia {
14namespace Nvidia {
15 14
16namespace Devices { 15namespace Devices {
17class nvdevice; 16class nvdevice;
@@ -61,5 +60,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager);
61 60
62extern std::weak_ptr<Module> nvdrv; 61extern std::weak_ptr<Module> nvdrv;
63 62
64} // namespace Nvidia 63} // namespace Service::Nvidia
65} // namespace Service
diff --git a/src/core/hle/service/nvdrv/nvmemp.cpp b/src/core/hle/service/nvdrv/nvmemp.cpp
index 35d6c0c13..9ca6e5512 100644
--- a/src/core/hle/service/nvdrv/nvmemp.cpp
+++ b/src/core/hle/service/nvdrv/nvmemp.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/nvdrv/nvdrv.h" 8#include "core/hle/service/nvdrv/nvdrv.h"
9#include "core/hle/service/nvdrv/nvmemp.h" 9#include "core/hle/service/nvdrv/nvmemp.h"
10 10
11namespace Service { 11namespace Service::Nvidia {
12namespace Nvidia {
13 12
14NVMEMP::NVMEMP() : ServiceFramework("nvmemp") { 13NVMEMP::NVMEMP() : ServiceFramework("nvmemp") {
15 static const FunctionInfo functions[] = { 14 static const FunctionInfo functions[] = {
@@ -27,5 +26,4 @@ void NVMEMP::Cmd1(Kernel::HLERequestContext& ctx) {
27 UNIMPLEMENTED(); 26 UNIMPLEMENTED();
28} 27}
29 28
30} // namespace Nvidia 29} // namespace Service::Nvidia
31} // namespace Service
diff --git a/src/core/hle/service/nvdrv/nvmemp.h b/src/core/hle/service/nvdrv/nvmemp.h
index fb16026b0..dfdcabf4a 100644
--- a/src/core/hle/service/nvdrv/nvmemp.h
+++ b/src/core/hle/service/nvdrv/nvmemp.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Nvidia {
10namespace Nvidia {
11 10
12class NVMEMP final : public ServiceFramework<NVMEMP> { 11class NVMEMP final : public ServiceFramework<NVMEMP> {
13public: 12public:
@@ -19,5 +18,4 @@ private:
19 void Cmd1(Kernel::HLERequestContext& ctx); 18 void Cmd1(Kernel::HLERequestContext& ctx);
20}; 19};
21 20
22} // namespace Nvidia 21} // namespace Service::Nvidia
23} // namespace Service
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index e4ff2e267..03a4fed59 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -9,8 +9,7 @@
9#include "core/core_timing.h" 9#include "core/core_timing.h"
10#include "core/hle/service/nvflinger/buffer_queue.h" 10#include "core/hle/service/nvflinger/buffer_queue.h"
11 11
12namespace Service { 12namespace Service::NVFlinger {
13namespace NVFlinger {
14 13
15BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) { 14BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) {
16 native_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "BufferQueue NativeHandle"); 15 native_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "BufferQueue NativeHandle");
@@ -111,5 +110,4 @@ void BufferQueue::SetBufferWaitEvent(Kernel::SharedPtr<Kernel::Event>&& wait_eve
111 buffer_wait_event = std::move(wait_event); 110 buffer_wait_event = std::move(wait_event);
112} 111}
113 112
114} // namespace NVFlinger 113} // namespace Service::NVFlinger
115} // namespace Service
diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h
index 1de5767cb..95adc4706 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.h
+++ b/src/core/hle/service/nvflinger/buffer_queue.h
@@ -13,8 +13,7 @@ namespace CoreTiming {
13struct EventType; 13struct EventType;
14} 14}
15 15
16namespace Service { 16namespace Service::NVFlinger {
17namespace NVFlinger {
18 17
19struct IGBPBuffer { 18struct IGBPBuffer {
20 u32_le magic; 19 u32_le magic;
@@ -98,5 +97,4 @@ private:
98 Kernel::SharedPtr<Kernel::Event> buffer_wait_event; 97 Kernel::SharedPtr<Kernel::Event> buffer_wait_event;
99}; 98};
100 99
101} // namespace NVFlinger 100} // namespace Service::NVFlinger
102} // namespace Service
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index ee1bf0404..a99ebc8e6 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -16,8 +16,7 @@
16#include "video_core/renderer_base.h" 16#include "video_core/renderer_base.h"
17#include "video_core/video_core.h" 17#include "video_core/video_core.h"
18 18
19namespace Service { 19namespace Service::NVFlinger {
20namespace NVFlinger {
21 20
22constexpr size_t SCREEN_REFRESH_RATE = 60; 21constexpr size_t SCREEN_REFRESH_RATE = 60;
23constexpr u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE / SCREEN_REFRESH_RATE); 22constexpr u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE / SCREEN_REFRESH_RATE);
@@ -165,5 +164,4 @@ Display::Display(u64 id, std::string name) : id(id), name(std::move(name)) {
165 vsync_event = Kernel::Event::Create(Kernel::ResetType::Pulse, "Display VSync Event"); 164 vsync_event = Kernel::Event::Create(Kernel::ResetType::Pulse, "Display VSync Event");
166} 165}
167 166
168} // namespace NVFlinger 167} // namespace Service::NVFlinger
169} // namespace Service
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index 3126018ad..2c908297b 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -12,8 +12,7 @@ namespace CoreTiming {
12struct EventType; 12struct EventType;
13} 13}
14 14
15namespace Service { 15namespace Service::NVFlinger {
16namespace NVFlinger {
17 16
18class BufferQueue; 17class BufferQueue;
19 18
@@ -80,5 +79,4 @@ private:
80 CoreTiming::EventType* composition_event; 79 CoreTiming::EventType* composition_event;
81}; 80};
82 81
83} // namespace NVFlinger 82} // namespace Service::NVFlinger
84} // namespace Service
diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp
index 692b27a71..6ee81866d 100644
--- a/src/core/hle/service/pctl/pctl.cpp
+++ b/src/core/hle/service/pctl/pctl.cpp
@@ -5,12 +5,10 @@
5#include "core/hle/service/pctl/pctl.h" 5#include "core/hle/service/pctl/pctl.h"
6#include "core/hle/service/pctl/pctl_a.h" 6#include "core/hle/service/pctl/pctl_a.h"
7 7
8namespace Service { 8namespace Service::PCTL {
9namespace PCTL {
10 9
11void InstallInterfaces(SM::ServiceManager& service_manager) { 10void InstallInterfaces(SM::ServiceManager& service_manager) {
12 std::make_shared<PCTL_A>()->InstallAsService(service_manager); 11 std::make_shared<PCTL_A>()->InstallAsService(service_manager);
13} 12}
14 13
15} // namespace PCTL 14} // namespace Service::PCTL
16} // namespace Service
diff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.h
index 5fa67dd1b..f0a84b115 100644
--- a/src/core/hle/service/pctl/pctl.h
+++ b/src/core/hle/service/pctl/pctl.h
@@ -6,11 +6,9 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::PCTL {
10namespace PCTL {
11 10
12/// Registers all PCTL services with the specified service manager. 11/// Registers all PCTL services with the specified service manager.
13void InstallInterfaces(SM::ServiceManager& service_manager); 12void InstallInterfaces(SM::ServiceManager& service_manager);
14 13
15} // namespace PCTL 14} // namespace Service::PCTL
16} // namespace Service
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp
index 4e644be64..9fb4628ad 100644
--- a/src/core/hle/service/pctl/pctl_a.cpp
+++ b/src/core/hle/service/pctl/pctl_a.cpp
@@ -6,8 +6,7 @@
6#include "core/hle/ipc_helpers.h" 6#include "core/hle/ipc_helpers.h"
7#include "core/hle/service/pctl/pctl_a.h" 7#include "core/hle/service/pctl/pctl_a.h"
8 8
9namespace Service { 9namespace Service::PCTL {
10namespace PCTL {
11 10
12class IParentalControlService final : public ServiceFramework<IParentalControlService> { 11class IParentalControlService final : public ServiceFramework<IParentalControlService> {
13public: 12public:
@@ -125,5 +124,4 @@ PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {
125 RegisterHandlers(functions); 124 RegisterHandlers(functions);
126} 125}
127 126
128} // namespace PCTL 127} // namespace Service::PCTL
129} // namespace Service
diff --git a/src/core/hle/service/pctl/pctl_a.h b/src/core/hle/service/pctl/pctl_a.h
index 3aa8873a9..09ed82e1b 100644
--- a/src/core/hle/service/pctl/pctl_a.h
+++ b/src/core/hle/service/pctl/pctl_a.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::PCTL {
10namespace PCTL {
11 10
12class PCTL_A final : public ServiceFramework<PCTL_A> { 11class PCTL_A final : public ServiceFramework<PCTL_A> {
13public: 12public:
@@ -18,5 +17,4 @@ private:
18 void CreateService(Kernel::HLERequestContext& ctx); 17 void CreateService(Kernel::HLERequestContext& ctx);
19}; 18};
20 19
21} // namespace PCTL 20} // namespace Service::PCTL
22} // namespace Service
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index 8908a04a2..fc3e424d0 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -9,8 +9,7 @@
9#include "core/hle/kernel/client_session.h" 9#include "core/hle/kernel/client_session.h"
10#include "core/hle/service/set/set.h" 10#include "core/hle/service/set/set.h"
11 11
12namespace Service { 12namespace Service::Set {
13namespace Set {
14 13
15void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { 14void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
16 IPC::RequestParser rp{ctx}; 15 IPC::RequestParser rp{ctx};
@@ -41,5 +40,4 @@ SET::SET() : ServiceFramework("set") {
41 RegisterHandlers(functions); 40 RegisterHandlers(functions);
42} 41}
43 42
44} // namespace Set 43} // namespace Service::Set
45} // namespace Service
diff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.h
index 7b7814ed1..6a465949f 100644
--- a/src/core/hle/service/set/set.h
+++ b/src/core/hle/service/set/set.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Set {
10namespace Set {
11 10
12class SET final : public ServiceFramework<SET> { 11class SET final : public ServiceFramework<SET> {
13public: 12public:
@@ -18,5 +17,4 @@ private:
18 void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx); 17 void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
19}; 18};
20 19
21} // namespace Set 20} // namespace Service::Set
22} // namespace Service
diff --git a/src/core/hle/service/set/set_cal.cpp b/src/core/hle/service/set/set_cal.cpp
index 4810d39e8..7066ef725 100644
--- a/src/core/hle/service/set/set_cal.cpp
+++ b/src/core/hle/service/set/set_cal.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/set/set_cal.h" 5#include "core/hle/service/set/set_cal.h"
6 6
7namespace Service { 7namespace Service::Set {
8namespace Set {
9 8
10SET_CAL::SET_CAL() : ServiceFramework("set:cal") { 9SET_CAL::SET_CAL() : ServiceFramework("set:cal") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -45,5 +44,4 @@ SET_CAL::SET_CAL() : ServiceFramework("set:cal") {
45 RegisterHandlers(functions); 44 RegisterHandlers(functions);
46} 45}
47 46
48} // namespace Set 47} // namespace Service::Set
49} // namespace Service
diff --git a/src/core/hle/service/set/set_cal.h b/src/core/hle/service/set/set_cal.h
index 9c0b851d0..bb50336aa 100644
--- a/src/core/hle/service/set/set_cal.h
+++ b/src/core/hle/service/set/set_cal.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Set {
10namespace Set {
11 10
12class SET_CAL final : public ServiceFramework<SET_CAL> { 11class SET_CAL final : public ServiceFramework<SET_CAL> {
13public: 12public:
@@ -15,5 +14,4 @@ public:
15 ~SET_CAL() = default; 14 ~SET_CAL() = default;
16}; 15};
17 16
18} // namespace Set 17} // namespace Service::Set
19} // namespace Service
diff --git a/src/core/hle/service/set/set_fd.cpp b/src/core/hle/service/set/set_fd.cpp
index 8320d4250..c9f938716 100644
--- a/src/core/hle/service/set/set_fd.cpp
+++ b/src/core/hle/service/set/set_fd.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/set/set_fd.h" 5#include "core/hle/service/set/set_fd.h"
6 6
7namespace Service { 7namespace Service::Set {
8namespace Set {
9 8
10SET_FD::SET_FD() : ServiceFramework("set:fd") { 9SET_FD::SET_FD() : ServiceFramework("set:fd") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -21,5 +20,4 @@ SET_FD::SET_FD() : ServiceFramework("set:fd") {
21 RegisterHandlers(functions); 20 RegisterHandlers(functions);
22} 21}
23 22
24} // namespace Set 23} // namespace Service::Set
25} // namespace Service
diff --git a/src/core/hle/service/set/set_fd.h b/src/core/hle/service/set/set_fd.h
index 65b36bcb3..dbd850bc7 100644
--- a/src/core/hle/service/set/set_fd.h
+++ b/src/core/hle/service/set/set_fd.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Set {
10namespace Set {
11 10
12class SET_FD final : public ServiceFramework<SET_FD> { 11class SET_FD final : public ServiceFramework<SET_FD> {
13public: 12public:
@@ -15,5 +14,4 @@ public:
15 ~SET_FD() = default; 14 ~SET_FD() = default;
16}; 15};
17 16
18} // namespace Set 17} // namespace Service::Set
19} // namespace Service
diff --git a/src/core/hle/service/set/set_sys.cpp b/src/core/hle/service/set/set_sys.cpp
index b9115ca9e..fa85277fe 100644
--- a/src/core/hle/service/set/set_sys.cpp
+++ b/src/core/hle/service/set/set_sys.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/client_port.h" 7#include "core/hle/kernel/client_port.h"
8#include "core/hle/service/set/set_sys.h" 8#include "core/hle/service/set/set_sys.h"
9 9
10namespace Service { 10namespace Service::Set {
11namespace Set {
12 11
13void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) { 12void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {
14 13
@@ -173,5 +172,4 @@ SET_SYS::SET_SYS() : ServiceFramework("set:sys") {
173 RegisterHandlers(functions); 172 RegisterHandlers(functions);
174} 173}
175 174
176} // namespace Set 175} // namespace Service::Set
177} // namespace Service
diff --git a/src/core/hle/service/set/set_sys.h b/src/core/hle/service/set/set_sys.h
index 105f1a3c7..b77a97cde 100644
--- a/src/core/hle/service/set/set_sys.h
+++ b/src/core/hle/service/set/set_sys.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Set {
10namespace Set {
11 10
12class SET_SYS final : public ServiceFramework<SET_SYS> { 11class SET_SYS final : public ServiceFramework<SET_SYS> {
13public: 12public:
@@ -18,5 +17,4 @@ private:
18 void GetColorSetId(Kernel::HLERequestContext& ctx); 17 void GetColorSetId(Kernel::HLERequestContext& ctx);
19}; 18};
20 19
21} // namespace Set 20} // namespace Service::Set
22} // namespace Service
diff --git a/src/core/hle/service/set/settings.cpp b/src/core/hle/service/set/settings.cpp
index c6bc9e240..cf5541ca8 100644
--- a/src/core/hle/service/set/settings.cpp
+++ b/src/core/hle/service/set/settings.cpp
@@ -8,8 +8,7 @@
8#include "core/hle/service/set/set_sys.h" 8#include "core/hle/service/set/set_sys.h"
9#include "core/hle/service/set/settings.h" 9#include "core/hle/service/set/settings.h"
10 10
11namespace Service { 11namespace Service::Set {
12namespace Set {
13 12
14void InstallInterfaces(SM::ServiceManager& service_manager) { 13void InstallInterfaces(SM::ServiceManager& service_manager) {
15 std::make_shared<SET>()->InstallAsService(service_manager); 14 std::make_shared<SET>()->InstallAsService(service_manager);
@@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
18 std::make_shared<SET_SYS>()->InstallAsService(service_manager); 17 std::make_shared<SET_SYS>()->InstallAsService(service_manager);
19} 18}
20 19
21} // namespace Set 20} // namespace Service::Set
22} // namespace Service
diff --git a/src/core/hle/service/set/settings.h b/src/core/hle/service/set/settings.h
index 6c8d5a58c..6606ce776 100644
--- a/src/core/hle/service/set/settings.h
+++ b/src/core/hle/service/set/settings.h
@@ -6,11 +6,9 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Set {
10namespace Set {
11 10
12/// Registers all Settings services with the specified service manager. 11/// Registers all Settings services with the specified service manager.
13void InstallInterfaces(SM::ServiceManager& service_manager); 12void InstallInterfaces(SM::ServiceManager& service_manager);
14 13
15} // namespace Set 14} // namespace Service::Set
16} // namespace Service
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp
index e12c53442..13e31620d 100644
--- a/src/core/hle/service/sm/controller.cpp
+++ b/src/core/hle/service/sm/controller.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/session.h" 7#include "core/hle/kernel/session.h"
8#include "core/hle/service/sm/controller.h" 8#include "core/hle/service/sm/controller.h"
9 9
10namespace Service { 10namespace Service::SM {
11namespace SM {
12 11
13void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) { 12void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) {
14 ASSERT_MSG(!ctx.Session()->IsDomain(), "session is alread a domain"); 13 ASSERT_MSG(!ctx.Session()->IsDomain(), "session is alread a domain");
@@ -58,5 +57,4 @@ Controller::Controller() : ServiceFramework("IpcController") {
58 RegisterHandlers(functions); 57 RegisterHandlers(functions);
59} 58}
60 59
61} // namespace SM 60} // namespace Service::SM
62} // namespace Service
diff --git a/src/core/hle/service/sm/controller.h b/src/core/hle/service/sm/controller.h
index 7b4bc4b75..a4de52cd2 100644
--- a/src/core/hle/service/sm/controller.h
+++ b/src/core/hle/service/sm/controller.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::SM {
10namespace SM {
11 10
12class Controller final : public ServiceFramework<Controller> { 11class Controller final : public ServiceFramework<Controller> {
13public: 12public:
@@ -21,5 +20,4 @@ private:
21 void QueryPointerBufferSize(Kernel::HLERequestContext& ctx); 20 void QueryPointerBufferSize(Kernel::HLERequestContext& ctx);
22}; 21};
23 22
24} // namespace SM 23} // namespace Service::SM
25} // namespace Service
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index bc72512a0..297a4f2c6 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -12,8 +12,7 @@
12#include "core/hle/service/sm/controller.h" 12#include "core/hle/service/sm/controller.h"
13#include "core/hle/service/sm/sm.h" 13#include "core/hle/service/sm/sm.h"
14 14
15namespace Service { 15namespace Service::SM {
16namespace SM {
17 16
18void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) { 17void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) {
19 controller_interface->InvokeRequest(context); 18 controller_interface->InvokeRequest(context);
@@ -132,5 +131,4 @@ SM::SM(std::shared_ptr<ServiceManager> service_manager)
132 RegisterHandlers(functions); 131 RegisterHandlers(functions);
133} 132}
134 133
135} // namespace SM 134} // namespace Service::SM
136} // namespace Service
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h
index 11fa788ca..40421cfd5 100644
--- a/src/core/hle/service/sm/sm.h
+++ b/src/core/hle/service/sm/sm.h
@@ -17,8 +17,7 @@ class ServerPort;
17class SessionRequestHandler; 17class SessionRequestHandler;
18} // namespace Kernel 18} // namespace Kernel
19 19
20namespace Service { 20namespace Service::SM {
21namespace SM {
22 21
23/// Interface to "sm:" service 22/// Interface to "sm:" service
24class SM final : public ServiceFramework<SM> { 23class SM final : public ServiceFramework<SM> {
@@ -62,5 +61,4 @@ private:
62 61
63extern std::shared_ptr<ServiceManager> g_service_manager; 62extern std::shared_ptr<ServiceManager> g_service_manager;
64 63
65} // namespace SM 64} // namespace Service::SM
66} // namespace Service
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp
index 929e19fec..f99809bed 100644
--- a/src/core/hle/service/sockets/bsd.cpp
+++ b/src/core/hle/service/sockets/bsd.cpp
@@ -5,8 +5,7 @@
5#include "core/hle/ipc_helpers.h" 5#include "core/hle/ipc_helpers.h"
6#include "core/hle/service/sockets/bsd.h" 6#include "core/hle/service/sockets/bsd.h"
7 7
8namespace Service { 8namespace Service::Sockets {
9namespace Sockets {
10 9
11void BSD::RegisterClient(Kernel::HLERequestContext& ctx) { 10void BSD::RegisterClient(Kernel::HLERequestContext& ctx) {
12 LOG_WARNING(Service, "(STUBBED) called"); 11 LOG_WARNING(Service, "(STUBBED) called");
@@ -111,5 +110,4 @@ BSD::BSD(const char* name) : ServiceFramework(name) {
111 RegisterHandlers(functions); 110 RegisterHandlers(functions);
112} 111}
113 112
114} // namespace Sockets 113} // namespace Service::Sockets
115} // namespace Service
diff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.h
index 32d949e95..a6b1ca7d0 100644
--- a/src/core/hle/service/sockets/bsd.h
+++ b/src/core/hle/service/sockets/bsd.h
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
9 9
10namespace Service { 10namespace Service::Sockets {
11namespace Sockets {
12 11
13class BSD final : public ServiceFramework<BSD> { 12class BSD final : public ServiceFramework<BSD> {
14public: 13public:
@@ -27,5 +26,4 @@ private:
27 u32 next_fd = 1; 26 u32 next_fd = 1;
28}; 27};
29 28
30} // namespace Sockets 29} // namespace Service::Sockets
31} // namespace Service
diff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cpp
index e3542d325..8682dc2e0 100644
--- a/src/core/hle/service/sockets/nsd.cpp
+++ b/src/core/hle/service/sockets/nsd.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/sockets/nsd.h" 5#include "core/hle/service/sockets/nsd.h"
6 6
7namespace Service { 7namespace Service::Sockets {
8namespace Sockets {
9 8
10NSD::NSD(const char* name) : ServiceFramework(name) { 9NSD::NSD(const char* name) : ServiceFramework(name) {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -30,5 +29,4 @@ NSD::NSD(const char* name) : ServiceFramework(name) {
30 RegisterHandlers(functions); 29 RegisterHandlers(functions);
31} 30}
32 31
33} // namespace Sockets 32} // namespace Service::Sockets
34} // namespace Service
diff --git a/src/core/hle/service/sockets/nsd.h b/src/core/hle/service/sockets/nsd.h
index a7c15a860..3b7edfc43 100644
--- a/src/core/hle/service/sockets/nsd.h
+++ b/src/core/hle/service/sockets/nsd.h
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
9 9
10namespace Service { 10namespace Service::Sockets {
11namespace Sockets {
12 11
13class NSD final : public ServiceFramework<NSD> { 12class NSD final : public ServiceFramework<NSD> {
14public: 13public:
@@ -16,5 +15,4 @@ public:
16 ~NSD() = default; 15 ~NSD() = default;
17}; 16};
18 17
19} // namespace Sockets 18} // namespace Service::Sockets
20} // namespace Service
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp
index 633488b18..d235c4cfd 100644
--- a/src/core/hle/service/sockets/sfdnsres.cpp
+++ b/src/core/hle/service/sockets/sfdnsres.cpp
@@ -5,8 +5,7 @@
5#include "core/hle/ipc_helpers.h" 5#include "core/hle/ipc_helpers.h"
6#include "core/hle/service/sockets/sfdnsres.h" 6#include "core/hle/service/sockets/sfdnsres.h"
7 7
8namespace Service { 8namespace Service::Sockets {
9namespace Sockets {
10 9
11void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) { 10void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
12 IPC::RequestParser rp{ctx}; 11 IPC::RequestParser rp{ctx};
@@ -35,5 +34,4 @@ SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
35 RegisterHandlers(functions); 34 RegisterHandlers(functions);
36} 35}
37 36
38} // namespace Sockets 37} // namespace Service::Sockets
39} // namespace Service
diff --git a/src/core/hle/service/sockets/sfdnsres.h b/src/core/hle/service/sockets/sfdnsres.h
index c07cc1594..62c7e35bf 100644
--- a/src/core/hle/service/sockets/sfdnsres.h
+++ b/src/core/hle/service/sockets/sfdnsres.h
@@ -7,8 +7,7 @@
7#include "core/hle/kernel/hle_ipc.h" 7#include "core/hle/kernel/hle_ipc.h"
8#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
9 9
10namespace Service { 10namespace Service::Sockets {
11namespace Sockets {
12 11
13class SFDNSRES final : public ServiceFramework<SFDNSRES> { 12class SFDNSRES final : public ServiceFramework<SFDNSRES> {
14public: 13public:
@@ -19,5 +18,4 @@ private:
19 void GetAddrInfo(Kernel::HLERequestContext& ctx); 18 void GetAddrInfo(Kernel::HLERequestContext& ctx);
20}; 19};
21 20
22} // namespace Sockets 21} // namespace Service::Sockets
23} // namespace Service
diff --git a/src/core/hle/service/sockets/sockets.cpp b/src/core/hle/service/sockets/sockets.cpp
index cedc276d9..05bd10d35 100644
--- a/src/core/hle/service/sockets/sockets.cpp
+++ b/src/core/hle/service/sockets/sockets.cpp
@@ -7,8 +7,7 @@
7#include "core/hle/service/sockets/sfdnsres.h" 7#include "core/hle/service/sockets/sfdnsres.h"
8#include "core/hle/service/sockets/sockets.h" 8#include "core/hle/service/sockets/sockets.h"
9 9
10namespace Service { 10namespace Service::Sockets {
11namespace Sockets {
12 11
13void InstallInterfaces(SM::ServiceManager& service_manager) { 12void InstallInterfaces(SM::ServiceManager& service_manager) {
14 std::make_shared<BSD>("bsd:s")->InstallAsService(service_manager); 13 std::make_shared<BSD>("bsd:s")->InstallAsService(service_manager);
@@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
18 std::make_shared<SFDNSRES>()->InstallAsService(service_manager); 17 std::make_shared<SFDNSRES>()->InstallAsService(service_manager);
19} 18}
20 19
21} // namespace Sockets 20} // namespace Service::Sockets
22} // namespace Service
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h
index 7e89c8d2c..ca8a6a7e0 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -6,11 +6,9 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Sockets {
10namespace Sockets {
11 10
12/// Registers all Sockets services with the specified service manager. 11/// Registers all Sockets services with the specified service manager.
13void InstallInterfaces(SM::ServiceManager& service_manager); 12void InstallInterfaces(SM::ServiceManager& service_manager);
14 13
15} // namespace Sockets 14} // namespace Service::Sockets
16} // namespace Service
diff --git a/src/core/hle/service/spl/csrng.cpp b/src/core/hle/service/spl/csrng.cpp
index cde05717a..b9e6b799d 100644
--- a/src/core/hle/service/spl/csrng.cpp
+++ b/src/core/hle/service/spl/csrng.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/spl/csrng.h" 5#include "core/hle/service/spl/csrng.h"
6 6
7namespace Service { 7namespace Service::SPL {
8namespace SPL {
9 8
10CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") { 9CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -14,5 +13,4 @@ CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(modul
14 RegisterHandlers(functions); 13 RegisterHandlers(functions);
15} 14}
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service
diff --git a/src/core/hle/service/spl/csrng.h b/src/core/hle/service/spl/csrng.h
index 59ca794dd..3f849b5a7 100644
--- a/src/core/hle/service/spl/csrng.h
+++ b/src/core/hle/service/spl/csrng.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/spl/module.h" 7#include "core/hle/service/spl/module.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class CSRNG final : public Module::Interface { 11class CSRNG final : public Module::Interface {
13public: 12public:
14 explicit CSRNG(std::shared_ptr<Module> module); 13 explicit CSRNG(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service
diff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cpp
index fc1bcd94c..3f5a342a7 100644
--- a/src/core/hle/service/spl/module.cpp
+++ b/src/core/hle/service/spl/module.cpp
@@ -11,8 +11,7 @@
11#include "core/hle/service/spl/module.h" 11#include "core/hle/service/spl/module.h"
12#include "core/hle/service/spl/spl.h" 12#include "core/hle/service/spl/spl.h"
13 13
14namespace Service { 14namespace Service::SPL {
15namespace SPL {
16 15
17Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 16Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
18 : ServiceFramework(name), module(std::move(module)) {} 17 : ServiceFramework(name), module(std::move(module)) {}
@@ -38,5 +37,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
38 std::make_shared<SPL>(module)->InstallAsService(service_manager); 37 std::make_shared<SPL>(module)->InstallAsService(service_manager);
39} 38}
40 39
41} // namespace SPL 40} // namespace Service::SPL
42} // namespace Service
diff --git a/src/core/hle/service/spl/module.h b/src/core/hle/service/spl/module.h
index 12cdb2980..6ab91b400 100644
--- a/src/core/hle/service/spl/module.h
+++ b/src/core/hle/service/spl/module.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -25,5 +24,4 @@ public:
25/// Registers all SPL services with the specified service manager. 24/// Registers all SPL services with the specified service manager.
26void InstallInterfaces(SM::ServiceManager& service_manager); 25void InstallInterfaces(SM::ServiceManager& service_manager);
27 26
28} // namespace SPL 27} // namespace Service::SPL
29} // namespace Service
diff --git a/src/core/hle/service/spl/spl.cpp b/src/core/hle/service/spl/spl.cpp
index 3fcef341e..bb1e03342 100644
--- a/src/core/hle/service/spl/spl.cpp
+++ b/src/core/hle/service/spl/spl.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/spl/spl.h" 5#include "core/hle/service/spl/spl.h"
6 6
7namespace Service { 7namespace Service::SPL {
8namespace SPL {
9 8
10SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") { 9SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -43,5 +42,4 @@ SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module),
43 RegisterHandlers(functions); 42 RegisterHandlers(functions);
44} 43}
45 44
46} // namespace SPL 45} // namespace Service::SPL
47} // namespace Service
diff --git a/src/core/hle/service/spl/spl.h b/src/core/hle/service/spl/spl.h
index 9fd6059af..69c4c1747 100644
--- a/src/core/hle/service/spl/spl.h
+++ b/src/core/hle/service/spl/spl.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/spl/module.h" 7#include "core/hle/service/spl/module.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class SPL final : public Module::Interface { 11class SPL final : public Module::Interface {
13public: 12public:
14 explicit SPL(std::shared_ptr<Module> module); 13 explicit SPL(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 01a03ec83..11d438728 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -5,8 +5,7 @@
5#include "core/hle/ipc_helpers.h" 5#include "core/hle/ipc_helpers.h"
6#include "core/hle/service/ssl/ssl.h" 6#include "core/hle/service/ssl/ssl.h"
7 7
8namespace Service { 8namespace Service::SSL {
9namespace SSL {
10 9
11class ISslConnection final : public ServiceFramework<ISslConnection> { 10class ISslConnection final : public ServiceFramework<ISslConnection> {
12public: 11public:
@@ -107,5 +106,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
107 std::make_shared<SSL>()->InstallAsService(service_manager); 106 std::make_shared<SSL>()->InstallAsService(service_manager);
108} 107}
109 108
110} // namespace SSL 109} // namespace Service::SSL
111} // namespace Service
diff --git a/src/core/hle/service/ssl/ssl.h b/src/core/hle/service/ssl/ssl.h
index 7fcff5ccd..87538a639 100644
--- a/src/core/hle/service/ssl/ssl.h
+++ b/src/core/hle/service/ssl/ssl.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::SSL {
10namespace SSL {
11 10
12class SSL final : public ServiceFramework<SSL> { 11class SSL final : public ServiceFramework<SSL> {
13public: 12public:
@@ -21,5 +20,4 @@ private:
21/// Registers all SSL services with the specified service manager. 20/// Registers all SSL services with the specified service manager.
22void InstallInterfaces(SM::ServiceManager& service_manager); 21void InstallInterfaces(SM::ServiceManager& service_manager);
23 22
24} // namespace SSL 23} // namespace Service::SSL
25} // namespace Service
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index 382188a62..2604ecc1c 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -12,8 +12,7 @@
12#include "core/hle/service/time/time_s.h" 12#include "core/hle/service/time/time_s.h"
13#include "core/hle/service/time/time_u.h" 13#include "core/hle/service/time/time_u.h"
14 14
15namespace Service { 15namespace Service::Time {
16namespace Time {
17 16
18class ISystemClock final : public ServiceFramework<ISystemClock> { 17class ISystemClock final : public ServiceFramework<ISystemClock> {
19public: 18public:
@@ -166,5 +165,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
166 std::make_shared<TIME_U>(time)->InstallAsService(service_manager); 165 std::make_shared<TIME_U>(time)->InstallAsService(service_manager);
167} 166}
168 167
169} // namespace Time 168} // namespace Service::Time
170} // namespace Service
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 197029e7a..12fe1995a 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::Time {
10namespace Time {
11 10
12// TODO(Rozelette) RE this structure 11// TODO(Rozelette) RE this structure
13struct LocationName { 12struct LocationName {
@@ -66,5 +65,4 @@ public:
66/// Registers all Time services with the specified service manager. 65/// Registers all Time services with the specified service manager.
67void InstallInterfaces(SM::ServiceManager& service_manager); 66void InstallInterfaces(SM::ServiceManager& service_manager);
68 67
69} // namespace Time 68} // namespace Service::Time
70} // namespace Service
diff --git a/src/core/hle/service/time/time_s.cpp b/src/core/hle/service/time/time_s.cpp
index cb58efcb3..0b599ea00 100644
--- a/src/core/hle/service/time/time_s.cpp
+++ b/src/core/hle/service/time/time_s.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/time/time_s.h" 5#include "core/hle/service/time/time_s.h"
6 6
7namespace Service { 7namespace Service::Time {
8namespace Time {
9 8
10TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:s") { 9TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:s") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -29,5 +28,4 @@ TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time)
29 RegisterHandlers(functions); 28 RegisterHandlers(functions);
30} 29}
31 30
32} // namespace Time 31} // namespace Service::Time
33} // namespace Service
diff --git a/src/core/hle/service/time/time_s.h b/src/core/hle/service/time/time_s.h
index abc2a8c5a..4a2daa513 100644
--- a/src/core/hle/service/time/time_s.h
+++ b/src/core/hle/service/time/time_s.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/time/time.h" 7#include "core/hle/service/time/time.h"
8 8
9namespace Service { 9namespace Service::Time {
10namespace Time {
11 10
12class TIME_S final : public Module::Interface { 11class TIME_S final : public Module::Interface {
13public: 12public:
14 explicit TIME_S(std::shared_ptr<Module> time); 13 explicit TIME_S(std::shared_ptr<Module> time);
15}; 14};
16 15
17} // namespace Time 16} // namespace Service::Time
18} // namespace Service
diff --git a/src/core/hle/service/time/time_u.cpp b/src/core/hle/service/time/time_u.cpp
index bbd1ecab3..1ed42c419 100644
--- a/src/core/hle/service/time/time_u.cpp
+++ b/src/core/hle/service/time/time_u.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/time/time_u.h" 5#include "core/hle/service/time/time_u.h"
6 6
7namespace Service { 7namespace Service::Time {
8namespace Time {
9 8
10TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:u") { 9TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:u") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -29,5 +28,4 @@ TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time)
29 RegisterHandlers(functions); 28 RegisterHandlers(functions);
30} 29}
31 30
32} // namespace Time 31} // namespace Service::Time
33} // namespace Service
diff --git a/src/core/hle/service/time/time_u.h b/src/core/hle/service/time/time_u.h
index f99d25057..3724bcdc7 100644
--- a/src/core/hle/service/time/time_u.h
+++ b/src/core/hle/service/time/time_u.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/time/time.h" 7#include "core/hle/service/time/time.h"
8 8
9namespace Service { 9namespace Service::Time {
10namespace Time {
11 10
12class TIME_U final : public Module::Interface { 11class TIME_U final : public Module::Interface {
13public: 12public:
14 explicit TIME_U(std::shared_ptr<Module> time); 13 explicit TIME_U(std::shared_ptr<Module> time);
15}; 14};
16 15
17} // namespace Time 16} // namespace Service::Time
18} // namespace Service
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 7c319ee67..66c18135b 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -21,8 +21,7 @@
21#include "video_core/renderer_base.h" 21#include "video_core/renderer_base.h"
22#include "video_core/video_core.h" 22#include "video_core/video_core.h"
23 23
24namespace Service { 24namespace Service::VI {
25namespace VI {
26 25
27struct DisplayInfo { 26struct DisplayInfo {
28 char display_name[0x40]{"Default"}; 27 char display_name[0x40]{"Default"};
@@ -967,5 +966,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager,
967 std::make_shared<VI_U>(module, nv_flinger)->InstallAsService(service_manager); 966 std::make_shared<VI_U>(module, nv_flinger)->InstallAsService(service_manager);
968} 967}
969 968
970} // namespace VI 969} // namespace Service::VI
971} // namespace Service
diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h
index 7f16fad8e..e8bda01d7 100644
--- a/src/core/hle/service/vi/vi.h
+++ b/src/core/hle/service/vi/vi.h
@@ -11,8 +11,7 @@ namespace CoreTiming {
11struct EventType; 11struct EventType;
12} 12}
13 13
14namespace Service { 14namespace Service::VI {
15namespace VI {
16 15
17enum class DisplayResolution : u32 { 16enum class DisplayResolution : u32 {
18 DockedWidth = 1920, 17 DockedWidth = 1920,
@@ -40,5 +39,4 @@ public:
40void InstallInterfaces(SM::ServiceManager& service_manager, 39void InstallInterfaces(SM::ServiceManager& service_manager,
41 std::shared_ptr<NVFlinger::NVFlinger> nv_flinger); 40 std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
42 41
43} // namespace VI 42} // namespace Service::VI
44} // namespace Service
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp
index 5781fa9ec..d47da565b 100644
--- a/src/core/hle/service/vi/vi_m.cpp
+++ b/src/core/hle/service/vi/vi_m.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/vi/vi_m.h" 5#include "core/hle/service/vi/vi_m.h"
6 6
7namespace Service { 7namespace Service::VI {
8namespace VI {
9 8
10VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) 9VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
11 : Module::Interface(std::move(module), "vi:m", std::move(nv_flinger)) { 10 : Module::Interface(std::move(module), "vi:m", std::move(nv_flinger)) {
@@ -16,5 +15,4 @@ VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>
16 RegisterHandlers(functions); 15 RegisterHandlers(functions);
17} 16}
18 17
19} // namespace VI 18} // namespace Service::VI
20} // namespace Service
diff --git a/src/core/hle/service/vi/vi_m.h b/src/core/hle/service/vi/vi_m.h
index 0f7b799d6..6abb9b3a3 100644
--- a/src/core/hle/service/vi/vi_m.h
+++ b/src/core/hle/service/vi/vi_m.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/vi/vi.h" 7#include "core/hle/service/vi/vi.h"
8 8
9namespace Service { 9namespace Service::VI {
10namespace VI {
11 10
12class VI_M final : public Module::Interface { 11class VI_M final : public Module::Interface {
13public: 12public:
14 explicit VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger); 13 explicit VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
15}; 14};
16 15
17} // namespace VI 16} // namespace Service::VI
18} // namespace Service
diff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cpp
index 1f937b2a8..8f82e797f 100644
--- a/src/core/hle/service/vi/vi_s.cpp
+++ b/src/core/hle/service/vi/vi_s.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/vi/vi_s.h" 5#include "core/hle/service/vi/vi_s.h"
6 6
7namespace Service { 7namespace Service::VI {
8namespace VI {
9 8
10VI_S::VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) 9VI_S::VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
11 : Module::Interface(std::move(module), "vi:s", std::move(nv_flinger)) { 10 : Module::Interface(std::move(module), "vi:s", std::move(nv_flinger)) {
@@ -16,5 +15,4 @@ VI_S::VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>
16 RegisterHandlers(functions); 15 RegisterHandlers(functions);
17} 16}
18 17
19} // namespace VI 18} // namespace Service::VI
20} // namespace Service
diff --git a/src/core/hle/service/vi/vi_s.h b/src/core/hle/service/vi/vi_s.h
index 7b32fdddc..8f16f804f 100644
--- a/src/core/hle/service/vi/vi_s.h
+++ b/src/core/hle/service/vi/vi_s.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/vi/vi.h" 7#include "core/hle/service/vi/vi.h"
8 8
9namespace Service { 9namespace Service::VI {
10namespace VI {
11 10
12class VI_S final : public Module::Interface { 11class VI_S final : public Module::Interface {
13public: 12public:
14 explicit VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger); 13 explicit VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
15}; 14};
16 15
17} // namespace VI 16} // namespace Service::VI
18} // namespace Service
diff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cpp
index d675dfd9e..b84aed1d5 100644
--- a/src/core/hle/service/vi/vi_u.cpp
+++ b/src/core/hle/service/vi/vi_u.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/vi/vi_u.h" 5#include "core/hle/service/vi/vi_u.h"
6 6
7namespace Service { 7namespace Service::VI {
8namespace VI {
9 8
10VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) 9VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
11 : Module::Interface(std::move(module), "vi:u", std::move(nv_flinger)) { 10 : Module::Interface(std::move(module), "vi:u", std::move(nv_flinger)) {
@@ -15,5 +14,4 @@ VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>
15 RegisterHandlers(functions); 14 RegisterHandlers(functions);
16} 15}
17 16
18} // namespace VI 17} // namespace Service::VI
19} // namespace Service
diff --git a/src/core/hle/service/vi/vi_u.h b/src/core/hle/service/vi/vi_u.h
index c557a2235..e9b4f76b2 100644
--- a/src/core/hle/service/vi/vi_u.h
+++ b/src/core/hle/service/vi/vi_u.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/vi/vi.h" 7#include "core/hle/service/vi/vi.h"
8 8
9namespace Service { 9namespace Service::VI {
10namespace VI {
11 10
12class VI_U final : public Module::Interface { 11class VI_U final : public Module::Interface {
13public: 12public:
14 explicit VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger); 13 explicit VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
15}; 14};
16 15
17} // namespace VI 16} // namespace Service::VI
18} // namespace Service