diff options
| author | 2018-04-19 21:41:44 -0400 | |
|---|---|---|
| committer | 2018-04-19 22:20:28 -0400 | |
| commit | ccca5e7c2872d477cc7bef73ed141dc093b106ef (patch) | |
| tree | 17f5db413993ed4a6f1fec0ac27fb20b44328459 /src/core/hle/service/acc | |
| parent | Merge pull request #356 from lioncash/shader (diff) | |
| download | yuzu-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/core/hle/service/acc')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_aa.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_aa.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_su.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u1.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u1.h | 6 |
9 files changed, 18 insertions, 36 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 | ||
| 13 | namespace Service { | 13 | namespace Service::Account { |
| 14 | namespace Account { | ||
| 15 | 14 | ||
| 16 | // TODO: RE this structure | 15 | // TODO: RE this structure |
| 17 | struct UserData { | 16 | struct 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 | ||
| 9 | namespace Service { | 9 | namespace Service::Account { |
| 10 | namespace Account { | ||
| 11 | 10 | ||
| 12 | class Module final { | 11 | class Module final { |
| 13 | public: | 12 | public: |
| @@ -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. |
| 32 | void InstallInterfaces(SM::ServiceManager& service_manager); | 31 | void 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 | ||
| 7 | namespace Service { | 7 | namespace Service::Account { |
| 8 | namespace Account { | ||
| 9 | 8 | ||
| 10 | ACC_AA::ACC_AA(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:aa") { | 9 | ACC_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 | ||
| 9 | namespace Service { | 9 | namespace Service::Account { |
| 10 | namespace Account { | ||
| 11 | 10 | ||
| 12 | class ACC_AA final : public Module::Interface { | 11 | class ACC_AA final : public Module::Interface { |
| 13 | public: | 12 | public: |
| 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 | ||
| 7 | namespace Service { | 7 | namespace Service::Account { |
| 8 | namespace Account { | ||
| 9 | 8 | ||
| 10 | ACC_SU::ACC_SU(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:su") { | 9 | ACC_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 | ||
| 7 | namespace Service { | 7 | namespace Service::Account { |
| 8 | namespace Account { | ||
| 9 | 8 | ||
| 10 | ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u0") { | 9 | ACC_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 | ||
| 9 | namespace Service { | 9 | namespace Service::Account { |
| 10 | namespace Account { | ||
| 11 | 10 | ||
| 12 | class ACC_U0 final : public Module::Interface { | 11 | class ACC_U0 final : public Module::Interface { |
| 13 | public: | 12 | public: |
| 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 | ||
| 7 | namespace Service { | 7 | namespace Service::Account { |
| 8 | namespace Account { | ||
| 9 | 8 | ||
| 10 | ACC_U1::ACC_U1(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u1") { | 9 | ACC_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 | ||
| 9 | namespace Service { | 9 | namespace Service::Account { |
| 10 | namespace Account { | ||
| 11 | 10 | ||
| 12 | class ACC_U1 final : public Module::Interface { | 11 | class ACC_U1 final : public Module::Interface { |
| 13 | public: | 12 | public: |
| 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 | ||