VERY experimental Nintendo Switch 2 emulator
C++
hle/service: Default constructors and destructors in the cpp file where applicable
Lioncash8a9b062587ba
diff --git a/src/core/hle/service/acc/acc_aa.cpp b/src/core/hle/service/acc/acc_aa.cppindex 9bd595a37b..e84d9f7cf3 100644--- a/src/core/hle/service/acc/acc_aa.cpp+++ b/src/core/hle/service/acc/acc_aa.cpp@@ -18,4 +18,6 @@ ACC_AA::ACC_AA(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> pRegisterHandlers(functions);}+ACC_AA::~ACC_AA() = default;+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_aa.h b/src/core/hle/service/acc/acc_aa.hindex 2e08c781a6..9edb0421bd 100644--- a/src/core/hle/service/acc/acc_aa.h+++ b/src/core/hle/service/acc/acc_aa.h@@ -12,6 +12,7 @@ class ACC_AA final : public Module::Interface {public:explicit ACC_AA(std::shared_ptr<Module> module,std::shared_ptr<ProfileManager> profile_manager);+ ~ACC_AA() override;};} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_su.cpp b/src/core/hle/service/acc/acc_su.cppindex 0218ee8595..ad455c3a71 100644--- a/src/core/hle/service/acc/acc_su.cpp+++ b/src/core/hle/service/acc/acc_su.cpp@@ -51,4 +51,6 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> pRegisterHandlers(functions);}+ACC_SU::~ACC_SU() = default;+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_su.h b/src/core/hle/service/acc/acc_su.hindex 79a47d88d1..a3eb885bf0 100644--- a/src/core/hle/service/acc/acc_su.h+++ b/src/core/hle/service/acc/acc_su.h@@ -13,6 +13,7 @@ class ACC_SU final : public Module::Interface {public:explicit ACC_SU(std::shared_ptr<Module> module,std::shared_ptr<ProfileManager> profile_manager);+ ~ACC_SU() override;};} // namespace Accountdiff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cppindex 84a4d05b89..72d4adf358 100644--- a/src/core/hle/service/acc/acc_u0.cpp+++ b/src/core/hle/service/acc/acc_u0.cpp@@ -31,4 +31,6 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> pRegisterHandlers(functions);}+ACC_U0::~ACC_U0() = default;+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.hindex e8a114f996..a1290e0bdc 100644--- a/src/core/hle/service/acc/acc_u0.h+++ b/src/core/hle/service/acc/acc_u0.h@@ -12,6 +12,7 @@ class ACC_U0 final : public Module::Interface {public:explicit ACC_U0(std::shared_ptr<Module> module,std::shared_ptr<ProfileManager> profile_manager);+ ~ACC_U0() override;};} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u1.cpp b/src/core/hle/service/acc/acc_u1.cppindex 4956939498..d480f08e58 100644--- a/src/core/hle/service/acc/acc_u1.cpp+++ b/src/core/hle/service/acc/acc_u1.cpp@@ -38,4 +38,6 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> pRegisterHandlers(functions);}+ACC_U1::~ACC_U1() = default;+} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/acc_u1.h b/src/core/hle/service/acc/acc_u1.hindex a77520e6f1..9e79daee35 100644--- a/src/core/hle/service/acc/acc_u1.h+++ b/src/core/hle/service/acc/acc_u1.h@@ -12,6 +12,7 @@ class ACC_U1 final : public Module::Interface {public:explicit ACC_U1(std::shared_ptr<Module> module,std::shared_ptr<ProfileManager> profile_manager);+ ~ACC_U1() override;};} // namespace Service::Accountdiff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cppindex e0b03d7636..4ccebef234 100644--- a/src/core/hle/service/acc/profile_manager.cpp+++ b/src/core/hle/service/acc/profile_manager.cpp@@ -29,6 +29,8 @@ ProfileManager::ProfileManager() {OpenUser(user_uuid);}+ProfileManager::~ProfileManager() = default;+/// After a users creation it needs to be "registered" to the system. AddToProfiles handles the/// internal management of the users profilesboost::optional<size_t> ProfileManager::AddToProfiles(const ProfileInfo& user) {diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.hindex 52967844d3..cd8df93a54 100644--- a/src/core/hle/service/acc/profile_manager.h+++ b/src/core/hle/service/acc/profile_manager.h@@ -82,6 +82,8 @@ static_assert(sizeof(ProfileBase) == 0x38, "ProfileBase is an invalid size");class ProfileManager {public:ProfileManager(); // TODO(ogniK): Load from system save+ ~ProfileManager();+ResultCode AddUser(const ProfileInfo& user);ResultCode CreateNewUser(UUID uuid, const ProfileUsername& username);ResultCode CreateNewUser(UUID uuid, const std::string& username);diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex 818c03e0f3..a57ed30427 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -35,6 +35,8 @@ IWindowController::IWindowController() : ServiceFramework("IWindowController") {RegisterHandlers(functions);}+IWindowController::~IWindowController() = default;+void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service_AM, "(STUBBED) called");IPC::ResponseBuilder rb{ctx, 4};@@ -61,6 +63,8 @@ IAudioController::IAudioController() : ServiceFramework("IAudioController") {RegisterHandlers(functions);}+IAudioController::~IAudioController() = default;+void IAudioController::SetExpectedMasterVolume(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service_AM, "(STUBBED) called");IPC::ResponseBuilder rb{ctx, 2};@@ -116,7 +120,10 @@ IDisplayController::IDisplayController() : ServiceFramework("IDisplayController"RegisterHandlers(functions);}+IDisplayController::~IDisplayController() = default;+IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {}+IDebugFunctions::~IDebugFunctions() = default;ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger): ServiceFramework("ISelfController"), nvflinger(std::move(nvflinger)) {@@ -165,6 +172,8 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflingerKernel::Event::Create(kernel, Kernel::ResetType::Sticky, "ISelfController:LaunchableEvent");}+ISelfController::~ISelfController() = default;+void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) {// Takes 3 input u8s with each field located immediately after the previous u8, these are// bool flags. No output.@@ -337,6 +346,8 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter"event = Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "ICommonStateGetter:Event");}+ICommonStateGetter::~ICommonStateGetter() = default;+void ICommonStateGetter::GetBootMode(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 3};rb.Push(RESULT_SUCCESS);@@ -573,6 +584,8 @@ ILibraryAppletCreator::ILibraryAppletCreator() : ServiceFramework("ILibraryAppleRegisterHandlers(functions);}+ILibraryAppletCreator::~ILibraryAppletCreator() = default;+void ILibraryAppletCreator::CreateLibraryApplet(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2, 0, 1};@@ -638,6 +651,8 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFRegisterHandlers(functions);}+IApplicationFunctions::~IApplicationFunctions() = default;+void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {constexpr std::array<u8, 0x88> data{{0xca, 0x97, 0x94, 0xc7, // Magic@@ -760,6 +775,8 @@ IHomeMenuFunctions::IHomeMenuFunctions() : ServiceFramework("IHomeMenuFunctions"RegisterHandlers(functions);}+IHomeMenuFunctions::~IHomeMenuFunctions() = default;+void IHomeMenuFunctions::RequestToGetForeground(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);@@ -783,6 +800,8 @@ IGlobalStateController::IGlobalStateController() : ServiceFramework("IGlobalStatRegisterHandlers(functions);}+IGlobalStateController::~IGlobalStateController() = default;+IApplicationCreator::IApplicationCreator() : ServiceFramework("IApplicationCreator") {static const FunctionInfo functions[] = {{0, nullptr, "CreateApplication"},@@ -793,6 +812,8 @@ IApplicationCreator::IApplicationCreator() : ServiceFramework("IApplicationCreatRegisterHandlers(functions);}+IApplicationCreator::~IApplicationCreator() = default;+IProcessWindingController::IProcessWindingController(): ServiceFramework("IProcessWindingController") {static const FunctionInfo functions[] = {@@ -807,4 +828,6 @@ IProcessWindingController::IProcessWindingController()};RegisterHandlers(functions);}++IProcessWindingController::~IProcessWindingController() = default;} // namespace Service::AMdiff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.hindex 9e8bb4e439..fd9ae296b4 100644--- a/src/core/hle/service/am/am.h+++ b/src/core/hle/service/am/am.h@@ -42,6 +42,7 @@ enum SystemLanguage {class IWindowController final : public ServiceFramework<IWindowController> {public:IWindowController();+ ~IWindowController() override;private:void GetAppletResourceUserId(Kernel::HLERequestContext& ctx);@@ -51,6 +52,7 @@ private:class IAudioController final : public ServiceFramework<IAudioController> {public:IAudioController();+ ~IAudioController() override;private:void SetExpectedMasterVolume(Kernel::HLERequestContext& ctx);@@ -63,16 +65,19 @@ private:class IDisplayController final : public ServiceFramework<IDisplayController> {public:IDisplayController();+ ~IDisplayController() override;};class IDebugFunctions final : public ServiceFramework<IDebugFunctions> {public:IDebugFunctions();+ ~IDebugFunctions() override;};class ISelfController final : public ServiceFramework<ISelfController> {public:explicit ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger);+ ~ISelfController() override;private:void SetFocusHandlingMode(Kernel::HLERequestContext& ctx);@@ -98,6 +103,7 @@ private:class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> {public:ICommonStateGetter();+ ~ICommonStateGetter() override;private:enum class FocusState : u8 {@@ -124,6 +130,7 @@ private:class ILibraryAppletCreator final : public ServiceFramework<ILibraryAppletCreator> {public:ILibraryAppletCreator();+ ~ILibraryAppletCreator() override;private:void CreateLibraryApplet(Kernel::HLERequestContext& ctx);@@ -133,6 +140,7 @@ private:class IApplicationFunctions final : public ServiceFramework<IApplicationFunctions> {public:IApplicationFunctions();+ ~IApplicationFunctions() override;private:void PopLaunchParameter(Kernel::HLERequestContext& ctx);@@ -150,6 +158,7 @@ private:class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> {public:IHomeMenuFunctions();+ ~IHomeMenuFunctions() override;private:void RequestToGetForeground(Kernel::HLERequestContext& ctx);@@ -158,16 +167,19 @@ private:class IGlobalStateController final : public ServiceFramework<IGlobalStateController> {public:IGlobalStateController();+ ~IGlobalStateController() override;};class IApplicationCreator final : public ServiceFramework<IApplicationCreator> {public:IApplicationCreator();+ ~IApplicationCreator() override;};class IProcessWindingController final : public ServiceFramework<IProcessWindingController> {public:IProcessWindingController();+ ~IProcessWindingController() override;};/// Registers all AM services with the specified service manager.diff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cppindex 7cebc918a2..4296c255ee 100644--- a/src/core/hle/service/am/applet_ae.cpp+++ b/src/core/hle/service/am/applet_ae.cpp@@ -222,4 +222,6 @@ AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)RegisterHandlers(functions);}+AppletAE::~AppletAE() = default;+} // namespace Service::AMdiff --git a/src/core/hle/service/am/applet_ae.h b/src/core/hle/service/am/applet_ae.hindex bdc57b9bcb..1ed77baa47 100644--- a/src/core/hle/service/am/applet_ae.h+++ b/src/core/hle/service/am/applet_ae.h@@ -18,7 +18,7 @@ namespace AM {class AppletAE final : public ServiceFramework<AppletAE> {public:explicit AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger);- ~AppletAE() = default;+ ~AppletAE() override;private:void OpenSystemAppletProxy(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cppindex beea7d19bc..e45cf6e202 100644--- a/src/core/hle/service/am/applet_oe.cpp+++ b/src/core/hle/service/am/applet_oe.cpp@@ -103,4 +103,6 @@ AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)RegisterHandlers(functions);}+AppletOE::~AppletOE() = default;+} // namespace Service::AMdiff --git a/src/core/hle/service/am/applet_oe.h b/src/core/hle/service/am/applet_oe.hindex c52e2a3223..60cfdfd9d7 100644--- a/src/core/hle/service/am/applet_oe.h+++ b/src/core/hle/service/am/applet_oe.h@@ -18,7 +18,7 @@ namespace AM {class AppletOE final : public ServiceFramework<AppletOE> {public:explicit AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger);- ~AppletOE() = default;+ ~AppletOE() override;private:void OpenApplicationProxy(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/am/idle.cpp b/src/core/hle/service/am/idle.cppindex af46e94948..0e3088bc82 100644--- a/src/core/hle/service/am/idle.cpp+++ b/src/core/hle/service/am/idle.cpp@@ -21,4 +21,6 @@ IdleSys::IdleSys() : ServiceFramework{"idle:sys"} {RegisterHandlers(functions);}+IdleSys::~IdleSys() = default;+} // namespace Service::AMdiff --git a/src/core/hle/service/am/idle.h b/src/core/hle/service/am/idle.hindex 1eb68d2c95..c44e856b11 100644--- a/src/core/hle/service/am/idle.h+++ b/src/core/hle/service/am/idle.h@@ -11,6 +11,7 @@ namespace Service::AM {class IdleSys final : public ServiceFramework<IdleSys> {public:explicit IdleSys();+ ~IdleSys() override;};} // namespace Service::AMdiff --git a/src/core/hle/service/am/omm.cpp b/src/core/hle/service/am/omm.cppindex 447fe86694..1c37f849f3 100644--- a/src/core/hle/service/am/omm.cpp+++ b/src/core/hle/service/am/omm.cpp@@ -39,4 +39,6 @@ OMM::OMM() : ServiceFramework{"omm"} {RegisterHandlers(functions);}+OMM::~OMM() = default;+} // namespace Service::AMdiff --git a/src/core/hle/service/am/omm.h b/src/core/hle/service/am/omm.hindex 49e5d331c4..59dc91b72d 100644--- a/src/core/hle/service/am/omm.h+++ b/src/core/hle/service/am/omm.h@@ -11,6 +11,7 @@ namespace Service::AM {class OMM final : public ServiceFramework<OMM> {public:explicit OMM();+ ~OMM() override;};} // namespace Service::AMdiff --git a/src/core/hle/service/am/spsm.cpp b/src/core/hle/service/am/spsm.cppindex a05d433d04..003ee86675 100644--- a/src/core/hle/service/am/spsm.cpp+++ b/src/core/hle/service/am/spsm.cpp@@ -27,4 +27,6 @@ SPSM::SPSM() : ServiceFramework{"spsm"} {RegisterHandlers(functions);}+SPSM::~SPSM() = default;+} // namespace Service::AMdiff --git a/src/core/hle/service/am/spsm.h b/src/core/hle/service/am/spsm.hindex 57dde62e1d..3a0b979fa1 100644--- a/src/core/hle/service/am/spsm.h+++ b/src/core/hle/service/am/spsm.h@@ -11,6 +11,7 @@ namespace Service::AM {class SPSM final : public ServiceFramework<SPSM> {public:explicit SPSM();+ ~SPSM() override;};} // namespace Service::AMdiff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cppindex 6e7438580c..d9eeac9ec7 100644--- a/src/core/hle/service/aoc/aoc_u.cpp+++ b/src/core/hle/service/aoc/aoc_u.cpp@@ -23,6 +23,8 @@ AOC_U::AOC_U() : ServiceFramework("aoc:u") {RegisterHandlers(functions);}+AOC_U::~AOC_U() = default;+void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 4};rb.Push(RESULT_SUCCESS);diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.hindex 17d48ef304..29ce8f488c 100644--- a/src/core/hle/service/aoc/aoc_u.h+++ b/src/core/hle/service/aoc/aoc_u.h@@ -11,7 +11,7 @@ namespace Service::AOC {class AOC_U final : public ServiceFramework<AOC_U> {public:AOC_U();- ~AOC_U() = default;+ ~AOC_U() override;private:void CountAddOnContent(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cppindex 4109cb7f76..f3c09bbb1a 100644--- a/src/core/hle/service/apm/apm.cpp+++ b/src/core/hle/service/apm/apm.cpp@@ -9,6 +9,9 @@namespace Service::APM {+Module::Module() = default;+Module::~Module() = default;+void InstallInterfaces(SM::ServiceManager& service_manager) {auto module_ = std::make_shared<Module>();std::make_shared<APM>(module_, "apm")->InstallAsService(service_manager);diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.hindex 90a80d51bd..4d7d5bb7c3 100644--- a/src/core/hle/service/apm/apm.h+++ b/src/core/hle/service/apm/apm.h@@ -15,8 +15,8 @@ enum class PerformanceMode : u8 {class Module final {public:- Module() = default;- ~Module() = default;+ Module();+ ~Module();};/// Registers all AM services with the specified service manager.diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cppindex 4cd8132f59..c22bd3859e 100644--- a/src/core/hle/service/apm/interface.cpp+++ b/src/core/hle/service/apm/interface.cpp@@ -70,6 +70,8 @@ APM::APM(std::shared_ptr<Module> apm, const char* name)RegisterHandlers(functions);}+APM::~APM() = default;+void APM::OpenSession(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2, 0, 1};rb.Push(RESULT_SUCCESS);@@ -93,6 +95,8 @@ APM_Sys::APM_Sys() : ServiceFramework{"apm:sys"} {RegisterHandlers(functions);}+APM_Sys::~APM_Sys() = default;+void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2, 0, 1};rb.Push(RESULT_SUCCESS);diff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.hindex d14264ad73..773541aa4b 100644--- a/src/core/hle/service/apm/interface.h+++ b/src/core/hle/service/apm/interface.h@@ -11,7 +11,7 @@ namespace Service::APM {class APM final : public ServiceFramework<APM> {public:explicit APM(std::shared_ptr<Module> apm, const char* name);- ~APM() = default;+ ~APM() override;private:void OpenSession(Kernel::HLERequestContext& ctx);@@ -22,6 +22,7 @@ private:class APM_Sys final : public ServiceFramework<APM_Sys> {public:explicit APM_Sys();+ ~APM_Sys() override;private:void GetPerformanceEvent(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/audio/audctl.cpp b/src/core/hle/service/audio/audctl.cppindex 37c3fdcacb..b6b71f9666 100644--- a/src/core/hle/service/audio/audctl.cpp+++ b/src/core/hle/service/audio/audctl.cpp@@ -42,4 +42,6 @@ AudCtl::AudCtl() : ServiceFramework{"audctl"} {RegisterHandlers(functions);}+AudCtl::~AudCtl() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audctl.h b/src/core/hle/service/audio/audctl.hindex ed837bdf24..9d2d9e83bc 100644--- a/src/core/hle/service/audio/audctl.h+++ b/src/core/hle/service/audio/audctl.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudCtl final : public ServiceFramework<AudCtl> {public:explicit AudCtl();+ ~AudCtl() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/auddbg.cpp b/src/core/hle/service/audio/auddbg.cppindex b08c21a206..8fff3e4b4d 100644--- a/src/core/hle/service/audio/auddbg.cpp+++ b/src/core/hle/service/audio/auddbg.cpp@@ -17,4 +17,6 @@ AudDbg::AudDbg(const char* name) : ServiceFramework{name} {RegisterHandlers(functions);}+AudDbg::~AudDbg() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/auddbg.h b/src/core/hle/service/audio/auddbg.hindex a2f540b75a..6689f4759f 100644--- a/src/core/hle/service/audio/auddbg.h+++ b/src/core/hle/service/audio/auddbg.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudDbg final : public ServiceFramework<AudDbg> {public:explicit AudDbg(const char* name);+ ~AudDbg() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audin_a.cpp b/src/core/hle/service/audio/audin_a.cppindex a70d5bca4d..ddd12f35ed 100644--- a/src/core/hle/service/audio/audin_a.cpp+++ b/src/core/hle/service/audio/audin_a.cpp@@ -19,4 +19,6 @@ AudInA::AudInA() : ServiceFramework{"audin:a"} {RegisterHandlers(functions);}+AudInA::~AudInA() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audin_a.h b/src/core/hle/service/audio/audin_a.hindex e4c75510f0..e7623bc296 100644--- a/src/core/hle/service/audio/audin_a.h+++ b/src/core/hle/service/audio/audin_a.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudInA final : public ServiceFramework<AudInA> {public:explicit AudInA();+ ~AudInA() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cppindex cbc49e55eb..6570103123 100644--- a/src/core/hle/service/audio/audin_u.cpp+++ b/src/core/hle/service/audio/audin_u.cpp@@ -41,4 +41,6 @@ AudInU::AudInU() : ServiceFramework("audin:u") {RegisterHandlers(functions);}+AudInU::~AudInU() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audin_u.h b/src/core/hle/service/audio/audin_u.hindex 2e65efb5b1..0538b9560f 100644--- a/src/core/hle/service/audio/audin_u.h+++ b/src/core/hle/service/audio/audin_u.h@@ -15,7 +15,7 @@ namespace Service::Audio {class AudInU final : public ServiceFramework<AudInU> {public:explicit AudInU();- ~AudInU() = default;+ ~AudInU() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_a.cpp b/src/core/hle/service/audio/audout_a.cppindex bf8d40157b..85febbca37 100644--- a/src/core/hle/service/audio/audout_a.cpp+++ b/src/core/hle/service/audio/audout_a.cpp@@ -21,4 +21,6 @@ AudOutA::AudOutA() : ServiceFramework{"audout:a"} {RegisterHandlers(functions);}+AudOutA::~AudOutA() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_a.h b/src/core/hle/service/audio/audout_a.hindex 91a0691525..d65b66e8e9 100644--- a/src/core/hle/service/audio/audout_a.h+++ b/src/core/hle/service/audio/audout_a.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudOutA final : public ServiceFramework<AudOutA> {public:explicit AudOutA();+ ~AudOutA() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cppindex 5f370bbdfb..05100ca8fb 100644--- a/src/core/hle/service/audio/audout_u.cpp+++ b/src/core/hle/service/audio/audout_u.cpp@@ -218,4 +218,6 @@ AudOutU::AudOutU() : ServiceFramework("audout:u") {audio_core = std::make_unique<AudioCore::AudioOut>();}+AudOutU::~AudOutU() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.hindex fd491f65d7..aa52d3855e 100644--- a/src/core/hle/service/audio/audout_u.h+++ b/src/core/hle/service/audio/audout_u.h@@ -30,7 +30,7 @@ class IAudioOut;class AudOutU final : public ServiceFramework<AudOutU> {public:AudOutU();- ~AudOutU() = default;+ ~AudOutU() override;private:std::shared_ptr<IAudioOut> audio_out_interface;diff --git a/src/core/hle/service/audio/audrec_a.cpp b/src/core/hle/service/audio/audrec_a.cppindex 016eabf538..ce1bfb48d4 100644--- a/src/core/hle/service/audio/audrec_a.cpp+++ b/src/core/hle/service/audio/audrec_a.cpp@@ -17,4 +17,6 @@ AudRecA::AudRecA() : ServiceFramework{"audrec:a"} {RegisterHandlers(functions);}+AudRecA::~AudRecA() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audrec_a.h b/src/core/hle/service/audio/audrec_a.hindex 9685047f2f..384d24c696 100644--- a/src/core/hle/service/audio/audrec_a.h+++ b/src/core/hle/service/audio/audrec_a.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudRecA final : public ServiceFramework<AudRecA> {public:explicit AudRecA();+ ~AudRecA() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audrec_u.cpp b/src/core/hle/service/audio/audrec_u.cppindex 74909415c8..34974afa98 100644--- a/src/core/hle/service/audio/audrec_u.cpp+++ b/src/core/hle/service/audio/audrec_u.cpp@@ -36,4 +36,6 @@ AudRecU::AudRecU() : ServiceFramework("audrec:u") {RegisterHandlers(functions);}+AudRecU::~AudRecU() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audrec_u.h b/src/core/hle/service/audio/audrec_u.hindex 46daa33a41..ca3d638e89 100644--- a/src/core/hle/service/audio/audrec_u.h+++ b/src/core/hle/service/audio/audrec_u.h@@ -15,7 +15,7 @@ namespace Service::Audio {class AudRecU final : public ServiceFramework<AudRecU> {public:explicit AudRecU();- ~AudRecU() = default;+ ~AudRecU() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audren_a.cpp b/src/core/hle/service/audio/audren_a.cppindex 616ff3dc45..edb66d9857 100644--- a/src/core/hle/service/audio/audren_a.cpp+++ b/src/core/hle/service/audio/audren_a.cpp@@ -23,4 +23,6 @@ AudRenA::AudRenA() : ServiceFramework{"audren:a"} {RegisterHandlers(functions);}+AudRenA::~AudRenA() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audren_a.h b/src/core/hle/service/audio/audren_a.hindex 5ecf2e184b..81fef0ffe9 100644--- a/src/core/hle/service/audio/audren_a.h+++ b/src/core/hle/service/audio/audren_a.h@@ -11,6 +11,7 @@ namespace Service::Audio {class AudRenA final : public ServiceFramework<AudRenA> {public:explicit AudRenA();+ ~AudRenA() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cppindex 016db7c82c..3870bec650 100644--- a/src/core/hle/service/audio/audren_u.cpp+++ b/src/core/hle/service/audio/audren_u.cpp@@ -198,6 +198,8 @@ AudRenU::AudRenU() : ServiceFramework("audren:u") {RegisterHandlers(functions);}+AudRenU::~AudRenU() = default;+void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp{ctx};auto params = rp.PopRaw<AudioCore::AudioRendererParameter>();diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.hindex 8600ac6e4e..85a995a2f4 100644--- a/src/core/hle/service/audio/audren_u.h+++ b/src/core/hle/service/audio/audren_u.h@@ -16,7 +16,7 @@ namespace Service::Audio {class AudRenU final : public ServiceFramework<AudRenU> {public:explicit AudRenU();- ~AudRenU() = default;+ ~AudRenU() override;private:void OpenAudioRenderer(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cppindex 212c8d448d..c6864146dd 100644--- a/src/core/hle/service/audio/codecctl.cpp+++ b/src/core/hle/service/audio/codecctl.cpp@@ -28,4 +28,6 @@ CodecCtl::CodecCtl() : ServiceFramework("codecctl") {RegisterHandlers(functions);}+CodecCtl::~CodecCtl() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.hindex d9ac29b670..2fe75b6e2a 100644--- a/src/core/hle/service/audio/codecctl.h+++ b/src/core/hle/service/audio/codecctl.h@@ -15,7 +15,7 @@ namespace Service::Audio {class CodecCtl final : public ServiceFramework<CodecCtl> {public:explicit CodecCtl();- ~CodecCtl() = default;+ ~CodecCtl() override;};} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cppindex 371cd4997d..341bfda426 100644--- a/src/core/hle/service/audio/hwopus.cpp+++ b/src/core/hle/service/audio/hwopus.cpp@@ -151,4 +151,6 @@ HwOpus::HwOpus() : ServiceFramework("hwopus") {RegisterHandlers(functions);}+HwOpus::~HwOpus() = default;+} // namespace Service::Audiodiff --git a/src/core/hle/service/audio/hwopus.h b/src/core/hle/service/audio/hwopus.hindex 5258d59f33..602ede8ba9 100644--- a/src/core/hle/service/audio/hwopus.h+++ b/src/core/hle/service/audio/hwopus.h@@ -11,7 +11,7 @@ namespace Service::Audio {class HwOpus final : public ServiceFramework<HwOpus> {public:explicit HwOpus();- ~HwOpus() = default;+ ~HwOpus() override;private:void OpenOpusDecoder(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/bcat/bcat.cpp b/src/core/hle/service/bcat/bcat.cppindex 20ce692dcb..179aa49499 100644--- a/src/core/hle/service/bcat/bcat.cpp+++ b/src/core/hle/service/bcat/bcat.cpp@@ -13,4 +13,6 @@ BCAT::BCAT(std::shared_ptr<Module> module, const char* name)};RegisterHandlers(functions);}++BCAT::~BCAT() = default;} // namespace Service::BCATdiff --git a/src/core/hle/service/bcat/bcat.h b/src/core/hle/service/bcat/bcat.hindex 6632996a00..802bd689af 100644--- a/src/core/hle/service/bcat/bcat.h+++ b/src/core/hle/service/bcat/bcat.h@@ -11,6 +11,7 @@ namespace Service::BCAT {class BCAT final : public Module::Interface {public:explicit BCAT(std::shared_ptr<Module> module, const char* name);+ ~BCAT() override;};} // namespace Service::BCATdiff --git a/src/core/hle/service/bcat/module.cpp b/src/core/hle/service/bcat/module.cppindex 35e024c3d9..6e7b795fb9 100644--- a/src/core/hle/service/bcat/module.cpp+++ b/src/core/hle/service/bcat/module.cpp@@ -42,6 +42,8 @@ void Module::Interface::CreateBcatService(Kernel::HLERequestContext& ctx) {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+void InstallInterfaces(SM::ServiceManager& service_manager) {auto module = std::make_shared<Module>();std::make_shared<BCAT>(module, "bcat:a")->InstallAsService(service_manager);diff --git a/src/core/hle/service/bcat/module.h b/src/core/hle/service/bcat/module.hindex 62f6f5f9de..f0d63cab02 100644--- a/src/core/hle/service/bcat/module.h+++ b/src/core/hle/service/bcat/module.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void CreateBcatService(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cppindex 299b9474f0..b436ce4e61 100644--- a/src/core/hle/service/fatal/fatal.cpp+++ b/src/core/hle/service/fatal/fatal.cpp@@ -13,6 +13,8 @@ namespace Service::Fatal {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+void Module::Interface::ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp(ctx);u32 error_code = rp.Pop<u32>();diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.hindex ca607e2364..4d9a5be524 100644--- a/src/core/hle/service/fatal/fatal.h+++ b/src/core/hle/service/fatal/fatal.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx);void ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/fatal/fatal_p.cpp b/src/core/hle/service/fatal/fatal_p.cppindex a5254ac2f2..9e5f872ff5 100644--- a/src/core/hle/service/fatal/fatal_p.cpp+++ b/src/core/hle/service/fatal/fatal_p.cpp@@ -9,4 +9,6 @@ namespace Service::Fatal {Fatal_P::Fatal_P(std::shared_ptr<Module> module): Module::Interface(std::move(module), "fatal:p") {}+Fatal_P::~Fatal_P() = default;+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_p.h b/src/core/hle/service/fatal/fatal_p.hindex bfd8c8b74a..6e9c5979f9 100644--- a/src/core/hle/service/fatal/fatal_p.h+++ b/src/core/hle/service/fatal/fatal_p.h@@ -11,6 +11,7 @@ namespace Service::Fatal {class Fatal_P final : public Module::Interface {public:explicit Fatal_P(std::shared_ptr<Module> module);+ ~Fatal_P() override;};} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_u.cpp b/src/core/hle/service/fatal/fatal_u.cppindex f0631329e2..befc307cf9 100644--- a/src/core/hle/service/fatal/fatal_u.cpp+++ b/src/core/hle/service/fatal/fatal_u.cpp@@ -15,4 +15,6 @@ Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(mRegisterHandlers(functions);}+Fatal_U::~Fatal_U() = default;+} // namespace Service::Fataldiff --git a/src/core/hle/service/fatal/fatal_u.h b/src/core/hle/service/fatal/fatal_u.hindex 9b1a9e97a8..72cb6d0764 100644--- a/src/core/hle/service/fatal/fatal_u.h+++ b/src/core/hle/service/fatal/fatal_u.h@@ -11,6 +11,7 @@ namespace Service::Fatal {class Fatal_U final : public Module::Interface {public:explicit Fatal_U(std::shared_ptr<Module> module);+ ~Fatal_U() override;};} // namespace Service::Fataldiff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cppindex 04c9d750fd..5c49717242 100644--- a/src/core/hle/service/filesystem/filesystem.cpp+++ b/src/core/hle/service/filesystem/filesystem.cpp@@ -40,6 +40,8 @@ static FileSys::VirtualDir GetDirectoryRelativeWrapped(FileSys::VirtualDir base,VfsDirectoryServiceWrapper::VfsDirectoryServiceWrapper(FileSys::VirtualDir backing_): backing(std::move(backing_)) {}+VfsDirectoryServiceWrapper::~VfsDirectoryServiceWrapper() = default;+std::string VfsDirectoryServiceWrapper::GetName() const {return backing->GetName();}diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.hindex 793a7b06fc..aab65a2b8f 100644--- a/src/core/hle/service/filesystem/filesystem.h+++ b/src/core/hle/service/filesystem/filesystem.h@@ -64,6 +64,7 @@ void InstallInterfaces(SM::ServiceManager& service_manager, const FileSys::Virtuclass VfsDirectoryServiceWrapper {public:explicit VfsDirectoryServiceWrapper(FileSys::VirtualDir backing);+ ~VfsDirectoryServiceWrapper();/*** Get a descriptive name for the archive (e.g. "RomFS", "SaveData", etc.)diff --git a/src/core/hle/service/filesystem/fsp_ldr.cpp b/src/core/hle/service/filesystem/fsp_ldr.cppindex 0ab9c26060..fb487d5bc6 100644--- a/src/core/hle/service/filesystem/fsp_ldr.cpp+++ b/src/core/hle/service/filesystem/fsp_ldr.cpp@@ -19,4 +19,6 @@ FSP_LDR::FSP_LDR() : ServiceFramework{"fsp:ldr"} {RegisterHandlers(functions);}+FSP_LDR::~FSP_LDR() = default;+} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_ldr.h b/src/core/hle/service/filesystem/fsp_ldr.hindex fa8e11b4cf..8210b77291 100644--- a/src/core/hle/service/filesystem/fsp_ldr.h+++ b/src/core/hle/service/filesystem/fsp_ldr.h@@ -11,6 +11,7 @@ namespace Service::FileSystem {class FSP_LDR final : public ServiceFramework<FSP_LDR> {public:explicit FSP_LDR();+ ~FSP_LDR() override;};} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_pr.cpp b/src/core/hle/service/filesystem/fsp_pr.cppindex 32b0ae454b..3782016103 100644--- a/src/core/hle/service/filesystem/fsp_pr.cpp+++ b/src/core/hle/service/filesystem/fsp_pr.cpp@@ -20,4 +20,6 @@ FSP_PR::FSP_PR() : ServiceFramework{"fsp:pr"} {RegisterHandlers(functions);}+FSP_PR::~FSP_PR() = default;+} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_pr.h b/src/core/hle/service/filesystem/fsp_pr.hindex 62edcd08a6..556ae5ce9a 100644--- a/src/core/hle/service/filesystem/fsp_pr.h+++ b/src/core/hle/service/filesystem/fsp_pr.h@@ -11,6 +11,7 @@ namespace Service::FileSystem {class FSP_PR final : public ServiceFramework<FSP_PR> {public:explicit FSP_PR();+ ~FSP_PR() override;};} // namespace Service::FileSystemdiff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cppindex 3f8ff67e88..cabaf5a55d 100644--- a/src/core/hle/service/filesystem/fsp_srv.cpp+++ b/src/core/hle/service/filesystem/fsp_srv.cpp@@ -520,6 +520,8 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") {RegisterHandlers(functions);}+FSP_SRV::~FSP_SRV() = default;+void FSP_SRV::Initialize(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service_FS, "(STUBBED) called");diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.hindex 2b5c21abb0..4aa0358cb6 100644--- a/src/core/hle/service/filesystem/fsp_srv.h+++ b/src/core/hle/service/filesystem/fsp_srv.h@@ -16,7 +16,7 @@ namespace Service::FileSystem {class FSP_SRV final : public ServiceFramework<FSP_SRV> {public:explicit FSP_SRV();- ~FSP_SRV() = default;+ ~FSP_SRV() override;private:void Initialize(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cppindex f2b0e509a0..d9225d6244 100644--- a/src/core/hle/service/friend/friend.cpp+++ b/src/core/hle/service/friend/friend.cpp@@ -118,6 +118,8 @@ void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+void InstallInterfaces(SM::ServiceManager& service_manager) {auto module = std::make_shared<Module>();std::make_shared<Friend>(module, "friend:a")->InstallAsService(service_manager);diff --git a/src/core/hle/service/friend/friend.h b/src/core/hle/service/friend/friend.hindex c1b36518ab..e762840cb6 100644--- a/src/core/hle/service/friend/friend.h+++ b/src/core/hle/service/friend/friend.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void CreateFriendService(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/friend/interface.cpp b/src/core/hle/service/friend/interface.cppindex 27c6a09e22..5a6840af5b 100644--- a/src/core/hle/service/friend/interface.cpp+++ b/src/core/hle/service/friend/interface.cpp@@ -16,4 +16,6 @@ Friend::Friend(std::shared_ptr<Module> module, const char* name)RegisterHandlers(functions);}+Friend::~Friend() = default;+} // namespace Service::Frienddiff --git a/src/core/hle/service/friend/interface.h b/src/core/hle/service/friend/interface.hindex 89dae84710..1963def39f 100644--- a/src/core/hle/service/friend/interface.h+++ b/src/core/hle/service/friend/interface.h@@ -11,6 +11,7 @@ namespace Service::Friend {class Friend final : public Module::Interface {public:explicit Friend(std::shared_ptr<Module> module, const char* name);+ ~Friend() override;};} // namespace Service::Frienddiff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cppindex aaf311912e..e587ad0d8d 100644--- a/src/core/hle/service/hid/irs.cpp+++ b/src/core/hle/service/hid/irs.cpp@@ -33,6 +33,8 @@ IRS::IRS() : ServiceFramework{"irs"} {RegisterHandlers(functions);}+IRS::~IRS() = default;+IRS_SYS::IRS_SYS() : ServiceFramework{"irs:sys"} {// clang-format offstatic const FunctionInfo functions[] = {@@ -46,4 +48,6 @@ IRS_SYS::IRS_SYS() : ServiceFramework{"irs:sys"} {RegisterHandlers(functions);}+IRS_SYS::~IRS_SYS() = default;+} // namespace Service::HIDdiff --git a/src/core/hle/service/hid/irs.h b/src/core/hle/service/hid/irs.hindex a8be701c7a..6fb16b45dd 100644--- a/src/core/hle/service/hid/irs.h+++ b/src/core/hle/service/hid/irs.h@@ -11,11 +11,13 @@ namespace Service::HID {class IRS final : public ServiceFramework<IRS> {public:explicit IRS();+ ~IRS() override;};class IRS_SYS final : public ServiceFramework<IRS_SYS> {public:explicit IRS_SYS();+ ~IRS_SYS() override;};} // namespace Service::HIDdiff --git a/src/core/hle/service/hid/xcd.cpp b/src/core/hle/service/hid/xcd.cppindex 49f733f607..c8e9125f60 100644--- a/src/core/hle/service/hid/xcd.cpp+++ b/src/core/hle/service/hid/xcd.cpp@@ -34,4 +34,6 @@ XCD_SYS::XCD_SYS() : ServiceFramework{"xcd:sys"} {RegisterHandlers(functions);}+XCD_SYS::~XCD_SYS() = default;+} // namespace Service::HIDdiff --git a/src/core/hle/service/hid/xcd.h b/src/core/hle/service/hid/xcd.hindex 232a044df0..fd506d303b 100644--- a/src/core/hle/service/hid/xcd.h+++ b/src/core/hle/service/hid/xcd.h@@ -11,6 +11,7 @@ namespace Service::HID {class XCD_SYS final : public ServiceFramework<XCD_SYS> {public:explicit XCD_SYS();+ ~XCD_SYS() override;};} // namespace Service::HIDdiff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cppindex 4f7543af5e..f8d2127d91 100644--- a/src/core/hle/service/nfp/nfp.cpp+++ b/src/core/hle/service/nfp/nfp.cpp@@ -14,6 +14,8 @@ namespace Service::NFP {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+class IUser final : public ServiceFramework<IUser> {public:IUser() : ServiceFramework("IUser") {diff --git a/src/core/hle/service/nfp/nfp.h b/src/core/hle/service/nfp/nfp.hindex 0cd7be3d54..77df343c4a 100644--- a/src/core/hle/service/nfp/nfp.h+++ b/src/core/hle/service/nfp/nfp.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void CreateUserInterface(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cppindex b608fe693b..784a87c1b5 100644--- a/src/core/hle/service/nfp/nfp_user.cpp+++ b/src/core/hle/service/nfp/nfp_user.cpp@@ -14,4 +14,6 @@ NFP_User::NFP_User(std::shared_ptr<Module> module)RegisterHandlers(functions);}+NFP_User::~NFP_User() = default;+} // namespace Service::NFPdiff --git a/src/core/hle/service/nfp/nfp_user.h b/src/core/hle/service/nfp/nfp_user.hindex 7000431144..65d9aaf483 100644--- a/src/core/hle/service/nfp/nfp_user.h+++ b/src/core/hle/service/nfp/nfp_user.h@@ -11,6 +11,7 @@ namespace Service::NFP {class NFP_User final : public Module::Interface {public:explicit NFP_User(std::shared_ptr<Module> module);+ ~NFP_User() override;};} // namespace Service::NFPdiff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cppindex 77f635ae29..ebefd25aa5 100644--- a/src/core/hle/service/ns/pl_u.cpp+++ b/src/core/hle/service/ns/pl_u.cpp@@ -247,6 +247,8 @@ PL_U::PL_U() : ServiceFramework("pl:u") {}}+PL_U::~PL_U() = default;+void PL_U::RequestLoad(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp{ctx};const u32 shared_font_type{rp.Pop<u32>()};diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.hindex fcc2acab75..296c3db058 100644--- a/src/core/hle/service/ns/pl_u.h+++ b/src/core/hle/service/ns/pl_u.h@@ -13,7 +13,7 @@ namespace Service::NS {class PL_U final : public ServiceFramework<PL_U> {public:PL_U();- ~PL_U() = default;+ ~PL_U() override;private:void RequestLoad(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cppindex 0b37098e16..92acc57b1d 100644--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp@@ -13,6 +13,9 @@namespace Service::Nvidia::Devices {+nvdisp_disp0::nvdisp_disp0(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}+nvdisp_disp0 ::~nvdisp_disp0() = default;+u32 nvdisp_disp0::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {UNIMPLEMENTED_MSG("Unimplemented ioctl");return 0;diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.hindex 6f0697b586..a45086e451 100644--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h@@ -17,8 +17,8 @@ class nvmap;class nvdisp_disp0 final : public nvdevice {public:- explicit nvdisp_disp0(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}- ~nvdisp_disp0() = default;+ explicit nvdisp_disp0(std::shared_ptr<nvmap> nvmap_dev);+ ~nvdisp_disp0();u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cppindex 75487c4e80..25d5a93fa4 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp@@ -3,6 +3,8 @@// Refer to the license.txt file included.#include <cstring>+#include <utility>+#include "common/assert.h"#include "common/logging/log.h"#include "core/core.h"@@ -14,6 +16,9 @@namespace Service::Nvidia::Devices {+nvhost_as_gpu::nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}+nvhost_as_gpu::~nvhost_as_gpu() = default;+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{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.hindex 9f8999d9ce..eb14b1da8e 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h@@ -6,7 +6,6 @@#include <memory>#include <unordered_map>-#include <utility>#include <vector>#include "common/common_types.h"#include "common/swap.h"@@ -18,8 +17,8 @@ class nvmap;class nvhost_as_gpu final : public nvdevice {public:- explicit nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}- ~nvhost_as_gpu() override = default;+ explicit nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev);+ ~nvhost_as_gpu() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cppindex 5685eb2be0..b39fb9ef90 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp@@ -11,6 +11,9 @@namespace Service::Nvidia::Devices {+nvhost_ctrl::nvhost_ctrl() = default;+nvhost_ctrl::~nvhost_ctrl() = default;+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{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.hindex 6b496e9fe1..6d0de2212a 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h@@ -13,8 +13,8 @@ namespace Service::Nvidia::Devices {class nvhost_ctrl final : public nvdevice {public:- nvhost_ctrl() = default;- ~nvhost_ctrl() override = default;+ nvhost_ctrl();+ ~nvhost_ctrl() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cppindex ae421247d6..7a88ae0299 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp@@ -9,6 +9,9 @@namespace Service::Nvidia::Devices {+nvhost_ctrl_gpu::nvhost_ctrl_gpu() = default;+nvhost_ctrl_gpu::~nvhost_ctrl_gpu() = default;+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{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.hindex f09113e678..3bbf028ad5 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h@@ -13,8 +13,8 @@ namespace Service::Nvidia::Devices {class nvhost_ctrl_gpu final : public nvdevice {public:- nvhost_ctrl_gpu() = default;- ~nvhost_ctrl_gpu() override = default;+ nvhost_ctrl_gpu();+ ~nvhost_ctrl_gpu() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cppindex 8e0f9a9e57..874d5e1c3e 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp@@ -14,6 +14,9 @@namespace Service::Nvidia::Devices {+nvhost_gpu::nvhost_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}+nvhost_gpu::~nvhost_gpu() = default;+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{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_gpu.hindex baaefd79a9..62beb5c0c0 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h@@ -20,8 +20,8 @@ constexpr u32 NVGPU_IOCTL_CHANNEL_KICKOFF_PB(0x1b);class nvhost_gpu final : public nvdevice {public:- explicit nvhost_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {}- ~nvhost_gpu() override = default;+ explicit nvhost_gpu(std::shared_ptr<nvmap> nvmap_dev);+ ~nvhost_gpu() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cppindex 364619e672..46dbbc37c5 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp@@ -10,6 +10,9 @@namespace Service::Nvidia::Devices {+nvhost_nvdec::nvhost_nvdec() = default;+nvhost_nvdec::~nvhost_nvdec() = default;+u32 nvhost_nvdec::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {LOG_DEBUG(Service_NVDRV, "called, command=0x{:08X}, input_size=0x{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.hindex 6ad74421b4..0e7b284f87 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h@@ -13,8 +13,8 @@ namespace Service::Nvidia::Devices {class nvhost_nvdec final : public nvdevice {public:- nvhost_nvdec() = default;- ~nvhost_nvdec() override = default;+ nvhost_nvdec();+ ~nvhost_nvdec() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cppindex 51f01077b4..c67f934f6f 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp@@ -10,6 +10,9 @@namespace Service::Nvidia::Devices {+nvhost_nvjpg::nvhost_nvjpg() = default;+nvhost_nvjpg::~nvhost_nvjpg() = default;+u32 nvhost_nvjpg::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {LOG_DEBUG(Service_NVDRV, "called, command=0x{:08X}, input_size=0x{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.hindex 2b0eb43ee4..89fd5e95ed 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h@@ -13,8 +13,8 @@ namespace Service::Nvidia::Devices {class nvhost_nvjpg final : public nvdevice {public:- nvhost_nvjpg() = default;- ~nvhost_nvjpg() override = default;+ nvhost_nvjpg();+ ~nvhost_nvjpg() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cppindex fcb488d50f..727b9fee46 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp@@ -10,6 +10,9 @@namespace Service::Nvidia::Devices {+nvhost_vic::nvhost_vic() = default;+nvhost_vic::~nvhost_vic() = default;+u32 nvhost_vic::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {LOG_DEBUG(Service_NVDRV, "called, command=0x{:08X}, input_size=0x{:X}, output_size=0x{:X}",command.raw, input.size(), output.size());diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.h b/src/core/hle/service/nvdrv/devices/nvhost_vic.hindex c7d681e52f..fc24c3f9c0 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.h+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.h@@ -13,8 +13,8 @@ namespace Service::Nvidia::Devices {class nvhost_vic final : public nvdevice {public:- nvhost_vic() = default;- ~nvhost_vic() override = default;+ nvhost_vic();+ ~nvhost_vic() override;u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cppindex e9305bfb3d..a2287cc1b2 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp@@ -11,6 +11,9 @@namespace Service::Nvidia::Devices {+nvmap::nvmap() = default;+nvmap::~nvmap() = default;+VAddr nvmap::GetObjectAddress(u32 handle) const {auto object = GetObject(handle);ASSERT(object);diff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.hindex f2eec64098..396230c191 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.h+++ b/src/core/hle/service/nvdrv/devices/nvmap.h@@ -16,8 +16,8 @@ namespace Service::Nvidia::Devices {class nvmap final : public nvdevice {public:- nvmap() = default;- ~nvmap() override = default;+ nvmap();+ ~nvmap() override;/// Returns the allocated address of an nvmap object given its handle.VAddr GetObjectAddress(u32 handle) const;diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cppindex 634ab9196d..ac38593539 100644--- a/src/core/hle/service/nvdrv/interface.cpp+++ b/src/core/hle/service/nvdrv/interface.cpp@@ -112,4 +112,6 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name)query_event = Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "NVDRV::query_event");}+NVDRV::~NVDRV() = default;+} // namespace Service::Nvidiadiff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.hindex 1c3529bb66..d340893c24 100644--- a/src/core/hle/service/nvdrv/interface.h+++ b/src/core/hle/service/nvdrv/interface.h@@ -14,7 +14,7 @@ namespace Service::Nvidia {class NVDRV final : public ServiceFramework<NVDRV> {public:NVDRV(std::shared_ptr<Module> nvdrv, const char* name);- ~NVDRV() = default;+ ~NVDRV();private:void Open(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cppindex 2de39822fb..6e4b8f2c66 100644--- a/src/core/hle/service/nvdrv/nvdrv.cpp+++ b/src/core/hle/service/nvdrv/nvdrv.cpp@@ -45,6 +45,8 @@ Module::Module() {devices["/dev/nvhost-vic"] = std::make_shared<Devices::nvhost_vic>();}+Module::~Module() = default;+u32 Module::Open(const std::string& device_name) {ASSERT_MSG(devices.find(device_name) != devices.end(), "Trying to open unknown device {}",device_name);diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.hindex 99eb1128aa..53564f6964 100644--- a/src/core/hle/service/nvdrv/nvdrv.h+++ b/src/core/hle/service/nvdrv/nvdrv.h@@ -30,7 +30,7 @@ static_assert(sizeof(IoctlFence) == 8, "IoctlFence has wrong size");class Module final {public:Module();- ~Module() = default;+ ~Module();/// Returns a pointer to one of the available devices, identified by its name.template <typename T>diff --git a/src/core/hle/service/nvdrv/nvmemp.cpp b/src/core/hle/service/nvdrv/nvmemp.cppindex 0e8e21badb..b7b8b7a1b6 100644--- a/src/core/hle/service/nvdrv/nvmemp.cpp+++ b/src/core/hle/service/nvdrv/nvmemp.cpp@@ -16,6 +16,8 @@ NVMEMP::NVMEMP() : ServiceFramework("nvmemp") {RegisterHandlers(functions);}+NVMEMP::~NVMEMP() = default;+void NVMEMP::Cmd0(Kernel::HLERequestContext& ctx) {UNIMPLEMENTED();}diff --git a/src/core/hle/service/nvdrv/nvmemp.h b/src/core/hle/service/nvdrv/nvmemp.hindex dfdcabf4a1..5a4dfc1f9d 100644--- a/src/core/hle/service/nvdrv/nvmemp.h+++ b/src/core/hle/service/nvdrv/nvmemp.h@@ -11,7 +11,7 @@ namespace Service::Nvidia {class NVMEMP final : public ServiceFramework<NVMEMP> {public:NVMEMP();- ~NVMEMP() = default;+ ~NVMEMP();private:void Cmd0(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cppindex 8d89622769..34f98fe5a5 100644--- a/src/core/hle/service/nvflinger/buffer_queue.cpp+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp@@ -18,6 +18,8 @@ BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) {Kernel::Event::Create(kernel, Kernel::ResetType::Sticky, "BufferQueue NativeHandle");}+BufferQueue::~BufferQueue() = default;+void BufferQueue::SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer) {Buffer buffer{};buffer.slot = slot;diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.hindex db2e17c0c6..17c81928ab 100644--- a/src/core/hle/service/nvflinger/buffer_queue.h+++ b/src/core/hle/service/nvflinger/buffer_queue.h@@ -46,7 +46,7 @@ public:};BufferQueue(u32 id, u64 layer_id);- ~BufferQueue() = default;+ ~BufferQueue();enum class BufferTransformFlags : u32 {/// No transform flags are setdiff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cppindex 06040da6f9..7455ddd196 100644--- a/src/core/hle/service/nvflinger/nvflinger.cpp+++ b/src/core/hle/service/nvflinger/nvflinger.cpp@@ -160,10 +160,13 @@ void NVFlinger::Compose() {}Layer::Layer(u64 id, std::shared_ptr<BufferQueue> queue) : id(id), buffer_queue(std::move(queue)) {}+Layer::~Layer() = default;Display::Display(u64 id, std::string name) : id(id), name(std::move(name)) {auto& kernel = Core::System::GetInstance().Kernel();vsync_event = Kernel::Event::Create(kernel, Kernel::ResetType::Pulse, "Display VSync Event");}+Display::~Display() = default;+} // namespace Service::NVFlingerdiff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.hindex f7112949fa..3dc69e69b6 100644--- a/src/core/hle/service/nvflinger/nvflinger.h+++ b/src/core/hle/service/nvflinger/nvflinger.h@@ -26,7 +26,7 @@ class BufferQueue;struct Layer {Layer(u64 id, std::shared_ptr<BufferQueue> queue);- ~Layer() = default;+ ~Layer();u64 id;std::shared_ptr<BufferQueue> buffer_queue;@@ -34,7 +34,7 @@ struct Layer {struct Display {Display(u64 id, std::string name);- ~Display() = default;+ ~Display();u64 id;std::string name;diff --git a/src/core/hle/service/pctl/module.cpp b/src/core/hle/service/pctl/module.cppindex 6cc3b19927..4fd185f69a 100644--- a/src/core/hle/service/pctl/module.cpp+++ b/src/core/hle/service/pctl/module.cpp@@ -142,6 +142,8 @@ void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContextModule::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+void InstallInterfaces(SM::ServiceManager& service_manager) {auto module = std::make_shared<Module>();std::make_shared<PCTL>(module, "pctl")->InstallAsService(service_manager);diff --git a/src/core/hle/service/pctl/module.h b/src/core/hle/service/pctl/module.hindex e7d492760a..3e449110da 100644--- a/src/core/hle/service/pctl/module.h+++ b/src/core/hle/service/pctl/module.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void CreateService(Kernel::HLERequestContext& ctx);void CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cppindex de2741d66a..af9d1433a5 100644--- a/src/core/hle/service/pctl/pctl.cpp+++ b/src/core/hle/service/pctl/pctl.cpp@@ -14,4 +14,6 @@ PCTL::PCTL(std::shared_ptr<Module> module, const char* name)};RegisterHandlers(functions);}++PCTL::~PCTL() = default;} // namespace Service::PCTLdiff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.hindex 8ddf691287..c33ea80b66 100644--- a/src/core/hle/service/pctl/pctl.h+++ b/src/core/hle/service/pctl/pctl.h@@ -11,6 +11,7 @@ namespace Service::PCTL {class PCTL final : public Module::Interface {public:explicit PCTL(std::shared_ptr<Module> module, const char* name);+ ~PCTL() override;};} // namespace Service::PCTLdiff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cppindex 92b0640e80..59eb201557 100644--- a/src/core/hle/service/set/set.cpp+++ b/src/core/hle/service/set/set.cpp@@ -112,4 +112,6 @@ SET::SET() : ServiceFramework("set") {RegisterHandlers(functions);}+SET::~SET() = default;+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.hindex 669e740b73..5f02143597 100644--- a/src/core/hle/service/set/set.h+++ b/src/core/hle/service/set/set.h@@ -33,7 +33,7 @@ LanguageCode GetLanguageCodeFromIndex(size_t idx);class SET final : public ServiceFramework<SET> {public:explicit SET();- ~SET() = default;+ ~SET() override;private:void GetLanguageCode(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/set/set_cal.cpp b/src/core/hle/service/set/set_cal.cppindex 7066ef725b..5af356d103 100644--- a/src/core/hle/service/set/set_cal.cpp+++ b/src/core/hle/service/set/set_cal.cpp@@ -44,4 +44,6 @@ SET_CAL::SET_CAL() : ServiceFramework("set:cal") {RegisterHandlers(functions);}+SET_CAL::~SET_CAL() = default;+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_cal.h b/src/core/hle/service/set/set_cal.hindex bb50336aa0..583036eacf 100644--- a/src/core/hle/service/set/set_cal.h+++ b/src/core/hle/service/set/set_cal.h@@ -11,7 +11,7 @@ namespace Service::Set {class SET_CAL final : public ServiceFramework<SET_CAL> {public:explicit SET_CAL();- ~SET_CAL() = default;+ ~SET_CAL();};} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_fd.cpp b/src/core/hle/service/set/set_fd.cppindex c9f938716b..cac6af86dc 100644--- a/src/core/hle/service/set/set_fd.cpp+++ b/src/core/hle/service/set/set_fd.cpp@@ -20,4 +20,6 @@ SET_FD::SET_FD() : ServiceFramework("set:fd") {RegisterHandlers(functions);}+SET_FD::~SET_FD() = default;+} // namespace Service::Setdiff --git a/src/core/hle/service/set/set_fd.h b/src/core/hle/service/set/set_fd.hindex dbd850bc7e..216e65f1f3 100644--- a/src/core/hle/service/set/set_fd.h+++ b/src/core/hle/service/set/set_fd.h@@ -11,7 +11,7 @@ namespace Service::Set {class SET_FD final : public ServiceFramework<SET_FD> {public:explicit SET_FD();- ~SET_FD() = default;+ ~SET_FD() override;};} // namespace Service::Setdiff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cppindex 3211a83469..4342f3b2de 100644--- a/src/core/hle/service/sockets/bsd.cpp+++ b/src/core/hle/service/sockets/bsd.cpp@@ -109,6 +109,8 @@ BSD::BSD(const char* name) : ServiceFramework(name) {RegisterHandlers(functions);}+BSD::~BSD() = default;+BSDCFG::BSDCFG() : ServiceFramework{"bsdcfg"} {// clang-format offstatic const FunctionInfo functions[] = {@@ -131,4 +133,6 @@ BSDCFG::BSDCFG() : ServiceFramework{"bsdcfg"} {RegisterHandlers(functions);}+BSDCFG::~BSDCFG() = default;+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.hindex c1da59b245..0fe0e65c6c 100644--- a/src/core/hle/service/sockets/bsd.h+++ b/src/core/hle/service/sockets/bsd.h@@ -12,7 +12,7 @@ namespace Service::Sockets {class BSD final : public ServiceFramework<BSD> {public:explicit BSD(const char* name);- ~BSD() = default;+ ~BSD() override;private:void RegisterClient(Kernel::HLERequestContext& ctx);@@ -29,6 +29,7 @@ private:class BSDCFG final : public ServiceFramework<BSDCFG> {public:explicit BSDCFG();+ ~BSDCFG() override;};} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/ethc.cpp b/src/core/hle/service/sockets/ethc.cppindex d53c25eec3..abbeb4c50b 100644--- a/src/core/hle/service/sockets/ethc.cpp+++ b/src/core/hle/service/sockets/ethc.cpp@@ -21,6 +21,8 @@ ETHC_C::ETHC_C() : ServiceFramework{"ethc:c"} {RegisterHandlers(functions);}+ETHC_C::~ETHC_C() = default;+ETHC_I::ETHC_I() : ServiceFramework{"ethc:i"} {// clang-format offstatic const FunctionInfo functions[] = {@@ -35,4 +37,6 @@ ETHC_I::ETHC_I() : ServiceFramework{"ethc:i"} {RegisterHandlers(functions);}+ETHC_I::~ETHC_I() = default;+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/ethc.h b/src/core/hle/service/sockets/ethc.hindex 9a3c88100b..da2c7f7417 100644--- a/src/core/hle/service/sockets/ethc.h+++ b/src/core/hle/service/sockets/ethc.h@@ -11,11 +11,13 @@ namespace Service::Sockets {class ETHC_C final : public ServiceFramework<ETHC_C> {public:explicit ETHC_C();+ ~ETHC_C() override;};class ETHC_I final : public ServiceFramework<ETHC_I> {public:explicit ETHC_I();+ ~ETHC_I() override;};} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cppindex 8682dc2e01..e6d73065e4 100644--- a/src/core/hle/service/sockets/nsd.cpp+++ b/src/core/hle/service/sockets/nsd.cpp@@ -29,4 +29,6 @@ NSD::NSD(const char* name) : ServiceFramework(name) {RegisterHandlers(functions);}+NSD::~NSD() = default;+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/nsd.h b/src/core/hle/service/sockets/nsd.hindex 3b7edfc436..d842e3232c 100644--- a/src/core/hle/service/sockets/nsd.h+++ b/src/core/hle/service/sockets/nsd.h@@ -12,7 +12,7 @@ namespace Service::Sockets {class NSD final : public ServiceFramework<NSD> {public:explicit NSD(const char* name);- ~NSD() = default;+ ~NSD() override;};} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cppindex d235c4cfd0..13ab1d31ef 100644--- a/src/core/hle/service/sockets/sfdnsres.cpp+++ b/src/core/hle/service/sockets/sfdnsres.cpp@@ -34,4 +34,6 @@ SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {RegisterHandlers(functions);}+SFDNSRES::~SFDNSRES() = default;+} // namespace Service::Socketsdiff --git a/src/core/hle/service/sockets/sfdnsres.h b/src/core/hle/service/sockets/sfdnsres.hindex 62c7e35bf4..eda432903f 100644--- a/src/core/hle/service/sockets/sfdnsres.h+++ b/src/core/hle/service/sockets/sfdnsres.h@@ -12,7 +12,7 @@ namespace Service::Sockets {class SFDNSRES final : public ServiceFramework<SFDNSRES> {public:explicit SFDNSRES();- ~SFDNSRES() = default;+ ~SFDNSRES() override;private:void GetAddrInfo(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/spl/csrng.cpp b/src/core/hle/service/spl/csrng.cppindex b9e6b799d2..6749287986 100644--- a/src/core/hle/service/spl/csrng.cpp+++ b/src/core/hle/service/spl/csrng.cpp@@ -13,4 +13,6 @@ CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(modulRegisterHandlers(functions);}+CSRNG::~CSRNG() = default;+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/csrng.h b/src/core/hle/service/spl/csrng.hindex 3f849b5a72..764d5ceb00 100644--- a/src/core/hle/service/spl/csrng.h+++ b/src/core/hle/service/spl/csrng.h@@ -11,6 +11,7 @@ namespace Service::SPL {class CSRNG final : public Module::Interface {public:explicit CSRNG(std::shared_ptr<Module> module);+ ~CSRNG() override;};} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cppindex 3f5a342a7b..0d8441fb1f 100644--- a/src/core/hle/service/spl/module.cpp+++ b/src/core/hle/service/spl/module.cpp@@ -16,6 +16,8 @@ namespace Service::SPL {Module::Interface::Interface(std::shared_ptr<Module> module, const char* name): ServiceFramework(name), module(std::move(module)) {}+Module::Interface::~Interface() = default;+void Module::Interface::GetRandomBytes(Kernel::HLERequestContext& ctx) {IPC::RequestParser rp{ctx};diff --git a/src/core/hle/service/spl/module.h b/src/core/hle/service/spl/module.hindex f24d998e81..48fda6099e 100644--- a/src/core/hle/service/spl/module.h+++ b/src/core/hle/service/spl/module.h@@ -13,6 +13,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> module, const char* name);+ ~Interface() override;void GetRandomBytes(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/spl/spl.cpp b/src/core/hle/service/spl/spl.cppindex bb1e033429..70cb41905d 100644--- a/src/core/hle/service/spl/spl.cpp+++ b/src/core/hle/service/spl/spl.cpp@@ -42,4 +42,6 @@ SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module),RegisterHandlers(functions);}+SPL::~SPL() = default;+} // namespace Service::SPLdiff --git a/src/core/hle/service/spl/spl.h b/src/core/hle/service/spl/spl.hindex 69c4c1747e..3637d16233 100644--- a/src/core/hle/service/spl/spl.h+++ b/src/core/hle/service/spl/spl.h@@ -11,6 +11,7 @@ namespace Service::SPL {class SPL final : public Module::Interface {public:explicit SPL(std::shared_ptr<Module> module);+ ~SPL() override;};} // namespace Service::SPLdiff --git a/src/core/hle/service/time/interface.cpp b/src/core/hle/service/time/interface.cppindex 048d5b0777..18a5d71d57 100644--- a/src/core/hle/service/time/interface.cpp+++ b/src/core/hle/service/time/interface.cpp@@ -29,4 +29,6 @@ Time::Time(std::shared_ptr<Module> time, const char* name)RegisterHandlers(functions);}+Time::~Time() = default;+} // namespace Service::Timediff --git a/src/core/hle/service/time/interface.h b/src/core/hle/service/time/interface.hindex 183a53db13..cd6b44dec6 100644--- a/src/core/hle/service/time/interface.h+++ b/src/core/hle/service/time/interface.h@@ -11,6 +11,7 @@ namespace Service::Time {class Time final : public Module::Interface {public:explicit Time(std::shared_ptr<Module> time, const char* name);+ ~Time() override;};} // namespace Service::Timediff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cppindex 2172c681b2..28fd8debcd 100644--- a/src/core/hle/service/time/time.cpp+++ b/src/core/hle/service/time/time.cpp@@ -210,6 +210,8 @@ void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& cModule::Interface::Interface(std::shared_ptr<Module> time, const char* name): ServiceFramework(name), time(std::move(time)) {}+Module::Interface::~Interface() = default;+void InstallInterfaces(SM::ServiceManager& service_manager) {auto time = std::make_shared<Module>();std::make_shared<Time>(time, "time:a")->InstallAsService(service_manager);diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.hindex 8dde28a945..5659ecad38 100644--- a/src/core/hle/service/time/time.h+++ b/src/core/hle/service/time/time.h@@ -58,6 +58,7 @@ public:class Interface : public ServiceFramework<Interface> {public:explicit Interface(std::shared_ptr<Module> time, const char* name);+ ~Interface() override;void GetStandardUserSystemClock(Kernel::HLERequestContext& ctx);void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cppindex 993f1e65a2..85244ac3b3 100644--- a/src/core/hle/service/vi/vi.cpp+++ b/src/core/hle/service/vi/vi.cpp@@ -984,6 +984,8 @@ Module::Interface::Interface(std::shared_ptr<Module> module, const char* name,std::shared_ptr<NVFlinger::NVFlinger> nv_flinger): ServiceFramework(name), module(std::move(module)), nv_flinger(std::move(nv_flinger)) {}+Module::Interface::~Interface() = default;+void Module::Interface::GetDisplayService(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service_VI, "(STUBBED) called");diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.hindex 92f5b60592..c2dc836057 100644--- a/src/core/hle/service/vi/vi.h+++ b/src/core/hle/service/vi/vi.h@@ -26,6 +26,7 @@ public:public:explicit Interface(std::shared_ptr<Module> module, const char* name,std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);+ ~Interface() override;void GetDisplayService(Kernel::HLERequestContext& ctx);diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cppindex d47da565b8..207c06b16e 100644--- a/src/core/hle/service/vi/vi_m.cpp+++ b/src/core/hle/service/vi/vi_m.cpp@@ -15,4 +15,6 @@ VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>RegisterHandlers(functions);}+VI_M::~VI_M() = default;+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_m.h b/src/core/hle/service/vi/vi_m.hindex 6abb9b3a3b..487d58d509 100644--- a/src/core/hle/service/vi/vi_m.h+++ b/src/core/hle/service/vi/vi_m.h@@ -11,6 +11,7 @@ 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);+ ~VI_M() override;};} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cppindex 8f82e797f8..920e6a1f69 100644--- a/src/core/hle/service/vi/vi_s.cpp+++ b/src/core/hle/service/vi/vi_s.cpp@@ -15,4 +15,6 @@ VI_S::VI_S(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>RegisterHandlers(functions);}+VI_S::~VI_S() = default;+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_s.h b/src/core/hle/service/vi/vi_s.hindex 8f16f804f8..bbc31148f4 100644--- a/src/core/hle/service/vi/vi_s.h+++ b/src/core/hle/service/vi/vi_s.h@@ -11,6 +11,7 @@ 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);+ ~VI_S() override;};} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cppindex b84aed1d5d..d81e410d6d 100644--- a/src/core/hle/service/vi/vi_u.cpp+++ b/src/core/hle/service/vi/vi_u.cpp@@ -14,4 +14,6 @@ VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>RegisterHandlers(functions);}+VI_U::~VI_U() = default;+} // namespace Service::VIdiff --git a/src/core/hle/service/vi/vi_u.h b/src/core/hle/service/vi/vi_u.hindex e9b4f76b2c..b92f28c92a 100644--- a/src/core/hle/service/vi/vi_u.h+++ b/src/core/hle/service/vi/vi_u.h@@ -11,6 +11,7 @@ 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);+ ~VI_U() override;};} // namespace Service::VI