diff options
25 files changed, 1 insertions, 634 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 8ef1fcaa8..16ced4595 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -384,8 +384,6 @@ add_library(core STATIC | |||
| 384 | hle/service/am/omm.h | 384 | hle/service/am/omm.h |
| 385 | hle/service/am/spsm.cpp | 385 | hle/service/am/spsm.cpp |
| 386 | hle/service/am/spsm.h | 386 | hle/service/am/spsm.h |
| 387 | hle/service/am/tcap.cpp | ||
| 388 | hle/service/am/tcap.h | ||
| 389 | hle/service/aoc/aoc_u.cpp | 387 | hle/service/aoc/aoc_u.cpp |
| 390 | hle/service/aoc/aoc_u.h | 388 | hle/service/aoc/aoc_u.h |
| 391 | hle/service/apm/apm.cpp | 389 | hle/service/apm/apm.cpp |
| @@ -396,28 +394,18 @@ add_library(core STATIC | |||
| 396 | hle/service/apm/apm_interface.h | 394 | hle/service/apm/apm_interface.h |
| 397 | hle/service/audio/audctl.cpp | 395 | hle/service/audio/audctl.cpp |
| 398 | hle/service/audio/audctl.h | 396 | hle/service/audio/audctl.h |
| 399 | hle/service/audio/auddbg.cpp | ||
| 400 | hle/service/audio/auddbg.h | ||
| 401 | hle/service/audio/audin_a.cpp | ||
| 402 | hle/service/audio/audin_a.h | ||
| 403 | hle/service/audio/audin_u.cpp | 397 | hle/service/audio/audin_u.cpp |
| 404 | hle/service/audio/audin_u.h | 398 | hle/service/audio/audin_u.h |
| 405 | hle/service/audio/audio.cpp | 399 | hle/service/audio/audio.cpp |
| 406 | hle/service/audio/audio.h | 400 | hle/service/audio/audio.h |
| 407 | hle/service/audio/audout_a.cpp | ||
| 408 | hle/service/audio/audout_a.h | ||
| 409 | hle/service/audio/audout_u.cpp | 401 | hle/service/audio/audout_u.cpp |
| 410 | hle/service/audio/audout_u.h | 402 | hle/service/audio/audout_u.h |
| 411 | hle/service/audio/audrec_a.cpp | 403 | hle/service/audio/audrec_a.cpp |
| 412 | hle/service/audio/audrec_a.h | 404 | hle/service/audio/audrec_a.h |
| 413 | hle/service/audio/audrec_u.cpp | 405 | hle/service/audio/audrec_u.cpp |
| 414 | hle/service/audio/audrec_u.h | 406 | hle/service/audio/audrec_u.h |
| 415 | hle/service/audio/audren_a.cpp | ||
| 416 | hle/service/audio/audren_a.h | ||
| 417 | hle/service/audio/audren_u.cpp | 407 | hle/service/audio/audren_u.cpp |
| 418 | hle/service/audio/audren_u.h | 408 | hle/service/audio/audren_u.h |
| 419 | hle/service/audio/codecctl.cpp | ||
| 420 | hle/service/audio/codecctl.h | ||
| 421 | hle/service/audio/errors.h | 409 | hle/service/audio/errors.h |
| 422 | hle/service/audio/hwopus.cpp | 410 | hle/service/audio/hwopus.cpp |
| 423 | hle/service/audio/hwopus.h | 411 | hle/service/audio/hwopus.h |
| @@ -712,8 +700,6 @@ add_library(core STATIC | |||
| 712 | hle/service/sm/sm_controller.h | 700 | hle/service/sm/sm_controller.h |
| 713 | hle/service/sockets/bsd.cpp | 701 | hle/service/sockets/bsd.cpp |
| 714 | hle/service/sockets/bsd.h | 702 | hle/service/sockets/bsd.h |
| 715 | hle/service/sockets/ethc.cpp | ||
| 716 | hle/service/sockets/ethc.h | ||
| 717 | hle/service/sockets/nsd.cpp | 703 | hle/service/sockets/nsd.cpp |
| 718 | hle/service/sockets/nsd.h | 704 | hle/service/sockets/nsd.h |
| 719 | hle/service/sockets/sfdnsres.cpp | 705 | hle/service/sockets/sfdnsres.cpp |
| @@ -780,8 +766,6 @@ add_library(core STATIC | |||
| 780 | hle/service/vi/vi_s.h | 766 | hle/service/vi/vi_s.h |
| 781 | hle/service/vi/vi_u.cpp | 767 | hle/service/vi/vi_u.cpp |
| 782 | hle/service/vi/vi_u.h | 768 | hle/service/vi/vi_u.h |
| 783 | hle/service/wlan/wlan.cpp | ||
| 784 | hle/service/wlan/wlan.h | ||
| 785 | internal_network/network.cpp | 769 | internal_network/network.cpp |
| 786 | internal_network/network.h | 770 | internal_network/network.h |
| 787 | internal_network/network_interface.cpp | 771 | internal_network/network_interface.cpp |
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 8d5c8a3a3..83c862b4d 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | #include "core/hle/service/am/idle.h" | 24 | #include "core/hle/service/am/idle.h" |
| 25 | #include "core/hle/service/am/omm.h" | 25 | #include "core/hle/service/am/omm.h" |
| 26 | #include "core/hle/service/am/spsm.h" | 26 | #include "core/hle/service/am/spsm.h" |
| 27 | #include "core/hle/service/am/tcap.h" | ||
| 28 | #include "core/hle/service/apm/apm_controller.h" | 27 | #include "core/hle/service/apm/apm_controller.h" |
| 29 | #include "core/hle/service/apm/apm_interface.h" | 28 | #include "core/hle/service/apm/apm_interface.h" |
| 30 | #include "core/hle/service/bcat/backend/backend.h" | 29 | #include "core/hle/service/bcat/backend/backend.h" |
| @@ -1838,7 +1837,6 @@ void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger | |||
| 1838 | std::make_shared<IdleSys>(system)->InstallAsService(service_manager); | 1837 | std::make_shared<IdleSys>(system)->InstallAsService(service_manager); |
| 1839 | std::make_shared<OMM>(system)->InstallAsService(service_manager); | 1838 | std::make_shared<OMM>(system)->InstallAsService(service_manager); |
| 1840 | std::make_shared<SPSM>(system)->InstallAsService(service_manager); | 1839 | std::make_shared<SPSM>(system)->InstallAsService(service_manager); |
| 1841 | std::make_shared<TCAP>(system)->InstallAsService(service_manager); | ||
| 1842 | } | 1840 | } |
| 1843 | 1841 | ||
| 1844 | IHomeMenuFunctions::IHomeMenuFunctions(Core::System& system_) | 1842 | IHomeMenuFunctions::IHomeMenuFunctions(Core::System& system_) |
diff --git a/src/core/hle/service/am/tcap.cpp b/src/core/hle/service/am/tcap.cpp deleted file mode 100644 index 818420e22..000000000 --- a/src/core/hle/service/am/tcap.cpp +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/am/tcap.h" | ||
| 5 | |||
| 6 | namespace Service::AM { | ||
| 7 | |||
| 8 | TCAP::TCAP(Core::System& system_) : ServiceFramework{system_, "tcap"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "GetContinuousHighSkinTemperatureEvent"}, | ||
| 12 | {1, nullptr, "SetOperationMode"}, | ||
| 13 | {2, nullptr, "LoadAndApplySettings"}, | ||
| 14 | }; | ||
| 15 | // clang-format on | ||
| 16 | |||
| 17 | RegisterHandlers(functions); | ||
| 18 | } | ||
| 19 | |||
| 20 | TCAP::~TCAP() = default; | ||
| 21 | |||
| 22 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/tcap.h b/src/core/hle/service/am/tcap.h deleted file mode 100644 index 6b2148c29..000000000 --- a/src/core/hle/service/am/tcap.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::AM { | ||
| 13 | |||
| 14 | class TCAP final : public ServiceFramework<TCAP> { | ||
| 15 | public: | ||
| 16 | explicit TCAP(Core::System& system_); | ||
| 17 | ~TCAP() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp index 8a338d9b1..44b2927a6 100644 --- a/src/core/hle/service/apm/apm.cpp +++ b/src/core/hle/service/apm/apm.cpp | |||
| @@ -14,8 +14,6 @@ void InstallInterfaces(Core::System& system) { | |||
| 14 | auto module_ = std::make_shared<Module>(); | 14 | auto module_ = std::make_shared<Module>(); |
| 15 | std::make_shared<APM>(system, module_, system.GetAPMController(), "apm") | 15 | std::make_shared<APM>(system, module_, system.GetAPMController(), "apm") |
| 16 | ->InstallAsService(system.ServiceManager()); | 16 | ->InstallAsService(system.ServiceManager()); |
| 17 | std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:p") | ||
| 18 | ->InstallAsService(system.ServiceManager()); | ||
| 19 | std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:am") | 17 | std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:am") |
| 20 | ->InstallAsService(system.ServiceManager()); | 18 | ->InstallAsService(system.ServiceManager()); |
| 21 | std::make_shared<APM_Sys>(system, system.GetAPMController()) | 19 | std::make_shared<APM_Sys>(system, system.GetAPMController()) |
diff --git a/src/core/hle/service/audio/auddbg.cpp b/src/core/hle/service/audio/auddbg.cpp deleted file mode 100644 index 5541af300..000000000 --- a/src/core/hle/service/audio/auddbg.cpp +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/audio/auddbg.h" | ||
| 5 | |||
| 6 | namespace Service::Audio { | ||
| 7 | |||
| 8 | AudDbg::AudDbg(Core::System& system_, const char* name) : ServiceFramework{system_, name} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "RequestSuspendForDebug"}, | ||
| 12 | {1, nullptr, "RequestResumeForDebug"}, | ||
| 13 | }; | ||
| 14 | // clang-format on | ||
| 15 | |||
| 16 | RegisterHandlers(functions); | ||
| 17 | } | ||
| 18 | |||
| 19 | AudDbg::~AudDbg() = default; | ||
| 20 | |||
| 21 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/auddbg.h b/src/core/hle/service/audio/auddbg.h deleted file mode 100644 index 8f26be5dc..000000000 --- a/src/core/hle/service/audio/auddbg.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Audio { | ||
| 13 | |||
| 14 | class AudDbg final : public ServiceFramework<AudDbg> { | ||
| 15 | public: | ||
| 16 | explicit AudDbg(Core::System& system_, const char* name); | ||
| 17 | ~AudDbg() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audin_a.cpp b/src/core/hle/service/audio/audin_a.cpp deleted file mode 100644 index 98f4a6048..000000000 --- a/src/core/hle/service/audio/audin_a.cpp +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/audio/audin_a.h" | ||
| 5 | |||
| 6 | namespace Service::Audio { | ||
| 7 | |||
| 8 | AudInA::AudInA(Core::System& system_) : ServiceFramework{system_, "audin:a"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "RequestSuspend"}, | ||
| 12 | {1, nullptr, "RequestResume"}, | ||
| 13 | {2, nullptr, "GetProcessMasterVolume"}, | ||
| 14 | {3, nullptr, "SetProcessMasterVolume"}, | ||
| 15 | }; | ||
| 16 | // clang-format on | ||
| 17 | |||
| 18 | RegisterHandlers(functions); | ||
| 19 | } | ||
| 20 | |||
| 21 | AudInA::~AudInA() = default; | ||
| 22 | |||
| 23 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audin_a.h b/src/core/hle/service/audio/audin_a.h deleted file mode 100644 index 19a927de5..000000000 --- a/src/core/hle/service/audio/audin_a.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Audio { | ||
| 13 | |||
| 14 | class AudInA final : public ServiceFramework<AudInA> { | ||
| 15 | public: | ||
| 16 | explicit AudInA(Core::System& system_); | ||
| 17 | ~AudInA() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp index 97da71dfa..ed36e3448 100644 --- a/src/core/hle/service/audio/audio.cpp +++ b/src/core/hle/service/audio/audio.cpp | |||
| @@ -2,17 +2,12 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/audio/audctl.h" | 4 | #include "core/hle/service/audio/audctl.h" |
| 5 | #include "core/hle/service/audio/auddbg.h" | ||
| 6 | #include "core/hle/service/audio/audin_a.h" | ||
| 7 | #include "core/hle/service/audio/audin_u.h" | 5 | #include "core/hle/service/audio/audin_u.h" |
| 8 | #include "core/hle/service/audio/audio.h" | 6 | #include "core/hle/service/audio/audio.h" |
| 9 | #include "core/hle/service/audio/audout_a.h" | ||
| 10 | #include "core/hle/service/audio/audout_u.h" | 7 | #include "core/hle/service/audio/audout_u.h" |
| 11 | #include "core/hle/service/audio/audrec_a.h" | 8 | #include "core/hle/service/audio/audrec_a.h" |
| 12 | #include "core/hle/service/audio/audrec_u.h" | 9 | #include "core/hle/service/audio/audrec_u.h" |
| 13 | #include "core/hle/service/audio/audren_a.h" | ||
| 14 | #include "core/hle/service/audio/audren_u.h" | 10 | #include "core/hle/service/audio/audren_u.h" |
| 15 | #include "core/hle/service/audio/codecctl.h" | ||
| 16 | #include "core/hle/service/audio/hwopus.h" | 11 | #include "core/hle/service/audio/hwopus.h" |
| 17 | #include "core/hle/service/service.h" | 12 | #include "core/hle/service/service.h" |
| 18 | 13 | ||
| @@ -20,21 +15,12 @@ namespace Service::Audio { | |||
| 20 | 15 | ||
| 21 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { | 16 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { |
| 22 | std::make_shared<AudCtl>(system)->InstallAsService(service_manager); | 17 | std::make_shared<AudCtl>(system)->InstallAsService(service_manager); |
| 23 | std::make_shared<AudOutA>(system)->InstallAsService(service_manager); | ||
| 24 | std::make_shared<AudOutU>(system)->InstallAsService(service_manager); | 18 | std::make_shared<AudOutU>(system)->InstallAsService(service_manager); |
| 25 | std::make_shared<AudInA>(system)->InstallAsService(service_manager); | ||
| 26 | std::make_shared<AudInU>(system)->InstallAsService(service_manager); | 19 | std::make_shared<AudInU>(system)->InstallAsService(service_manager); |
| 27 | std::make_shared<AudRecA>(system)->InstallAsService(service_manager); | 20 | std::make_shared<AudRecA>(system)->InstallAsService(service_manager); |
| 28 | std::make_shared<AudRecU>(system)->InstallAsService(service_manager); | 21 | std::make_shared<AudRecU>(system)->InstallAsService(service_manager); |
| 29 | std::make_shared<AudRenA>(system)->InstallAsService(service_manager); | ||
| 30 | std::make_shared<AudRenU>(system)->InstallAsService(service_manager); | 22 | std::make_shared<AudRenU>(system)->InstallAsService(service_manager); |
| 31 | std::make_shared<CodecCtl>(system)->InstallAsService(service_manager); | ||
| 32 | std::make_shared<HwOpus>(system)->InstallAsService(service_manager); | 23 | std::make_shared<HwOpus>(system)->InstallAsService(service_manager); |
| 33 | |||
| 34 | std::make_shared<AudDbg>(system, "audin:d")->InstallAsService(service_manager); | ||
| 35 | std::make_shared<AudDbg>(system, "audout:d")->InstallAsService(service_manager); | ||
| 36 | std::make_shared<AudDbg>(system, "audrec:d")->InstallAsService(service_manager); | ||
| 37 | std::make_shared<AudDbg>(system, "audren:d")->InstallAsService(service_manager); | ||
| 38 | } | 24 | } |
| 39 | 25 | ||
| 40 | } // namespace Service::Audio | 26 | } // namespace Service::Audio |
diff --git a/src/core/hle/service/audio/audout_a.cpp b/src/core/hle/service/audio/audout_a.cpp deleted file mode 100644 index 5ecb99236..000000000 --- a/src/core/hle/service/audio/audout_a.cpp +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/audio/audout_a.h" | ||
| 5 | |||
| 6 | namespace Service::Audio { | ||
| 7 | |||
| 8 | AudOutA::AudOutA(Core::System& system_) : ServiceFramework{system_, "audout:a"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "RequestSuspend"}, | ||
| 12 | {1, nullptr, "RequestResume"}, | ||
| 13 | {2, nullptr, "GetProcessMasterVolume"}, | ||
| 14 | {3, nullptr, "SetProcessMasterVolume"}, | ||
| 15 | {4, nullptr, "GetProcessRecordVolume"}, | ||
| 16 | {5, nullptr, "SetProcessRecordVolume"}, | ||
| 17 | }; | ||
| 18 | // clang-format on | ||
| 19 | |||
| 20 | RegisterHandlers(functions); | ||
| 21 | } | ||
| 22 | |||
| 23 | AudOutA::~AudOutA() = default; | ||
| 24 | |||
| 25 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audout_a.h b/src/core/hle/service/audio/audout_a.h deleted file mode 100644 index f641cffeb..000000000 --- a/src/core/hle/service/audio/audout_a.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Audio { | ||
| 13 | |||
| 14 | class AudOutA final : public ServiceFramework<AudOutA> { | ||
| 15 | public: | ||
| 16 | explicit AudOutA(Core::System& system_); | ||
| 17 | ~AudOutA() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audren_a.cpp b/src/core/hle/service/audio/audren_a.cpp deleted file mode 100644 index e775ac3bf..000000000 --- a/src/core/hle/service/audio/audren_a.cpp +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/audio/audren_a.h" | ||
| 5 | |||
| 6 | namespace Service::Audio { | ||
| 7 | |||
| 8 | AudRenA::AudRenA(Core::System& system_) : ServiceFramework{system_, "audren:a"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "RequestSuspend"}, | ||
| 12 | {1, nullptr, "RequestResume"}, | ||
| 13 | {2, nullptr, "GetProcessMasterVolume"}, | ||
| 14 | {3, nullptr, "SetProcessMasterVolume"}, | ||
| 15 | {4, nullptr, "RegisterAppletResourceUserId"}, | ||
| 16 | {5, nullptr, "UnregisterAppletResourceUserId"}, | ||
| 17 | {6, nullptr, "GetProcessRecordVolume"}, | ||
| 18 | {7, nullptr, "SetProcessRecordVolume"}, | ||
| 19 | }; | ||
| 20 | // clang-format on | ||
| 21 | |||
| 22 | RegisterHandlers(functions); | ||
| 23 | } | ||
| 24 | |||
| 25 | AudRenA::~AudRenA() = default; | ||
| 26 | |||
| 27 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/audren_a.h b/src/core/hle/service/audio/audren_a.h deleted file mode 100644 index 9e08b4245..000000000 --- a/src/core/hle/service/audio/audren_a.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Audio { | ||
| 13 | |||
| 14 | class AudRenA final : public ServiceFramework<AudRenA> { | ||
| 15 | public: | ||
| 16 | explicit AudRenA(Core::System& system_); | ||
| 17 | ~AudRenA() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cpp deleted file mode 100644 index 81b956d7e..000000000 --- a/src/core/hle/service/audio/codecctl.cpp +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/audio/codecctl.h" | ||
| 5 | |||
| 6 | namespace Service::Audio { | ||
| 7 | |||
| 8 | CodecCtl::CodecCtl(Core::System& system_) : ServiceFramework{system_, "codecctl"} { | ||
| 9 | static const FunctionInfo functions[] = { | ||
| 10 | {0, nullptr, "Initialize"}, | ||
| 11 | {1, nullptr, "Finalize"}, | ||
| 12 | {2, nullptr, "Sleep"}, | ||
| 13 | {3, nullptr, "Wake"}, | ||
| 14 | {4, nullptr, "SetVolume"}, | ||
| 15 | {5, nullptr, "GetVolumeMax"}, | ||
| 16 | {6, nullptr, "GetVolumeMin"}, | ||
| 17 | {7, nullptr, "SetActiveTarget"}, | ||
| 18 | {8, nullptr, "GetActiveTarget"}, | ||
| 19 | {9, nullptr, "BindHeadphoneMicJackInterrupt"}, | ||
| 20 | {10, nullptr, "IsHeadphoneMicJackInserted"}, | ||
| 21 | {11, nullptr, "ClearHeadphoneMicJackInterrupt"}, | ||
| 22 | {12, nullptr, "IsRequested"}, | ||
| 23 | }; | ||
| 24 | RegisterHandlers(functions); | ||
| 25 | } | ||
| 26 | |||
| 27 | CodecCtl::~CodecCtl() = default; | ||
| 28 | |||
| 29 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.h deleted file mode 100644 index 34da98212..000000000 --- a/src/core/hle/service/audio/codecctl.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Audio { | ||
| 13 | |||
| 14 | class CodecCtl final : public ServiceFramework<CodecCtl> { | ||
| 15 | public: | ||
| 16 | explicit CodecCtl(Core::System& system_); | ||
| 17 | ~CodecCtl() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::Audio | ||
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 5a1aa0903..cd6d000ef 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -2734,25 +2734,11 @@ private: | |||
| 2734 | } | 2734 | } |
| 2735 | }; | 2735 | }; |
| 2736 | 2736 | ||
| 2737 | class HidTmp final : public ServiceFramework<HidTmp> { | ||
| 2738 | public: | ||
| 2739 | explicit HidTmp(Core::System& system_) : ServiceFramework{system_, "hid:tmp"} { | ||
| 2740 | // clang-format off | ||
| 2741 | static const FunctionInfo functions[] = { | ||
| 2742 | {0, nullptr, "GetConsoleSixAxisSensorCalibrationValues"}, | ||
| 2743 | }; | ||
| 2744 | // clang-format on | ||
| 2745 | |||
| 2746 | RegisterHandlers(functions); | ||
| 2747 | } | ||
| 2748 | }; | ||
| 2749 | |||
| 2750 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { | 2737 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { |
| 2751 | std::make_shared<Hid>(system)->InstallAsService(service_manager); | 2738 | std::make_shared<Hid>(system)->InstallAsService(service_manager); |
| 2752 | std::make_shared<HidBus>(system)->InstallAsService(service_manager); | 2739 | std::make_shared<HidBus>(system)->InstallAsService(service_manager); |
| 2753 | std::make_shared<HidDbg>(system)->InstallAsService(service_manager); | 2740 | std::make_shared<HidDbg>(system)->InstallAsService(service_manager); |
| 2754 | std::make_shared<HidSys>(system)->InstallAsService(service_manager); | 2741 | std::make_shared<HidSys>(system)->InstallAsService(service_manager); |
| 2755 | std::make_shared<HidTmp>(system)->InstallAsService(service_manager); | ||
| 2756 | 2742 | ||
| 2757 | std::make_shared<Service::IRS::IRS>(system)->InstallAsService(service_manager); | 2743 | std::make_shared<Service::IRS::IRS>(system)->InstallAsService(service_manager); |
| 2758 | std::make_shared<Service::IRS::IRS_SYS>(system)->InstallAsService(service_manager); | 2744 | std::make_shared<Service::IRS::IRS_SYS>(system)->InstallAsService(service_manager); |
diff --git a/src/core/hle/service/pcv/pcv.cpp b/src/core/hle/service/pcv/pcv.cpp index f7a497a14..98037a8d4 100644 --- a/src/core/hle/service/pcv/pcv.cpp +++ b/src/core/hle/service/pcv/pcv.cpp | |||
| @@ -52,32 +52,6 @@ public: | |||
| 52 | } | 52 | } |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | class PCV_ARB final : public ServiceFramework<PCV_ARB> { | ||
| 56 | public: | ||
| 57 | explicit PCV_ARB(Core::System& system_) : ServiceFramework{system_, "pcv:arb"} { | ||
| 58 | // clang-format off | ||
| 59 | static const FunctionInfo functions[] = { | ||
| 60 | {0, nullptr, "ReleaseControl"}, | ||
| 61 | }; | ||
| 62 | // clang-format on | ||
| 63 | |||
| 64 | RegisterHandlers(functions); | ||
| 65 | } | ||
| 66 | }; | ||
| 67 | |||
| 68 | class PCV_IMM final : public ServiceFramework<PCV_IMM> { | ||
| 69 | public: | ||
| 70 | explicit PCV_IMM(Core::System& system_) : ServiceFramework{system_, "pcv:imm"} { | ||
| 71 | // clang-format off | ||
| 72 | static const FunctionInfo functions[] = { | ||
| 73 | {0, nullptr, "SetClockRate"}, | ||
| 74 | }; | ||
| 75 | // clang-format on | ||
| 76 | |||
| 77 | RegisterHandlers(functions); | ||
| 78 | } | ||
| 79 | }; | ||
| 80 | |||
| 81 | class IClkrstSession final : public ServiceFramework<IClkrstSession> { | 55 | class IClkrstSession final : public ServiceFramework<IClkrstSession> { |
| 82 | public: | 56 | public: |
| 83 | explicit IClkrstSession(Core::System& system_, DeviceCode deivce_code_) | 57 | explicit IClkrstSession(Core::System& system_, DeviceCode deivce_code_) |
| @@ -169,8 +143,6 @@ public: | |||
| 169 | 143 | ||
| 170 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { | 144 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { |
| 171 | std::make_shared<PCV>(system)->InstallAsService(sm); | 145 | std::make_shared<PCV>(system)->InstallAsService(sm); |
| 172 | std::make_shared<PCV_ARB>(system)->InstallAsService(sm); | ||
| 173 | std::make_shared<PCV_IMM>(system)->InstallAsService(sm); | ||
| 174 | std::make_shared<CLKRST>(system, "clkrst")->InstallAsService(sm); | 146 | std::make_shared<CLKRST>(system, "clkrst")->InstallAsService(sm); |
| 175 | std::make_shared<CLKRST>(system, "clkrst:i")->InstallAsService(sm); | 147 | std::make_shared<CLKRST>(system, "clkrst:i")->InstallAsService(sm); |
| 176 | std::make_shared<CLKRST_A>(system)->InstallAsService(sm); | 148 | std::make_shared<CLKRST_A>(system)->InstallAsService(sm); |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 0de67f1e1..1ffc1c694 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -68,7 +68,6 @@ | |||
| 68 | #include "core/hle/service/time/time.h" | 68 | #include "core/hle/service/time/time.h" |
| 69 | #include "core/hle/service/usb/usb.h" | 69 | #include "core/hle/service/usb/usb.h" |
| 70 | #include "core/hle/service/vi/vi.h" | 70 | #include "core/hle/service/vi/vi.h" |
| 71 | #include "core/hle/service/wlan/wlan.h" | ||
| 72 | #include "core/reporter.h" | 71 | #include "core/reporter.h" |
| 73 | 72 | ||
| 74 | namespace Service { | 73 | namespace Service { |
| @@ -306,7 +305,6 @@ Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system | |||
| 306 | Time::InstallInterfaces(system); | 305 | Time::InstallInterfaces(system); |
| 307 | USB::InstallInterfaces(*sm, system); | 306 | USB::InstallInterfaces(*sm, system); |
| 308 | VI::InstallInterfaces(*sm, system, *nv_flinger, *hos_binder_driver_server); | 307 | VI::InstallInterfaces(*sm, system, *nv_flinger, *hos_binder_driver_server); |
| 309 | WLAN::InstallInterfaces(*sm, system); | ||
| 310 | } | 308 | } |
| 311 | 309 | ||
| 312 | Services::~Services() = default; | 310 | Services::~Services() = default; |
diff --git a/src/core/hle/service/sockets/ethc.cpp b/src/core/hle/service/sockets/ethc.cpp deleted file mode 100644 index c12ea999b..000000000 --- a/src/core/hle/service/sockets/ethc.cpp +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/sockets/ethc.h" | ||
| 5 | |||
| 6 | namespace Service::Sockets { | ||
| 7 | |||
| 8 | ETHC_C::ETHC_C(Core::System& system_) : ServiceFramework{system_, "ethc:c"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "Initialize"}, | ||
| 12 | {1, nullptr, "Cancel"}, | ||
| 13 | {2, nullptr, "GetResult"}, | ||
| 14 | {3, nullptr, "GetMediaList"}, | ||
| 15 | {4, nullptr, "SetMediaType"}, | ||
| 16 | {5, nullptr, "GetMediaType"}, | ||
| 17 | {6, nullptr, "Unknown6"}, | ||
| 18 | }; | ||
| 19 | // clang-format on | ||
| 20 | |||
| 21 | RegisterHandlers(functions); | ||
| 22 | } | ||
| 23 | |||
| 24 | ETHC_C::~ETHC_C() = default; | ||
| 25 | |||
| 26 | ETHC_I::ETHC_I(Core::System& system_) : ServiceFramework{system_, "ethc:i"} { | ||
| 27 | // clang-format off | ||
| 28 | static const FunctionInfo functions[] = { | ||
| 29 | {0, nullptr, "GetReadableHandle"}, | ||
| 30 | {1, nullptr, "Cancel"}, | ||
| 31 | {2, nullptr, "GetResult"}, | ||
| 32 | {3, nullptr, "GetInterfaceList"}, | ||
| 33 | {4, nullptr, "GetInterfaceCount"}, | ||
| 34 | }; | ||
| 35 | // clang-format on | ||
| 36 | |||
| 37 | RegisterHandlers(functions); | ||
| 38 | } | ||
| 39 | |||
| 40 | ETHC_I::~ETHC_I() = default; | ||
| 41 | |||
| 42 | } // namespace Service::Sockets | ||
diff --git a/src/core/hle/service/sockets/ethc.h b/src/core/hle/service/sockets/ethc.h deleted file mode 100644 index 7c5759a96..000000000 --- a/src/core/hle/service/sockets/ethc.h +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::Sockets { | ||
| 13 | |||
| 14 | class ETHC_C final : public ServiceFramework<ETHC_C> { | ||
| 15 | public: | ||
| 16 | explicit ETHC_C(Core::System& system_); | ||
| 17 | ~ETHC_C() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | class ETHC_I final : public ServiceFramework<ETHC_I> { | ||
| 21 | public: | ||
| 22 | explicit ETHC_I(Core::System& system_); | ||
| 23 | ~ETHC_I() override; | ||
| 24 | }; | ||
| 25 | |||
| 26 | } // namespace Service::Sockets | ||
diff --git a/src/core/hle/service/sockets/sockets.cpp b/src/core/hle/service/sockets/sockets.cpp index 8d3ba6f96..b191b5cf5 100644 --- a/src/core/hle/service/sockets/sockets.cpp +++ b/src/core/hle/service/sockets/sockets.cpp | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/sockets/bsd.h" | 4 | #include "core/hle/service/sockets/bsd.h" |
| 5 | #include "core/hle/service/sockets/ethc.h" | ||
| 6 | #include "core/hle/service/sockets/nsd.h" | 5 | #include "core/hle/service/sockets/nsd.h" |
| 7 | #include "core/hle/service/sockets/sfdnsres.h" | 6 | #include "core/hle/service/sockets/sfdnsres.h" |
| 8 | #include "core/hle/service/sockets/sockets.h" | 7 | #include "core/hle/service/sockets/sockets.h" |
| @@ -14,9 +13,6 @@ void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system | |||
| 14 | std::make_shared<BSD>(system, "bsd:u")->InstallAsService(service_manager); | 13 | std::make_shared<BSD>(system, "bsd:u")->InstallAsService(service_manager); |
| 15 | std::make_shared<BSDCFG>(system)->InstallAsService(service_manager); | 14 | std::make_shared<BSDCFG>(system)->InstallAsService(service_manager); |
| 16 | 15 | ||
| 17 | std::make_shared<ETHC_C>(system)->InstallAsService(service_manager); | ||
| 18 | std::make_shared<ETHC_I>(system)->InstallAsService(service_manager); | ||
| 19 | |||
| 20 | std::make_shared<NSD>(system, "nsd:a")->InstallAsService(service_manager); | 16 | std::make_shared<NSD>(system, "nsd:a")->InstallAsService(service_manager); |
| 21 | std::make_shared<NSD>(system, "nsd:u")->InstallAsService(service_manager); | 17 | std::make_shared<NSD>(system, "nsd:u")->InstallAsService(service_manager); |
| 22 | 18 | ||
diff --git a/src/core/hle/service/wlan/wlan.cpp b/src/core/hle/service/wlan/wlan.cpp deleted file mode 100644 index 226e3034c..000000000 --- a/src/core/hle/service/wlan/wlan.cpp +++ /dev/null | |||
| @@ -1,186 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include <memory> | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | #include "core/hle/service/sm/sm.h" | ||
| 8 | #include "core/hle/service/wlan/wlan.h" | ||
| 9 | |||
| 10 | namespace Service::WLAN { | ||
| 11 | |||
| 12 | class WLANInfra final : public ServiceFramework<WLANInfra> { | ||
| 13 | public: | ||
| 14 | explicit WLANInfra(Core::System& system_) : ServiceFramework{system_, "wlan:inf"} { | ||
| 15 | // clang-format off | ||
| 16 | static const FunctionInfo functions[] = { | ||
| 17 | {0, nullptr, "OpenMode"}, | ||
| 18 | {1, nullptr, "CloseMode"}, | ||
| 19 | {2, nullptr, "GetMacAddress"}, | ||
| 20 | {3, nullptr, "StartScan"}, | ||
| 21 | {4, nullptr, "StopScan"}, | ||
| 22 | {5, nullptr, "Connect"}, | ||
| 23 | {6, nullptr, "CancelConnect"}, | ||
| 24 | {7, nullptr, "Disconnect"}, | ||
| 25 | {8, nullptr, "GetConnectionEvent"}, | ||
| 26 | {9, nullptr, "GetConnectionStatus"}, | ||
| 27 | {10, nullptr, "GetState"}, | ||
| 28 | {11, nullptr, "GetScanResult"}, | ||
| 29 | {12, nullptr, "GetRssi"}, | ||
| 30 | {13, nullptr, "ChangeRxAntenna"}, | ||
| 31 | {14, nullptr, "GetFwVersion"}, | ||
| 32 | {15, nullptr, "RequestSleep"}, | ||
| 33 | {16, nullptr, "RequestWakeUp"}, | ||
| 34 | {17, nullptr, "RequestIfUpDown"}, | ||
| 35 | {18, nullptr, "Unknown18"}, | ||
| 36 | {19, nullptr, "Unknown19"}, | ||
| 37 | {20, nullptr, "Unknown20"}, | ||
| 38 | {21, nullptr, "Unknown21"}, | ||
| 39 | {22, nullptr, "Unknown22"}, | ||
| 40 | {23, nullptr, "Unknown23"}, | ||
| 41 | {24, nullptr, "Unknown24"}, | ||
| 42 | {25, nullptr, "Unknown25"}, | ||
| 43 | {26, nullptr, "Unknown26"}, | ||
| 44 | {27, nullptr, "Unknown27"}, | ||
| 45 | {28, nullptr, "Unknown28"}, | ||
| 46 | {29, nullptr, "Unknown29"}, | ||
| 47 | {30, nullptr, "Unknown30"}, | ||
| 48 | {31, nullptr, "Unknown31"}, | ||
| 49 | {32, nullptr, "Unknown32"}, | ||
| 50 | {33, nullptr, "Unknown33"}, | ||
| 51 | {34, nullptr, "Unknown34"}, | ||
| 52 | {35, nullptr, "Unknown35"}, | ||
| 53 | {36, nullptr, "Unknown36"}, | ||
| 54 | {37, nullptr, "Unknown37"}, | ||
| 55 | {38, nullptr, "Unknown38"}, | ||
| 56 | }; | ||
| 57 | // clang-format on | ||
| 58 | |||
| 59 | RegisterHandlers(functions); | ||
| 60 | } | ||
| 61 | }; | ||
| 62 | |||
| 63 | class WLANLocal final : public ServiceFramework<WLANLocal> { | ||
| 64 | public: | ||
| 65 | explicit WLANLocal(Core::System& system_) : ServiceFramework{system_, "wlan:lcl"} { | ||
| 66 | // clang-format off | ||
| 67 | static const FunctionInfo functions[] = { | ||
| 68 | {0, nullptr, "Unknown0"}, | ||
| 69 | {1, nullptr, "Unknown1"}, | ||
| 70 | {2, nullptr, "Unknown2"}, | ||
| 71 | {3, nullptr, "Unknown3"}, | ||
| 72 | {4, nullptr, "Unknown4"}, | ||
| 73 | {5, nullptr, "Unknown5"}, | ||
| 74 | {6, nullptr, "GetMacAddress"}, | ||
| 75 | {7, nullptr, "CreateBss"}, | ||
| 76 | {8, nullptr, "DestroyBss"}, | ||
| 77 | {9, nullptr, "StartScan"}, | ||
| 78 | {10, nullptr, "StopScan"}, | ||
| 79 | {11, nullptr, "Connect"}, | ||
| 80 | {12, nullptr, "CancelConnect"}, | ||
| 81 | {13, nullptr, "Join"}, | ||
| 82 | {14, nullptr, "CancelJoin"}, | ||
| 83 | {15, nullptr, "Disconnect"}, | ||
| 84 | {16, nullptr, "SetBeaconLostCount"}, | ||
| 85 | {17, nullptr, "Unknown17"}, | ||
| 86 | {18, nullptr, "Unknown18"}, | ||
| 87 | {19, nullptr, "Unknown19"}, | ||
| 88 | {20, nullptr, "GetBssIndicationEvent"}, | ||
| 89 | {21, nullptr, "GetBssIndicationInfo"}, | ||
| 90 | {22, nullptr, "GetState"}, | ||
| 91 | {23, nullptr, "GetAllowedChannels"}, | ||
| 92 | {24, nullptr, "AddIe"}, | ||
| 93 | {25, nullptr, "DeleteIe"}, | ||
| 94 | {26, nullptr, "Unknown26"}, | ||
| 95 | {27, nullptr, "Unknown27"}, | ||
| 96 | {28, nullptr, "CreateRxEntry"}, | ||
| 97 | {29, nullptr, "DeleteRxEntry"}, | ||
| 98 | {30, nullptr, "Unknown30"}, | ||
| 99 | {31, nullptr, "Unknown31"}, | ||
| 100 | {32, nullptr, "AddMatchingDataToRxEntry"}, | ||
| 101 | {33, nullptr, "RemoveMatchingDataFromRxEntry"}, | ||
| 102 | {34, nullptr, "GetScanResult"}, | ||
| 103 | {35, nullptr, "Unknown35"}, | ||
| 104 | {36, nullptr, "SetActionFrameWithBeacon"}, | ||
| 105 | {37, nullptr, "CancelActionFrameWithBeacon"}, | ||
| 106 | {38, nullptr, "CreateRxEntryForActionFrame"}, | ||
| 107 | {39, nullptr, "DeleteRxEntryForActionFrame"}, | ||
| 108 | {40, nullptr, "Unknown40"}, | ||
| 109 | {41, nullptr, "Unknown41"}, | ||
| 110 | {42, nullptr, "CancelGetActionFrame"}, | ||
| 111 | {43, nullptr, "GetRssi"}, | ||
| 112 | {44, nullptr, "Unknown44"}, | ||
| 113 | {45, nullptr, "Unknown45"}, | ||
| 114 | {46, nullptr, "Unknown46"}, | ||
| 115 | {47, nullptr, "Unknown47"}, | ||
| 116 | {48, nullptr, "Unknown48"}, | ||
| 117 | {49, nullptr, "Unknown49"}, | ||
| 118 | {50, nullptr, "Unknown50"}, | ||
| 119 | {51, nullptr, "Unknown51"}, | ||
| 120 | }; | ||
| 121 | // clang-format on | ||
| 122 | |||
| 123 | RegisterHandlers(functions); | ||
| 124 | } | ||
| 125 | }; | ||
| 126 | |||
| 127 | class WLANLocalGetFrame final : public ServiceFramework<WLANLocalGetFrame> { | ||
| 128 | public: | ||
| 129 | explicit WLANLocalGetFrame(Core::System& system_) : ServiceFramework{system_, "wlan:lg"} { | ||
| 130 | // clang-format off | ||
| 131 | static const FunctionInfo functions[] = { | ||
| 132 | {0, nullptr, "Unknown"}, | ||
| 133 | }; | ||
| 134 | // clang-format on | ||
| 135 | |||
| 136 | RegisterHandlers(functions); | ||
| 137 | } | ||
| 138 | }; | ||
| 139 | |||
| 140 | class WLANSocketGetFrame final : public ServiceFramework<WLANSocketGetFrame> { | ||
| 141 | public: | ||
| 142 | explicit WLANSocketGetFrame(Core::System& system_) : ServiceFramework{system_, "wlan:sg"} { | ||
| 143 | // clang-format off | ||
| 144 | static const FunctionInfo functions[] = { | ||
| 145 | {0, nullptr, "Unknown"}, | ||
| 146 | }; | ||
| 147 | // clang-format on | ||
| 148 | |||
| 149 | RegisterHandlers(functions); | ||
| 150 | } | ||
| 151 | }; | ||
| 152 | |||
| 153 | class WLANSocketManager final : public ServiceFramework<WLANSocketManager> { | ||
| 154 | public: | ||
| 155 | explicit WLANSocketManager(Core::System& system_) : ServiceFramework{system_, "wlan:soc"} { | ||
| 156 | // clang-format off | ||
| 157 | static const FunctionInfo functions[] = { | ||
| 158 | {0, nullptr, "Unknown0"}, | ||
| 159 | {1, nullptr, "Unknown1"}, | ||
| 160 | {2, nullptr, "Unknown2"}, | ||
| 161 | {3, nullptr, "Unknown3"}, | ||
| 162 | {4, nullptr, "Unknown4"}, | ||
| 163 | {5, nullptr, "Unknown5"}, | ||
| 164 | {6, nullptr, "GetMacAddress"}, | ||
| 165 | {7, nullptr, "SwitchTsfTimerFunction"}, | ||
| 166 | {8, nullptr, "Unknown8"}, | ||
| 167 | {9, nullptr, "Unknown9"}, | ||
| 168 | {10, nullptr, "Unknown10"}, | ||
| 169 | {11, nullptr, "Unknown11"}, | ||
| 170 | {12, nullptr, "Unknown12"}, | ||
| 171 | }; | ||
| 172 | // clang-format on | ||
| 173 | |||
| 174 | RegisterHandlers(functions); | ||
| 175 | } | ||
| 176 | }; | ||
| 177 | |||
| 178 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { | ||
| 179 | std::make_shared<WLANInfra>(system)->InstallAsService(sm); | ||
| 180 | std::make_shared<WLANLocal>(system)->InstallAsService(sm); | ||
| 181 | std::make_shared<WLANLocalGetFrame>(system)->InstallAsService(sm); | ||
| 182 | std::make_shared<WLANSocketGetFrame>(system)->InstallAsService(sm); | ||
| 183 | std::make_shared<WLANSocketManager>(system)->InstallAsService(sm); | ||
| 184 | } | ||
| 185 | |||
| 186 | } // namespace Service::WLAN | ||
diff --git a/src/core/hle/service/wlan/wlan.h b/src/core/hle/service/wlan/wlan.h deleted file mode 100644 index 535c3bf0d..000000000 --- a/src/core/hle/service/wlan/wlan.h +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | namespace Core { | ||
| 7 | class System; | ||
| 8 | } | ||
| 9 | |||
| 10 | namespace Service::SM { | ||
| 11 | class ServiceManager; | ||
| 12 | } | ||
| 13 | |||
| 14 | namespace Service::WLAN { | ||
| 15 | |||
| 16 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); | ||
| 17 | |||
| 18 | } // namespace Service::WLAN | ||
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 1e6778ada..7629904b3 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -3167,20 +3167,8 @@ void GMainWindow::ShowFullscreen() { | |||
| 3167 | window->hide(); | 3167 | window->hide(); |
| 3168 | window->setWindowFlags(window->windowFlags() | Qt::FramelessWindowHint); | 3168 | window->setWindowFlags(window->windowFlags() | Qt::FramelessWindowHint); |
| 3169 | const auto screen_geometry = GuessCurrentScreen(window)->geometry(); | 3169 | const auto screen_geometry = GuessCurrentScreen(window)->geometry(); |
| 3170 | // NB: On Windows, a borderless window will be treated the same as exclusive fullscreen | ||
| 3171 | // when the window geometry matches the physical dimensions of the screen. | ||
| 3172 | // However, with High DPI scaling, when the devicePixelRatioF() is > 1, the borderless | ||
| 3173 | // window apparently is not treated as exclusive fullscreen and functions correctly. | ||
| 3174 | // One can verify and replicate this behavior by using a high resolution (4K) display, | ||
| 3175 | // and switching between 100% and 200% scaling in Windows' display settings. | ||
| 3176 | // At 100%, without the addition of 1, it is treated as exclusive fullscreen. | ||
| 3177 | // At 200%, with or without the addition of 1, it is treated as borderless windowed. | ||
| 3178 | // Therefore, we can use (read: abuse) this difference in behavior to fix this issue for | ||
| 3179 | // those with higher resolution displays when the Qt scaling ratio is > 1. | ||
| 3180 | // Should this behavior be changed in the future, please revisit this workaround. | ||
| 3181 | const bool must_add_one = devicePixelRatioF() == 1.0f; | ||
| 3182 | window->setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(), | 3170 | window->setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(), |
| 3183 | screen_geometry.height() + (must_add_one ? 1 : 0)); | 3171 | screen_geometry.height() + 1); |
| 3184 | window->raise(); | 3172 | window->raise(); |
| 3185 | window->showNormal(); | 3173 | window->showNormal(); |
| 3186 | }; | 3174 | }; |