VERY experimental Nintendo Switch 2 emulator
C++
service: Use nested namespace specifiers where applicable
Lioncash6d94dd21a58a
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cppindex 949bf06b30..6bafb2dce5 100644--- a/src/core/hle/service/acc/acc.cpp+++ b/src/core/hle/service/acc/acc.cpp@@ -10,8 +10,7 @@#include "core/hle/service/acc/acc_u0.h"#include "core/hle/service/acc/acc_u1.h"-namespace Service {-namespace Account {+namespace Service::Account {// TODO: RE this structurestruct UserData {@@ -148,5 +147,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<ACC_U1>(module)->InstallAsService(service_manager);}-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.hindex 2d2f57b7de..58f8d260cc 100644--- a/src/core/hle/service/acc/acc.h+++ b/src/core/hle/service/acc/acc.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Account {+namespace Service::Account {class Module final {public:@@ -31,5 +30,4 @@ public:/// Registers all ACC services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_aa.cpp b/src/core/hle/service/acc/acc_aa.cppindex 76deaa07fd..280b3e464e 100644--- a/src/core/hle/service/acc/acc_aa.cpp+++ b/src/core/hle/service/acc/acc_aa.cpp@@ -4,8 +4,7 @@#include "core/hle/service/acc/acc_aa.h"-namespace Service {-namespace Account {+namespace Service::Account {ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:aa") {static const FunctionInfo functions[] = {@@ -18,5 +17,4 @@ ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_aa.h b/src/core/hle/service/acc/acc_aa.hindex 5069c68900..796f7ef85d 100644--- a/src/core/hle/service/acc/acc_aa.h+++ b/src/core/hle/service/acc/acc_aa.h@@ -6,13 +6,11 @@#include "core/hle/service/acc/acc.h"-namespace Service {-namespace Account {+namespace Service::Account {class ACC_AA final : public Module::Interface {public:explicit ACC_AA(std::shared_ptr<Module> module);};-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_su.cpp b/src/core/hle/service/acc/acc_su.cppindex 538f9d9b1c..9ffb40b223 100644--- a/src/core/hle/service/acc/acc_su.cpp+++ b/src/core/hle/service/acc/acc_su.cpp@@ -4,8 +4,7 @@#include "core/hle/service/acc/acc_su.h"-namespace Service {-namespace Account {+namespace Service::Account {ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:su") {static const FunctionInfo functions[] = {@@ -51,5 +50,4 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cppindex 7b9c667ef5..44e21ac095 100644--- a/src/core/hle/service/acc/acc_u0.cpp+++ b/src/core/hle/service/acc/acc_u0.cpp@@ -4,8 +4,7 @@#include "core/hle/service/acc/acc_u0.h"-namespace Service {-namespace Account {+namespace Service::Account {ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u0") {static const FunctionInfo functions[] = {@@ -31,5 +30,4 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.hindex d4f36e1723..6ded596b32 100644--- a/src/core/hle/service/acc/acc_u0.h+++ b/src/core/hle/service/acc/acc_u0.h@@ -6,13 +6,11 @@#include "core/hle/service/acc/acc.h"-namespace Service {-namespace Account {+namespace Service::Account {class ACC_U0 final : public Module::Interface {public:explicit ACC_U0(std::shared_ptr<Module> module);};-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u1.cpp b/src/core/hle/service/acc/acc_u1.cppindex dea353554a..d101d4e0de 100644--- a/src/core/hle/service/acc/acc_u1.cpp+++ b/src/core/hle/service/acc/acc_u1.cpp@@ -4,8 +4,7 @@#include "core/hle/service/acc/acc_u1.h"-namespace Service {-namespace Account {+namespace Service::Account {ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u1") {static const FunctionInfo functions[] = {@@ -38,5 +37,4 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u1.h b/src/core/hle/service/acc/acc_u1.hindex 432d5b3e97..5e3e7659b8 100644--- a/src/core/hle/service/acc/acc_u1.h+++ b/src/core/hle/service/acc/acc_u1.h@@ -6,13 +6,11 @@#include "core/hle/service/acc/acc.h"-namespace Service {-namespace Account {+namespace Service::Account {class ACC_U1 final : public Module::Interface {public:explicit ACC_U1(std::shared_ptr<Module> module);};-} // namespace Account-} // namespace Service+} // namespace Service::Accountdiff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex bfc431e885..f41a59afeb 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -14,8 +14,7 @@#include "core/hle/service/nvflinger/nvflinger.h"#include "core/settings.h"-namespace Service {-namespace AM {+namespace Service::AM {IWindowController::IWindowController() : ServiceFramework("IWindowController") {static const FunctionInfo functions[] = {@@ -571,5 +570,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager,std::make_shared<AppletOE>(nvflinger)->InstallAsService(service_manager);}-} // namespace AM-} // namespace Service+} // namespace Service::AMdiff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cppindex 154d346d59..4f0698a8a9 100644--- a/src/core/hle/service/am/applet_ae.cpp+++ b/src/core/hle/service/am/applet_ae.cpp@@ -8,8 +8,7 @@#include "core/hle/service/am/applet_ae.h"#include "core/hle/service/nvflinger/nvflinger.h"-namespace Service {-namespace AM {+namespace Service::AM {class ILibraryAppletProxy final : public ServiceFramework<ILibraryAppletProxy> {public:@@ -109,5 +108,4 @@ AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)RegisterHandlers(functions);}-} // namespace AM-} // namespace Service+} // namespace Service::AMdiff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cppindex 334c38392b..674b4d7535 100644--- a/src/core/hle/service/am/applet_oe.cpp+++ b/src/core/hle/service/am/applet_oe.cpp@@ -8,8 +8,7 @@#include "core/hle/service/am/applet_oe.h"#include "core/hle/service/nvflinger/nvflinger.h"-namespace Service {-namespace AM {+namespace Service::AM {class IApplicationProxy final : public ServiceFramework<IApplicationProxy> {public:@@ -104,5 +103,4 @@ AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)RegisterHandlers(functions);}-} // namespace AM-} // namespace Service+} // namespace Service::AMdiff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cppindex f64001df36..6e7438580c 100644--- a/src/core/hle/service/aoc/aoc_u.cpp+++ b/src/core/hle/service/aoc/aoc_u.cpp@@ -6,8 +6,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/aoc/aoc_u.h"-namespace Service {-namespace AOC {+namespace Service::AOC {AOC_U::AOC_U() : ServiceFramework("aoc:u") {static const FunctionInfo functions[] = {@@ -42,5 +41,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<AOC_U>()->InstallAsService(service_manager);}-} // namespace AOC-} // namespace Service+} // namespace Service::AOCdiff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.hindex 6e0ba15a5e..17d48ef304 100644--- a/src/core/hle/service/aoc/aoc_u.h+++ b/src/core/hle/service/aoc/aoc_u.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace AOC {+namespace Service::AOC {class AOC_U final : public ServiceFramework<AOC_U> {public:@@ -22,5 +21,4 @@ private:/// Registers all AOC services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace AOC-} // namespace Service+} // namespace Service::AOCdiff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cppindex c4b09b4359..7a185c6c81 100644--- a/src/core/hle/service/apm/apm.cpp+++ b/src/core/hle/service/apm/apm.cpp@@ -7,8 +7,7 @@#include "core/hle/service/apm/apm.h"#include "core/hle/service/apm/interface.h"-namespace Service {-namespace APM {+namespace Service::APM {void InstallInterfaces(SM::ServiceManager& service_manager) {auto module_ = std::make_shared<Module>();@@ -16,5 +15,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<APM>(module_, "apm:p")->InstallAsService(service_manager);}-} // namespace APM-} // namespace Service+} // namespace Service::APMdiff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.hindex 070ab21f87..90a80d51bd 100644--- a/src/core/hle/service/apm/apm.h+++ b/src/core/hle/service/apm/apm.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace APM {+namespace Service::APM {enum class PerformanceMode : u8 {Handheld = 0,@@ -23,5 +22,4 @@ public:/// Registers all AM services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace APM-} // namespace Service+} // namespace Service::APMdiff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cppindex 0179351ba9..4e11f3f14a 100644--- a/src/core/hle/service/apm/interface.cpp+++ b/src/core/hle/service/apm/interface.cpp@@ -7,8 +7,7 @@#include "core/hle/service/apm/apm.h"#include "core/hle/service/apm/interface.h"-namespace Service {-namespace APM {+namespace Service::APM {class ISession final : public ServiceFramework<ISession> {public:@@ -62,5 +61,4 @@ void APM::OpenSession(Kernel::HLERequestContext& ctx) {rb.PushIpcInterface<ISession>();}-} // namespace APM-} // namespace Service+} // namespace Service::APMdiff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.hindex 7d53721def..b99dbb412b 100644--- a/src/core/hle/service/apm/interface.h+++ b/src/core/hle/service/apm/interface.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace APM {+namespace Service::APM {class APM final : public ServiceFramework<APM> {public:@@ -23,5 +22,4 @@ private:/// Registers all AM services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace APM-} // namespace Service+} // namespace Service::APMdiff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cppindex 3c495b3a05..dca2bfb92b 100644--- a/src/core/hle/service/audio/audin_u.cpp+++ b/src/core/hle/service/audio/audin_u.cpp@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/audio/audin_u.h"-namespace Service {-namespace Audio {+namespace Service::Audio {class IAudioIn final : public ServiceFramework<IAudioIn> {public:@@ -44,5 +43,4 @@ AudInU::AudInU() : ServiceFramework("audin:u") {RegisterHandlers(functions);}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audin_u.h b/src/core/hle/service/audio/audin_u.hindex 2b8576756f..2e65efb5b1 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 {class HLERequestContext;}-namespace Service {-namespace Audio {+namespace Service::Audio {class AudInU final : public ServiceFramework<AudInU> {public:@@ -19,5 +18,4 @@ public:~AudInU() = default;};-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cppindex 3f7fb44eb8..92f910b5f4 100644--- a/src/core/hle/service/audio/audio.cpp+++ b/src/core/hle/service/audio/audio.cpp@@ -9,8 +9,7 @@#include "core/hle/service/audio/audren_u.h"#include "core/hle/service/audio/codecctl.h"-namespace Service {-namespace Audio {+namespace Service::Audio {void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<AudOutU>()->InstallAsService(service_manager);@@ -20,5 +19,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<CodecCtl>()->InstallAsService(service_manager);}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audio.h b/src/core/hle/service/audio/audio.hindex cbd56b2a87..95e5691f7e 100644--- a/src/core/hle/service/audio/audio.h+++ b/src/core/hle/service/audio/audio.h@@ -6,11 +6,9 @@#include "core/hle/service/service.h"-namespace Service {-namespace Audio {+namespace Service::Audio {/// Registers all Audio services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cppindex db6e6647c3..2d7f8cb04d 100644--- a/src/core/hle/service/audio/audout_u.cpp+++ b/src/core/hle/service/audio/audout_u.cpp@@ -10,8 +10,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/audio/audout_u.h"-namespace Service {-namespace Audio {+namespace Service::Audio {/// Switch sample rate frequencyconstexpr u32 sample_rate{48000};@@ -204,5 +203,4 @@ AudOutU::AudOutU() : ServiceFramework("audout:u") {RegisterHandlers(functions);}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.hindex 7fbce2225e..1f9bb9bcf9 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 {class HLERequestContext;}-namespace Service {-namespace Audio {+namespace Service::Audio {class IAudioOut;@@ -37,5 +36,4 @@ private:};};-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audrec_u.cpp b/src/core/hle/service/audio/audrec_u.cppindex 953104f196..b2be109194 100644--- a/src/core/hle/service/audio/audrec_u.cpp+++ b/src/core/hle/service/audio/audrec_u.cpp@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/audio/audrec_u.h"-namespace Service {-namespace Audio {+namespace Service::Audio {class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> {public:@@ -36,5 +35,4 @@ AudRecU::AudRecU() : ServiceFramework("audrec:u") {RegisterHandlers(functions);}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audrec_u.h b/src/core/hle/service/audio/audrec_u.hindex c31e412c14..46daa33a41 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 {class HLERequestContext;}-namespace Service {-namespace Audio {+namespace Service::Audio {class AudRecU final : public ServiceFramework<AudRecU> {public:@@ -19,5 +18,4 @@ public:~AudRecU() = default;};-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cppindex 0e78c57e94..d9245cb192 100644--- a/src/core/hle/service/audio/audren_u.cpp+++ b/src/core/hle/service/audio/audren_u.cpp@@ -9,8 +9,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/audio/audren_u.h"-namespace Service {-namespace Audio {+namespace Service::Audio {/// TODO(bunnei): Find a proper value for the audio_ticksconstexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)};@@ -272,5 +271,4 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) {LOG_DEBUG(Service_Audio, "called");}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.hindex f59d1627de..71b632e801 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 {class HLERequestContext;}-namespace Service {-namespace Audio {+namespace Service::Audio {class AudRenU final : public ServiceFramework<AudRenU> {public:@@ -24,5 +23,4 @@ private:void GetAudioDevice(Kernel::HLERequestContext& ctx);};-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cppindex 1c86d8d177..ba0f1d2286 100644--- a/src/core/hle/service/audio/codecctl.cpp+++ b/src/core/hle/service/audio/codecctl.cpp@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/audio/codecctl.h"-namespace Service {-namespace Audio {+namespace Service::Audio {CodecCtl::CodecCtl() : ServiceFramework("codecctl") {static const FunctionInfo functions[] = {@@ -29,5 +28,4 @@ CodecCtl::CodecCtl() : ServiceFramework("codecctl") {RegisterHandlers(functions);}-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.hindex 1121ab0b1f..d9ac29b670 100644--- a/src/core/hle/service/audio/codecctl.h+++ b/src/core/hle/service/audio/codecctl.h@@ -10,8 +10,7 @@ namespace Kernel {class HLERequestContext;}-namespace Service {-namespace Audio {+namespace Service::Audio {class CodecCtl final : public ServiceFramework<CodecCtl> {public:@@ -19,5 +18,4 @@ public:~CodecCtl() = default;};-} // namespace Audio-} // namespace Service+} // namespace Service::Audiodiff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cppindex 1a18e0051f..41d58f9995 100644--- a/src/core/hle/service/fatal/fatal.cpp+++ b/src/core/hle/service/fatal/fatal.cpp@@ -8,8 +8,7 @@#include "core/hle/service/fatal/fatal_p.h"#include "core/hle/service/fatal/fatal_u.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}@@ -34,5 +33,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<Fatal_U>(module)->InstallAsService(service_manager);}-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.hindex 85272b4bed..2d8d083209 100644--- a/src/core/hle/service/fatal/fatal.h+++ b/src/core/hle/service/fatal/fatal.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {class Module final {public:@@ -25,5 +24,4 @@ public:void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_p.cpp b/src/core/hle/service/fatal/fatal_p.cppindex ba194e340c..a5254ac2f2 100644--- a/src/core/hle/service/fatal/fatal_p.cpp+++ b/src/core/hle/service/fatal/fatal_p.cpp@@ -4,11 +4,9 @@#include "core/hle/service/fatal/fatal_p.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {Fatal_P::Fatal_P(std::shared_ptr<Module> module): Module::Interface(std::move(module), "fatal:p") {}-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_p.h b/src/core/hle/service/fatal/fatal_p.hindex d77b24bc4e..bfd8c8b74a 100644--- a/src/core/hle/service/fatal/fatal_p.h+++ b/src/core/hle/service/fatal/fatal_p.h@@ -6,13 +6,11 @@#include "core/hle/service/fatal/fatal.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {class Fatal_P final : public Module::Interface {public:explicit Fatal_P(std::shared_ptr<Module> module);};-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_u.cpp b/src/core/hle/service/fatal/fatal_u.cppindex 065cc868d5..26aa9f3b75 100644--- a/src/core/hle/service/fatal/fatal_u.cpp+++ b/src/core/hle/service/fatal/fatal_u.cpp@@ -4,8 +4,7 @@#include "core/hle/service/fatal/fatal_u.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "fatal:u") {static const FunctionInfo functions[] = {@@ -15,5 +14,4 @@ Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(mRegisterHandlers(functions);}-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_u.h b/src/core/hle/service/fatal/fatal_u.hindex 22374755e0..9b1a9e97a8 100644--- a/src/core/hle/service/fatal/fatal_u.h+++ b/src/core/hle/service/fatal/fatal_u.h@@ -6,13 +6,11 @@#include "core/hle/service/fatal/fatal.h"-namespace Service {-namespace Fatal {+namespace Service::Fatal {class Fatal_U final : public Module::Interface {public:explicit Fatal_U(std::shared_ptr<Module> module);};-} // namespace Fatal-} // namespace Service+} // namespace Service::Fataldiff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cppindex 945832e981..9e504992f4 100644--- a/src/core/hle/service/filesystem/filesystem.cpp+++ b/src/core/hle/service/filesystem/filesystem.cpp@@ -10,8 +10,7 @@#include "core/hle/service/filesystem/filesystem.h"#include "core/hle/service/filesystem/fsp_srv.h"-namespace Service {-namespace FileSystem {+namespace Service::FileSystem {/*** 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) {std::make_shared<FSP_SRV>()->InstallAsService(service_manager);}-} // namespace FileSystem-} // namespace Service+} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cppindex 45accbf0ed..2f476c8697 100644--- a/src/core/hle/service/filesystem/fsp_srv.cpp+++ b/src/core/hle/service/filesystem/fsp_srv.cpp@@ -14,8 +14,7 @@#include "core/hle/service/filesystem/filesystem.h"#include "core/hle/service/filesystem/fsp_srv.h"-namespace Service {-namespace FileSystem {+namespace Service::FileSystem {class IStorage final : public ServiceFramework<IStorage> {public:@@ -573,5 +572,4 @@ void FSP_SRV::OpenRomStorage(Kernel::HLERequestContext& ctx) {OpenDataStorageByCurrentProcess(ctx);}-} // namespace FileSystem-} // namespace Service+} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.hindex 6dc5874c0d..acb78fac12 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 {class FileSystemBackend;}-namespace Service {-namespace FileSystem {+namespace Service::FileSystem {class FSP_SRV final : public ServiceFramework<FSP_SRV> {public:@@ -33,5 +32,4 @@ private:std::unique_ptr<FileSys::FileSystemBackend> romfs;};-} // namespace FileSystem-} // namespace Service+} // namespace Service::FileSystemdiff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cppindex 051448b2ad..c98a46e053 100644--- a/src/core/hle/service/friend/friend.cpp+++ b/src/core/hle/service/friend/friend.cpp@@ -8,8 +8,7 @@#include "core/hle/service/friend/friend_a.h"#include "core/hle/service/friend/friend_u.h"-namespace Service {-namespace Friend {+namespace Service::Friend {void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};@@ -26,5 +25,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<Friend_U>(module)->InstallAsService(service_manager);}-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/friend.h b/src/core/hle/service/friend/friend.hindex 2b21b4e156..4b72115c05 100644--- a/src/core/hle/service/friend/friend.h+++ b/src/core/hle/service/friend/friend.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Friend {+namespace Service::Friend {class Module final {public:@@ -25,5 +24,4 @@ public:/// Registers all Friend services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/friend_a.cpp b/src/core/hle/service/friend/friend_a.cppindex d64fe846aa..a2cc819264 100644--- a/src/core/hle/service/friend/friend_a.cpp+++ b/src/core/hle/service/friend/friend_a.cpp@@ -4,8 +4,7 @@#include "core/hle/service/friend/friend_a.h"-namespace Service {-namespace Friend {+namespace Service::Friend {Friend_A::Friend_A(std::shared_ptr<Module> module): Module::Interface(std::move(module), "friend:a") {@@ -16,5 +15,4 @@ Friend_A::Friend_A(std::shared_ptr<Module> module)RegisterHandlers(functions);}-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/friend_a.h b/src/core/hle/service/friend/friend_a.hindex 68fa58297c..81257583ba 100644--- a/src/core/hle/service/friend/friend_a.h+++ b/src/core/hle/service/friend/friend_a.h@@ -6,13 +6,11 @@#include "core/hle/service/friend/friend.h"-namespace Service {-namespace Friend {+namespace Service::Friend {class Friend_A final : public Module::Interface {public:explicit Friend_A(std::shared_ptr<Module> module);};-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/friend_u.cpp b/src/core/hle/service/friend/friend_u.cppindex 9a4b05b38a..90b30883ff 100644--- a/src/core/hle/service/friend/friend_u.cpp+++ b/src/core/hle/service/friend/friend_u.cpp@@ -4,8 +4,7 @@#include "core/hle/service/friend/friend_u.h"-namespace Service {-namespace Friend {+namespace Service::Friend {Friend_U::Friend_U(std::shared_ptr<Module> module): Module::Interface(std::move(module), "friend:u") {@@ -16,5 +15,4 @@ Friend_U::Friend_U(std::shared_ptr<Module> module)RegisterHandlers(functions);}-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/friend_u.h b/src/core/hle/service/friend/friend_u.hindex 6be49ff018..0d953d807a 100644--- a/src/core/hle/service/friend/friend_u.h+++ b/src/core/hle/service/friend/friend_u.h@@ -6,13 +6,11 @@#include "core/hle/service/friend/friend.h"-namespace Service {-namespace Friend {+namespace Service::Friend {class Friend_U final : public Module::Interface {public:explicit Friend_U(std::shared_ptr<Module> module);};-} // namespace Friend-} // namespace Service+} // namespace Service::Frienddiff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex b59c52f07b..aad5e688bd 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -14,8 +14,7 @@#include "core/hle/service/hid/hid.h"#include "core/hle/service/service.h"-namespace Service {-namespace HID {+namespace Service::HID {// Updating period for each HID device.// TODO(shinyquagsire23): These need better values.@@ -434,5 +433,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<Hid>()->InstallAsService(service_manager);}-} // namespace HID-} // namespace Service+} // namespace Service::HIDdiff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.hindex 3de9adb4b6..350174ccdb 100644--- a/src/core/hle/service/hid/hid.h+++ b/src/core/hle/service/hid/hid.h@@ -7,8 +7,7 @@#include "core/hle/service/service.h"#include "core/settings.h"-namespace Service {-namespace HID {+namespace Service::HID {// Begin enums and output structs@@ -337,5 +336,4 @@ void ReloadInputDevices();/// Registers all HID services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace HID-} // namespace Service+} // namespace Service::HIDdiff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cppindex b8e53d2c74..b87172dffc 100644--- a/src/core/hle/service/lm/lm.cpp+++ b/src/core/hle/service/lm/lm.cpp@@ -9,8 +9,7 @@#include "core/hle/kernel/client_session.h"#include "core/hle/service/lm/lm.h"-namespace Service {-namespace LM {+namespace Service::LM {class Logger final : public ServiceFramework<Logger> {public:@@ -189,5 +188,4 @@ LM::LM() : ServiceFramework("lm") {RegisterHandlers(functions);}-} // namespace LM-} // namespace Service+} // namespace Service::LMdiff --git a/src/core/hle/service/lm/lm.h b/src/core/hle/service/lm/lm.hindex 3711350573..63d6506fe2 100644--- a/src/core/hle/service/lm/lm.h+++ b/src/core/hle/service/lm/lm.h@@ -8,8 +8,7 @@#include "core/hle/kernel/kernel.h"#include "core/hle/service/service.h"-namespace Service {-namespace LM {+namespace Service::LM {class LM final : public ServiceFramework<LM> {public:@@ -23,5 +22,4 @@ private:/// Registers all LM services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace LM-} // namespace Service+} // namespace Service::LMdiff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cppindex 49870841cb..91e5f527aa 100644--- a/src/core/hle/service/nfp/nfp.cpp+++ b/src/core/hle/service/nfp/nfp.cpp@@ -7,8 +7,7 @@#include "core/hle/service/nfp/nfp.h"#include "core/hle/service/nfp/nfp_user.h"-namespace Service {-namespace NFP {+namespace Service::NFP {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}@@ -24,5 +23,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<NFP_User>(module)->InstallAsService(service_manager);}-} // namespace NFP-} // namespace Service+} // namespace Service::NFPdiff --git a/src/core/hle/service/nfp/nfp.h b/src/core/hle/service/nfp/nfp.hindex 1163e99547..095209ad84 100644--- a/src/core/hle/service/nfp/nfp.h+++ b/src/core/hle/service/nfp/nfp.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace NFP {+namespace Service::NFP {class Module final {public:@@ -24,5 +23,4 @@ public:void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace NFP-} // namespace Service+} // namespace Service::NFPdiff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cppindex 14e5647c42..e94c271e77 100644--- a/src/core/hle/service/nfp/nfp_user.cpp+++ b/src/core/hle/service/nfp/nfp_user.cpp@@ -4,8 +4,7 @@#include "core/hle/service/nfp/nfp_user.h"-namespace Service {-namespace NFP {+namespace Service::NFP {NFP_User::NFP_User(std::shared_ptr<Module> module): Module::Interface(std::move(module), "nfp:user") {@@ -15,5 +14,4 @@ NFP_User::NFP_User(std::shared_ptr<Module> module)RegisterHandlers(functions);}-} // namespace NFP-} // namespace Service+} // namespace Service::NFPdiff --git a/src/core/hle/service/nfp/nfp_user.h b/src/core/hle/service/nfp/nfp_user.hindex 1606444ca2..7000431144 100644--- a/src/core/hle/service/nfp/nfp_user.h+++ b/src/core/hle/service/nfp/nfp_user.h@@ -6,13 +6,11 @@#include "core/hle/service/nfp/nfp.h"-namespace Service {-namespace NFP {+namespace Service::NFP {class NFP_User final : public Module::Interface {public:explicit NFP_User(std::shared_ptr<Module> module);};-} // namespace NFP-} // namespace Service+} // namespace Service::NFPdiff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cppindex b32112db3e..df1e7f8fea 100644--- a/src/core/hle/service/nifm/nifm.cpp+++ b/src/core/hle/service/nifm/nifm.cpp@@ -9,8 +9,7 @@#include "core/hle/service/nifm/nifm_s.h"#include "core/hle/service/nifm/nifm_u.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {class IScanRequest final : public ServiceFramework<IScanRequest> {public:@@ -208,5 +207,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<NIFM_U>(module)->InstallAsService(service_manager);}-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm.h b/src/core/hle/service/nifm/nifm.hindex 11d263b12b..4ad3f3bcf6 100644--- a/src/core/hle/service/nifm/nifm.h+++ b/src/core/hle/service/nifm/nifm.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {class Module final {public:@@ -25,5 +24,4 @@ public:void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_a.cpp b/src/core/hle/service/nifm/nifm_a.cppindex f75df8c040..b7f296a20d 100644--- a/src/core/hle/service/nifm/nifm_a.cpp+++ b/src/core/hle/service/nifm/nifm_a.cpp@@ -4,8 +4,7 @@#include "core/hle/service/nifm/nifm_a.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {NIFM_A::NIFM_A(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:a") {static const FunctionInfo functions[] = {@@ -15,5 +14,4 @@ NIFM_A::NIFM_A(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_a.h b/src/core/hle/service/nifm/nifm_a.hindex eaea14e293..c3ba331108 100644--- a/src/core/hle/service/nifm/nifm_a.h+++ b/src/core/hle/service/nifm/nifm_a.h@@ -6,13 +6,11 @@#include "core/hle/service/nifm/nifm.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {class NIFM_A final : public Module::Interface {public:explicit NIFM_A(std::shared_ptr<Module> module);};-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_s.cpp b/src/core/hle/service/nifm/nifm_s.cppindex 9c0b300e42..96e3c0cee2 100644--- a/src/core/hle/service/nifm/nifm_s.cpp+++ b/src/core/hle/service/nifm/nifm_s.cpp@@ -4,8 +4,7 @@#include "core/hle/service/nifm/nifm_s.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {NIFM_S::NIFM_S(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:s") {static const FunctionInfo functions[] = {@@ -15,5 +14,4 @@ NIFM_S::NIFM_S(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_s.h b/src/core/hle/service/nifm/nifm_s.hindex f9e2d80390..8d1635a5d4 100644--- a/src/core/hle/service/nifm/nifm_s.h+++ b/src/core/hle/service/nifm/nifm_s.h@@ -6,13 +6,11 @@#include "core/hle/service/nifm/nifm.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {class NIFM_S final : public Module::Interface {public:explicit NIFM_S(std::shared_ptr<Module> module);};-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_u.cpp b/src/core/hle/service/nifm/nifm_u.cppindex 44e6f483d2..8cb75b903a 100644--- a/src/core/hle/service/nifm/nifm_u.cpp+++ b/src/core/hle/service/nifm/nifm_u.cpp@@ -4,8 +4,7 @@#include "core/hle/service/nifm/nifm_u.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {NIFM_U::NIFM_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "nifm:u") {static const FunctionInfo functions[] = {@@ -15,5 +14,4 @@ NIFM_U::NIFM_U(std::shared_ptr<Module> module) : Module::Interface(std::move(modRegisterHandlers(functions);}-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/nifm/nifm_u.h b/src/core/hle/service/nifm/nifm_u.hindex 9120067756..def9726b13 100644--- a/src/core/hle/service/nifm/nifm_u.h+++ b/src/core/hle/service/nifm/nifm_u.h@@ -6,13 +6,11 @@#include "core/hle/service/nifm/nifm.h"-namespace Service {-namespace NIFM {+namespace Service::NIFM {class NIFM_U final : public Module::Interface {public:explicit NIFM_U(std::shared_ptr<Module> module);};-} // namespace NIFM-} // namespace Service+} // namespace Service::NIFMdiff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cppindex 45681c50fb..89c703310d 100644--- a/src/core/hle/service/ns/ns.cpp+++ b/src/core/hle/service/ns/ns.cpp@@ -5,12 +5,10 @@#include "core/hle/service/ns/ns.h"#include "core/hle/service/ns/pl_u.h"-namespace Service {-namespace NS {+namespace Service::NS {void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<PL_U>()->InstallAsService(service_manager);}-} // namespace NS-} // namespace Service+} // namespace Service::NSdiff --git a/src/core/hle/service/ns/ns.h b/src/core/hle/service/ns/ns.hindex a4b7e3dedf..b81ca8f1eb 100644--- a/src/core/hle/service/ns/ns.h+++ b/src/core/hle/service/ns/ns.h@@ -6,11 +6,9 @@#include "core/hle/service/service.h"-namespace Service {-namespace NS {+namespace Service::NS {/// Registers all NS services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace NS-} // namespace Service+} // namespace Service::NSdiff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cppindex 7ff1ab664f..c416ad7203 100644--- a/src/core/hle/service/ns/pl_u.cpp+++ b/src/core/hle/service/ns/pl_u.cpp@@ -8,8 +8,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/ns/pl_u.h"-namespace Service {-namespace NS {+namespace Service::NS {struct FontRegion {u32 offset;@@ -117,5 +116,4 @@ void PL_U::GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx) {rb.PushCopyObjects(shared_font_mem);}-} // namespace NS-} // namespace Service+} // namespace Service::NSdiff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.hindex 360482d134..b175c9c44f 100644--- a/src/core/hle/service/ns/pl_u.h+++ b/src/core/hle/service/ns/pl_u.h@@ -8,8 +8,7 @@#include "core/hle/kernel/shared_memory.h"#include "core/hle/service/service.h"-namespace Service {-namespace NS {+namespace Service::NS {class PL_U final : public ServiceFramework<PL_U> {public:@@ -30,5 +29,4 @@ private:std::shared_ptr<std::vector<u8>> shared_font;};-} // namespace NS-} // namespace Service+} // namespace Service::NSdiff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.hindex cdc25b0590..0f02a1a18b 100644--- a/src/core/hle/service/nvdrv/devices/nvdevice.h+++ b/src/core/hle/service/nvdrv/devices/nvdevice.h@@ -9,9 +9,7 @@#include "common/common_types.h"#include "common/swap.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {/// Represents an abstract nvidia device node. It is to be subclassed by concrete device nodes to/// implement the ioctl interface.@@ -38,6 +36,4 @@ public:virtual u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) = 0;};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cppindex 87b3a2d747..61f22b1a5a 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 @@#include "video_core/renderer_base.h"#include "video_core/video_core.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {u32 nvdisp_disp0::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {UNIMPLEMENTED();@@ -35,6 +33,4 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3VideoCore::g_renderer->SwapBuffers(framebuffer);}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.hindex 66f56f23df..3d39797236 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 @@#include "core/hle/service/nvdrv/devices/nvdevice.h"#include "core/hle/service/nvflinger/buffer_queue.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvmap;@@ -31,6 +29,4 @@ private:std::shared_ptr<nvmap> nvmap_dev;};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cppindex 9892402fac..71e8449598 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 @@#include "core/hle/service/nvdrv/devices/nvhost_as_gpu.h"#include "core/hle/service/nvdrv/devices/nvmap.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {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>& oreturn 0;}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.hindex f8a60cce7d..d86c3ebd92 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 @@#include "common/swap.h"#include "core/hle/service/nvdrv/devices/nvdevice.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvmap;@@ -100,6 +98,4 @@ private:std::shared_ptr<nvmap> nvmap_dev;};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cppindex 45711d6863..660a0f6652 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 @@#include "common/logging/log.h"#include "core/hle/service/nvdrv/devices/nvhost_ctrl.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {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>&return 0;}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.hindex 0ca01aa6d2..76a8b33c20 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 @@#include "common/common_types.h"#include "core/hle/service/nvdrv/devices/nvdevice.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvhost_ctrl final : public nvdevice {public:@@ -55,6 +53,4 @@ private:u32 IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output);};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cppindex 3b353d7428..18ea12ef55 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 @@#include "common/logging/log.h"#include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {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>&return 0;}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.hindex dc0476993a..31040cdbe0 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 @@#include "common/swap.h"#include "core/hle/service/nvdrv/devices/nvdevice.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvhost_ctrl_gpu final : public nvdevice {public:@@ -125,6 +123,5 @@ private:u32 ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u8>& output);u32 ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output);};-} // namespace Devices-} // namespace Nvidia-} // namespace Service++} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cppindex da44c65f3e..a16e904570 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 @@#include "core/core.h"#include "core/hle/service/nvdrv/devices/nvhost_gpu.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {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>& outpreturn 0;}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_gpu.hindex e7e9a0088b..703c36bbb5 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 @@#include "common/swap.h"#include "core/hle/service/nvdrv/devices/nvdevice.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvmap;constexpr u32 NVGPU_IOCTL_MAGIC('H');@@ -139,6 +137,4 @@ private:std::shared_ptr<nvmap> nvmap_dev;};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cppindex b3842eb4ce..4bb1f57f62 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp@@ -9,9 +9,7 @@#include "common/logging/log.h"#include "core/hle/service/nvdrv/devices/nvmap.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {VAddr nvmap::GetObjectAddress(u32 handle) const {auto object = GetObject(handle);@@ -144,6 +142,4 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) {return 0;}-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.hindex 4681e438ba..431eb37736 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.h+++ b/src/core/hle/service/nvdrv/devices/nvmap.h@@ -12,9 +12,7 @@#include "common/swap.h"#include "core/hle/service/nvdrv/devices/nvdevice.h"-namespace Service {-namespace Nvidia {-namespace Devices {+namespace Service::Nvidia::Devices {class nvmap final : public nvdevice {public:@@ -111,6 +109,4 @@ private:u32 IocParam(const std::vector<u8>& input, std::vector<u8>& output);};-} // namespace Devices-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidia::Devicesdiff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cppindex 567c2cd7c4..d0d64a840b 100644--- a/src/core/hle/service/nvdrv/interface.cpp+++ b/src/core/hle/service/nvdrv/interface.cpp@@ -9,8 +9,7 @@#include "core/hle/service/nvdrv/interface.h"#include "core/hle/service/nvdrv/nvdrv.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {void NVDRV::Open(Kernel::HLERequestContext& ctx) {LOG_DEBUG(Service_NVDRV, "called");@@ -111,5 +110,4 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name)query_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "NVDRV::query_event");}-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.hindex daf2302af2..959b5ba296 100644--- a/src/core/hle/service/nvdrv/interface.h+++ b/src/core/hle/service/nvdrv/interface.h@@ -10,8 +10,7 @@#include "core/hle/service/nvdrv/nvdrv.h"#include "core/hle/service/service.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {class NVDRV final : public ServiceFramework<NVDRV> {public:@@ -34,5 +33,4 @@ private:Kernel::SharedPtr<Kernel::Event> query_event;};-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cppindex ea00240e63..1704204188 100644--- a/src/core/hle/service/nvdrv/nvdrv.cpp+++ b/src/core/hle/service/nvdrv/nvdrv.cpp@@ -14,8 +14,7 @@#include "core/hle/service/nvdrv/nvdrv.h"#include "core/hle/service/nvdrv/nvmemp.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {std::weak_ptr<Module> nvdrv;@@ -69,5 +68,4 @@ ResultCode Module::Close(u32 fd) {return RESULT_SUCCESS;}-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.hindex 6a55ff96de..5799408178 100644--- a/src/core/hle/service/nvdrv/nvdrv.h+++ b/src/core/hle/service/nvdrv/nvdrv.h@@ -10,8 +10,7 @@#include "common/common_types.h"#include "core/hle/service/service.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {namespace Devices {class nvdevice;@@ -61,5 +60,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager);extern std::weak_ptr<Module> nvdrv;-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/nvmemp.cpp b/src/core/hle/service/nvdrv/nvmemp.cppindex 35d6c0c134..9ca6e55129 100644--- a/src/core/hle/service/nvdrv/nvmemp.cpp+++ b/src/core/hle/service/nvdrv/nvmemp.cpp@@ -8,8 +8,7 @@#include "core/hle/service/nvdrv/nvdrv.h"#include "core/hle/service/nvdrv/nvmemp.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {NVMEMP::NVMEMP() : ServiceFramework("nvmemp") {static const FunctionInfo functions[] = {@@ -27,5 +26,4 @@ void NVMEMP::Cmd1(Kernel::HLERequestContext& ctx) {UNIMPLEMENTED();}-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/nvmemp.h b/src/core/hle/service/nvdrv/nvmemp.hindex fb16026b0d..dfdcabf4a1 100644--- a/src/core/hle/service/nvdrv/nvmemp.h+++ b/src/core/hle/service/nvdrv/nvmemp.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Nvidia {+namespace Service::Nvidia {class NVMEMP final : public ServiceFramework<NVMEMP> {public:@@ -19,5 +18,4 @@ private:void Cmd1(Kernel::HLERequestContext& ctx);};-} // namespace Nvidia-} // namespace Service+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cppindex e4ff2e2677..03a4fed590 100644--- a/src/core/hle/service/nvflinger/buffer_queue.cpp+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp@@ -9,8 +9,7 @@#include "core/core_timing.h"#include "core/hle/service/nvflinger/buffer_queue.h"-namespace Service {-namespace NVFlinger {+namespace Service::NVFlinger {BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) {native_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "BufferQueue NativeHandle");@@ -111,5 +110,4 @@ void BufferQueue::SetBufferWaitEvent(Kernel::SharedPtr<Kernel::Event>&& wait_evebuffer_wait_event = std::move(wait_event);}-} // namespace NVFlinger-} // namespace Service+} // namespace Service::NVFlingerdiff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.hindex 1de5767cbe..95adc47068 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 {struct EventType;}-namespace Service {-namespace NVFlinger {+namespace Service::NVFlinger {struct IGBPBuffer {u32_le magic;@@ -98,5 +97,4 @@ private:Kernel::SharedPtr<Kernel::Event> buffer_wait_event;};-} // namespace NVFlinger-} // namespace Service+} // namespace Service::NVFlingerdiff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cppindex ee1bf0404b..a99ebc8e6f 100644--- a/src/core/hle/service/nvflinger/nvflinger.cpp+++ b/src/core/hle/service/nvflinger/nvflinger.cpp@@ -16,8 +16,7 @@#include "video_core/renderer_base.h"#include "video_core/video_core.h"-namespace Service {-namespace NVFlinger {+namespace Service::NVFlinger {constexpr size_t SCREEN_REFRESH_RATE = 60;constexpr 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)) {vsync_event = Kernel::Event::Create(Kernel::ResetType::Pulse, "Display VSync Event");}-} // namespace NVFlinger-} // namespace Service+} // namespace Service::NVFlingerdiff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.hindex 3126018adb..2c908297ba 100644--- a/src/core/hle/service/nvflinger/nvflinger.h+++ b/src/core/hle/service/nvflinger/nvflinger.h@@ -12,8 +12,7 @@ namespace CoreTiming {struct EventType;}-namespace Service {-namespace NVFlinger {+namespace Service::NVFlinger {class BufferQueue;@@ -80,5 +79,4 @@ private:CoreTiming::EventType* composition_event;};-} // namespace NVFlinger-} // namespace Service+} // namespace Service::NVFlingerdiff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cppindex 692b27a714..6ee81866d4 100644--- a/src/core/hle/service/pctl/pctl.cpp+++ b/src/core/hle/service/pctl/pctl.cpp@@ -5,12 +5,10 @@#include "core/hle/service/pctl/pctl.h"#include "core/hle/service/pctl/pctl_a.h"-namespace Service {-namespace PCTL {+namespace Service::PCTL {void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<PCTL_A>()->InstallAsService(service_manager);}-} // namespace PCTL-} // namespace Service+} // namespace Service::PCTLdiff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.hindex 5fa67dd1b8..f0a84b1159 100644--- a/src/core/hle/service/pctl/pctl.h+++ b/src/core/hle/service/pctl/pctl.h@@ -6,11 +6,9 @@#include "core/hle/service/service.h"-namespace Service {-namespace PCTL {+namespace Service::PCTL {/// Registers all PCTL services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace PCTL-} // namespace Service+} // namespace Service::PCTLdiff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cppindex 4e644be648..9fb4628ada 100644--- a/src/core/hle/service/pctl/pctl_a.cpp+++ b/src/core/hle/service/pctl/pctl_a.cpp@@ -6,8 +6,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/pctl/pctl_a.h"-namespace Service {-namespace PCTL {+namespace Service::PCTL {class IParentalControlService final : public ServiceFramework<IParentalControlService> {public:@@ -125,5 +124,4 @@ PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {RegisterHandlers(functions);}-} // namespace PCTL-} // namespace Service+} // namespace Service::PCTLdiff --git a/src/core/hle/service/pctl/pctl_a.h b/src/core/hle/service/pctl/pctl_a.hindex 3aa8873a9c..09ed82e1b0 100644--- a/src/core/hle/service/pctl/pctl_a.h+++ b/src/core/hle/service/pctl/pctl_a.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace PCTL {+namespace Service::PCTL {class PCTL_A final : public ServiceFramework<PCTL_A> {public:@@ -18,5 +17,4 @@ private:void CreateService(Kernel::HLERequestContext& ctx);};-} // namespace PCTL-} // namespace Service+} // namespace Service::PCTLdiff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cppindex 8908a04a2a..fc3e424d04 100644--- a/src/core/hle/service/set/set.cpp+++ b/src/core/hle/service/set/set.cpp@@ -9,8 +9,7 @@#include "core/hle/kernel/client_session.h"#include "core/hle/service/set/set.h"-namespace Service {-namespace Set {+namespace Service::Set {void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp{ctx};@@ -41,5 +40,4 @@ SET::SET() : ServiceFramework("set") {RegisterHandlers(functions);}-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.hindex 7b7814ed14..6a465949f8 100644--- a/src/core/hle/service/set/set.h+++ b/src/core/hle/service/set/set.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Set {+namespace Service::Set {class SET final : public ServiceFramework<SET> {public:@@ -18,5 +17,4 @@ private:void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);};-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_cal.cpp b/src/core/hle/service/set/set_cal.cppindex 4810d39e81..7066ef725b 100644--- a/src/core/hle/service/set/set_cal.cpp+++ b/src/core/hle/service/set/set_cal.cpp@@ -4,8 +4,7 @@#include "core/hle/service/set/set_cal.h"-namespace Service {-namespace Set {+namespace Service::Set {SET_CAL::SET_CAL() : ServiceFramework("set:cal") {static const FunctionInfo functions[] = {@@ -45,5 +44,4 @@ SET_CAL::SET_CAL() : ServiceFramework("set:cal") {RegisterHandlers(functions);}-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_cal.h b/src/core/hle/service/set/set_cal.hindex 9c0b851d0a..bb50336aa0 100644--- a/src/core/hle/service/set/set_cal.h+++ b/src/core/hle/service/set/set_cal.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Set {+namespace Service::Set {class SET_CAL final : public ServiceFramework<SET_CAL> {public:@@ -15,5 +14,4 @@ public:~SET_CAL() = default;};-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_fd.cpp b/src/core/hle/service/set/set_fd.cppindex 8320d42505..c9f938716b 100644--- a/src/core/hle/service/set/set_fd.cpp+++ b/src/core/hle/service/set/set_fd.cpp@@ -4,8 +4,7 @@#include "core/hle/service/set/set_fd.h"-namespace Service {-namespace Set {+namespace Service::Set {SET_FD::SET_FD() : ServiceFramework("set:fd") {static const FunctionInfo functions[] = {@@ -21,5 +20,4 @@ SET_FD::SET_FD() : ServiceFramework("set:fd") {RegisterHandlers(functions);}-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_fd.h b/src/core/hle/service/set/set_fd.hindex 65b36bcb3d..dbd850bc7e 100644--- a/src/core/hle/service/set/set_fd.h+++ b/src/core/hle/service/set/set_fd.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Set {+namespace Service::Set {class SET_FD final : public ServiceFramework<SET_FD> {public:@@ -15,5 +14,4 @@ public:~SET_FD() = default;};-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_sys.cpp b/src/core/hle/service/set/set_sys.cppindex b9115ca9e9..fa85277fe9 100644--- a/src/core/hle/service/set/set_sys.cpp+++ b/src/core/hle/service/set/set_sys.cpp@@ -7,8 +7,7 @@#include "core/hle/kernel/client_port.h"#include "core/hle/service/set/set_sys.h"-namespace Service {-namespace Set {+namespace Service::Set {void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {@@ -173,5 +172,4 @@ SET_SYS::SET_SYS() : ServiceFramework("set:sys") {RegisterHandlers(functions);}-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_sys.h b/src/core/hle/service/set/set_sys.hindex 105f1a3c7c..b77a97cded 100644--- a/src/core/hle/service/set/set_sys.h+++ b/src/core/hle/service/set/set_sys.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Set {+namespace Service::Set {class SET_SYS final : public ServiceFramework<SET_SYS> {public:@@ -18,5 +17,4 @@ private:void GetColorSetId(Kernel::HLERequestContext& ctx);};-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/settings.cpp b/src/core/hle/service/set/settings.cppindex c6bc9e2404..cf5541ca85 100644--- a/src/core/hle/service/set/settings.cpp+++ b/src/core/hle/service/set/settings.cpp@@ -8,8 +8,7 @@#include "core/hle/service/set/set_sys.h"#include "core/hle/service/set/settings.h"-namespace Service {-namespace Set {+namespace Service::Set {void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<SET>()->InstallAsService(service_manager);@@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<SET_SYS>()->InstallAsService(service_manager);}-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/set/settings.h b/src/core/hle/service/set/settings.hindex 6c8d5a58cf..6606ce7767 100644--- a/src/core/hle/service/set/settings.h+++ b/src/core/hle/service/set/settings.h@@ -6,11 +6,9 @@#include "core/hle/service/service.h"-namespace Service {-namespace Set {+namespace Service::Set {/// Registers all Settings services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Set-} // namespace Service+} // namespace Service::Setdiff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cppindex e12c534427..13e31620d2 100644--- a/src/core/hle/service/sm/controller.cpp+++ b/src/core/hle/service/sm/controller.cpp@@ -7,8 +7,7 @@#include "core/hle/kernel/session.h"#include "core/hle/service/sm/controller.h"-namespace Service {-namespace SM {+namespace Service::SM {void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) {ASSERT_MSG(!ctx.Session()->IsDomain(), "session is alread a domain");@@ -58,5 +57,4 @@ Controller::Controller() : ServiceFramework("IpcController") {RegisterHandlers(functions);}-} // namespace SM-} // namespace Service+} // namespace Service::SMdiff --git a/src/core/hle/service/sm/controller.h b/src/core/hle/service/sm/controller.hindex 7b4bc4b750..a4de52cd2f 100644--- a/src/core/hle/service/sm/controller.h+++ b/src/core/hle/service/sm/controller.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace SM {+namespace Service::SM {class Controller final : public ServiceFramework<Controller> {public:@@ -21,5 +20,4 @@ private:void QueryPointerBufferSize(Kernel::HLERequestContext& ctx);};-} // namespace SM-} // namespace Service+} // namespace Service::SMdiff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cppindex bc72512a00..297a4f2c69 100644--- a/src/core/hle/service/sm/sm.cpp+++ b/src/core/hle/service/sm/sm.cpp@@ -12,8 +12,7 @@#include "core/hle/service/sm/controller.h"#include "core/hle/service/sm/sm.h"-namespace Service {-namespace SM {+namespace Service::SM {void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) {controller_interface->InvokeRequest(context);@@ -132,5 +131,4 @@ SM::SM(std::shared_ptr<ServiceManager> service_manager)RegisterHandlers(functions);}-} // namespace SM-} // namespace Service+} // namespace Service::SMdiff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.hindex 11fa788cae..40421cfd58 100644--- a/src/core/hle/service/sm/sm.h+++ b/src/core/hle/service/sm/sm.h@@ -17,8 +17,7 @@ class ServerPort;class SessionRequestHandler;} // namespace Kernel-namespace Service {-namespace SM {+namespace Service::SM {/// Interface to "sm:" serviceclass SM final : public ServiceFramework<SM> {@@ -62,5 +61,4 @@ private:extern std::shared_ptr<ServiceManager> g_service_manager;-} // namespace SM-} // namespace Service+} // namespace Service::SMdiff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cppindex 929e19fecf..f99809bede 100644--- a/src/core/hle/service/sockets/bsd.cpp+++ b/src/core/hle/service/sockets/bsd.cpp@@ -5,8 +5,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/sockets/bsd.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {void BSD::RegisterClient(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service, "(STUBBED) called");@@ -111,5 +110,4 @@ BSD::BSD(const char* name) : ServiceFramework(name) {RegisterHandlers(functions);}-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.hindex 32d949e957..a6b1ca7d0e 100644--- a/src/core/hle/service/sockets/bsd.h+++ b/src/core/hle/service/sockets/bsd.h@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/service.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {class BSD final : public ServiceFramework<BSD> {public:@@ -27,5 +26,4 @@ private:u32 next_fd = 1;};-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cppindex e3542d3256..8682dc2e01 100644--- a/src/core/hle/service/sockets/nsd.cpp+++ b/src/core/hle/service/sockets/nsd.cpp@@ -4,8 +4,7 @@#include "core/hle/service/sockets/nsd.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {NSD::NSD(const char* name) : ServiceFramework(name) {static const FunctionInfo functions[] = {@@ -30,5 +29,4 @@ NSD::NSD(const char* name) : ServiceFramework(name) {RegisterHandlers(functions);}-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/nsd.h b/src/core/hle/service/sockets/nsd.hindex a7c15a8601..3b7edfc436 100644--- a/src/core/hle/service/sockets/nsd.h+++ b/src/core/hle/service/sockets/nsd.h@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/service.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {class NSD final : public ServiceFramework<NSD> {public:@@ -16,5 +15,4 @@ public:~NSD() = default;};-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cppindex 633488b18e..d235c4cfd0 100644--- a/src/core/hle/service/sockets/sfdnsres.cpp+++ b/src/core/hle/service/sockets/sfdnsres.cpp@@ -5,8 +5,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/sockets/sfdnsres.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp{ctx};@@ -35,5 +34,4 @@ SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {RegisterHandlers(functions);}-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sfdnsres.h b/src/core/hle/service/sockets/sfdnsres.hindex c07cc1594b..62c7e35bf4 100644--- a/src/core/hle/service/sockets/sfdnsres.h+++ b/src/core/hle/service/sockets/sfdnsres.h@@ -7,8 +7,7 @@#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/service.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {class SFDNSRES final : public ServiceFramework<SFDNSRES> {public:@@ -19,5 +18,4 @@ private:void GetAddrInfo(Kernel::HLERequestContext& ctx);};-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sockets.cpp b/src/core/hle/service/sockets/sockets.cppindex cedc276d99..05bd10d35e 100644--- a/src/core/hle/service/sockets/sockets.cpp+++ b/src/core/hle/service/sockets/sockets.cpp@@ -7,8 +7,7 @@#include "core/hle/service/sockets/sfdnsres.h"#include "core/hle/service/sockets/sockets.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<BSD>("bsd:s")->InstallAsService(service_manager);@@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<SFDNSRES>()->InstallAsService(service_manager);}-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.hindex 7e89c8d2c3..ca8a6a7e0d 100644--- a/src/core/hle/service/sockets/sockets.h+++ b/src/core/hle/service/sockets/sockets.h@@ -6,11 +6,9 @@#include "core/hle/service/service.h"-namespace Service {-namespace Sockets {+namespace Service::Sockets {/// Registers all Sockets services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Sockets-} // namespace Service+} // namespace Service::Socketsdiff --git a/src/core/hle/service/spl/csrng.cpp b/src/core/hle/service/spl/csrng.cppindex cde05717ab..b9e6b799d2 100644--- a/src/core/hle/service/spl/csrng.cpp+++ b/src/core/hle/service/spl/csrng.cpp@@ -4,8 +4,7 @@#include "core/hle/service/spl/csrng.h"-namespace Service {-namespace SPL {+namespace Service::SPL {CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") {static const FunctionInfo functions[] = {@@ -14,5 +13,4 @@ CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(modulRegisterHandlers(functions);}-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/csrng.h b/src/core/hle/service/spl/csrng.hindex 59ca794ddf..3f849b5a72 100644--- a/src/core/hle/service/spl/csrng.h+++ b/src/core/hle/service/spl/csrng.h@@ -6,13 +6,11 @@#include "core/hle/service/spl/module.h"-namespace Service {-namespace SPL {+namespace Service::SPL {class CSRNG final : public Module::Interface {public:explicit CSRNG(std::shared_ptr<Module> module);};-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cppindex fc1bcd94c2..3f5a342a7b 100644--- a/src/core/hle/service/spl/module.cpp+++ b/src/core/hle/service/spl/module.cpp@@ -11,8 +11,7 @@#include "core/hle/service/spl/module.h"#include "core/hle/service/spl/spl.h"-namespace Service {-namespace SPL {+namespace Service::SPL {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}@@ -38,5 +37,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<SPL>(module)->InstallAsService(service_manager);}-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/module.h b/src/core/hle/service/spl/module.hindex 12cdb29804..6ab91b4003 100644--- a/src/core/hle/service/spl/module.h+++ b/src/core/hle/service/spl/module.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace SPL {+namespace Service::SPL {class Module final {public:@@ -25,5 +24,4 @@ public:/// Registers all SPL services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/spl.cpp b/src/core/hle/service/spl/spl.cppindex 3fcef341e1..bb1e033429 100644--- a/src/core/hle/service/spl/spl.cpp+++ b/src/core/hle/service/spl/spl.cpp@@ -4,8 +4,7 @@#include "core/hle/service/spl/spl.h"-namespace Service {-namespace SPL {+namespace Service::SPL {SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") {static const FunctionInfo functions[] = {@@ -43,5 +42,4 @@ SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module),RegisterHandlers(functions);}-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/spl.h b/src/core/hle/service/spl/spl.hindex 9fd6059afb..69c4c1747e 100644--- a/src/core/hle/service/spl/spl.h+++ b/src/core/hle/service/spl/spl.h@@ -6,13 +6,11 @@#include "core/hle/service/spl/module.h"-namespace Service {-namespace SPL {+namespace Service::SPL {class SPL final : public Module::Interface {public:explicit SPL(std::shared_ptr<Module> module);};-} // namespace SPL-} // namespace Service+} // namespace Service::SPLdiff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cppindex 01a03ec839..11d438728f 100644--- a/src/core/hle/service/ssl/ssl.cpp+++ b/src/core/hle/service/ssl/ssl.cpp@@ -5,8 +5,7 @@#include "core/hle/ipc_helpers.h"#include "core/hle/service/ssl/ssl.h"-namespace Service {-namespace SSL {+namespace Service::SSL {class ISslConnection final : public ServiceFramework<ISslConnection> {public:@@ -107,5 +106,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<SSL>()->InstallAsService(service_manager);}-} // namespace SSL-} // namespace Service+} // namespace Service::SSLdiff --git a/src/core/hle/service/ssl/ssl.h b/src/core/hle/service/ssl/ssl.hindex 7fcff5ccdc..87538a6396 100644--- a/src/core/hle/service/ssl/ssl.h+++ b/src/core/hle/service/ssl/ssl.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace SSL {+namespace Service::SSL {class SSL final : public ServiceFramework<SSL> {public:@@ -21,5 +20,4 @@ private:/// Registers all SSL services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace SSL-} // namespace Service+} // namespace Service::SSLdiff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cppindex 382188a621..2604ecc1cf 100644--- a/src/core/hle/service/time/time.cpp+++ b/src/core/hle/service/time/time.cpp@@ -12,8 +12,7 @@#include "core/hle/service/time/time_s.h"#include "core/hle/service/time/time_u.h"-namespace Service {-namespace Time {+namespace Service::Time {class ISystemClock final : public ServiceFramework<ISystemClock> {public:@@ -166,5 +165,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {std::make_shared<TIME_U>(time)->InstallAsService(service_manager);}-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.hindex 197029e7a6..12fe1995aa 100644--- a/src/core/hle/service/time/time.h+++ b/src/core/hle/service/time/time.h@@ -6,8 +6,7 @@#include "core/hle/service/service.h"-namespace Service {-namespace Time {+namespace Service::Time {// TODO(Rozelette) RE this structurestruct LocationName {@@ -66,5 +65,4 @@ public:/// Registers all Time services with the specified service manager.void InstallInterfaces(SM::ServiceManager& service_manager);-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/time/time_s.cpp b/src/core/hle/service/time/time_s.cppindex cb58efcb3f..0b599ea001 100644--- a/src/core/hle/service/time/time_s.cpp+++ b/src/core/hle/service/time/time_s.cpp@@ -4,8 +4,7 @@#include "core/hle/service/time/time_s.h"-namespace Service {-namespace Time {+namespace Service::Time {TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:s") {static const FunctionInfo functions[] = {@@ -29,5 +28,4 @@ TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time)RegisterHandlers(functions);}-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/time/time_s.h b/src/core/hle/service/time/time_s.hindex abc2a8c5a8..4a2daa513a 100644--- a/src/core/hle/service/time/time_s.h+++ b/src/core/hle/service/time/time_s.h@@ -6,13 +6,11 @@#include "core/hle/service/time/time.h"-namespace Service {-namespace Time {+namespace Service::Time {class TIME_S final : public Module::Interface {public:explicit TIME_S(std::shared_ptr<Module> time);};-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/time/time_u.cpp b/src/core/hle/service/time/time_u.cppindex bbd1ecab3d..1ed42c4192 100644--- a/src/core/hle/service/time/time_u.cpp+++ b/src/core/hle/service/time/time_u.cpp@@ -4,8 +4,7 @@#include "core/hle/service/time/time_u.h"-namespace Service {-namespace Time {+namespace Service::Time {TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:u") {static const FunctionInfo functions[] = {@@ -29,5 +28,4 @@ TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time)RegisterHandlers(functions);}-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/time/time_u.h b/src/core/hle/service/time/time_u.hindex f99d250570..3724bcdc74 100644--- a/src/core/hle/service/time/time_u.h+++ b/src/core/hle/service/time/time_u.h@@ -6,13 +6,11 @@#include "core/hle/service/time/time.h"-namespace Service {-namespace Time {+namespace Service::Time {class TIME_U final : public Module::Interface {public:explicit TIME_U(std::shared_ptr<Module> time);};-} // namespace Time-} // namespace Service+} // namespace Service::Timediff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cppindex 7c319ee67f..66c18135ba 100644--- a/src/core/hle/service/vi/vi.cpp+++ b/src/core/hle/service/vi/vi.cpp@@ -21,8 +21,7 @@#include "video_core/renderer_base.h"#include "video_core/video_core.h"-namespace Service {-namespace VI {+namespace Service::VI {struct DisplayInfo {char display_name[0x40]{"Default"};@@ -967,5 +966,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager,std::make_shared<VI_U>(module, nv_flinger)->InstallAsService(service_manager);}-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.hindex 7f16fad8eb..e8bda01d73 100644--- a/src/core/hle/service/vi/vi.h+++ b/src/core/hle/service/vi/vi.h@@ -11,8 +11,7 @@ namespace CoreTiming {struct EventType;}-namespace Service {-namespace VI {+namespace Service::VI {enum class DisplayResolution : u32 {DockedWidth = 1920,@@ -40,5 +39,4 @@ public:void InstallInterfaces(SM::ServiceManager& service_manager,std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cppindex 5781fa9ece..d47da565b8 100644--- a/src/core/hle/service/vi/vi_m.cpp+++ b/src/core/hle/service/vi/vi_m.cpp@@ -4,8 +4,7 @@#include "core/hle/service/vi/vi_m.h"-namespace Service {-namespace VI {+namespace Service::VI {VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger): 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>RegisterHandlers(functions);}-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_m.h b/src/core/hle/service/vi/vi_m.hindex 0f7b799d6e..6abb9b3a3b 100644--- a/src/core/hle/service/vi/vi_m.h+++ b/src/core/hle/service/vi/vi_m.h@@ -6,13 +6,11 @@#include "core/hle/service/vi/vi.h"-namespace Service {-namespace VI {+namespace Service::VI {class VI_M final : public Module::Interface {public:explicit VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);};-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cppindex 1f937b2a8f..8f82e797f8 100644--- a/src/core/hle/service/vi/vi_s.cpp+++ b/src/core/hle/service/vi/vi_s.cpp@@ -4,8 +4,7 @@#include "core/hle/service/vi/vi_s.h"-namespace Service {-namespace VI {+namespace Service::VI {VI_S::VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger): 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>RegisterHandlers(functions);}-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_s.h b/src/core/hle/service/vi/vi_s.hindex 7b32fdddcd..8f16f804f8 100644--- a/src/core/hle/service/vi/vi_s.h+++ b/src/core/hle/service/vi/vi_s.h@@ -6,13 +6,11 @@#include "core/hle/service/vi/vi.h"-namespace Service {-namespace VI {+namespace Service::VI {class VI_S final : public Module::Interface {public:explicit VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);};-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cppindex d675dfd9e8..b84aed1d5d 100644--- a/src/core/hle/service/vi/vi_u.cpp+++ b/src/core/hle/service/vi/vi_u.cpp@@ -4,8 +4,7 @@#include "core/hle/service/vi/vi_u.h"-namespace Service {-namespace VI {+namespace Service::VI {VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger): 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>RegisterHandlers(functions);}-} // namespace VI-} // namespace Service+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_u.h b/src/core/hle/service/vi/vi_u.hindex c557a22354..e9b4f76b2c 100644--- a/src/core/hle/service/vi/vi_u.h+++ b/src/core/hle/service/vi/vi_u.h@@ -6,13 +6,11 @@#include "core/hle/service/vi/vi.h"-namespace Service {-namespace VI {+namespace Service::VI {class VI_U final : public Module::Interface {public:explicit VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);};-} // namespace VI-} // namespace Service+} // namespace Service::VI