diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 20e41038b0..3c7172d68b 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -61,6 +61,9 @@ set(SRCS hle/service/time/time_s.cpp hle/service/vi/vi.cpp hle/service/vi/vi_m.cpp + hle/service/bsd/bsd.cpp + hle/service/bsd/bsd_u.cpp + hle/service/sfdnsres/sfdnsres.cpp hle/shared_page.cpp hw/hw.cpp hw/lcd.cpp diff --git a/src/core/hle/service/bsd/bsd.cpp b/src/core/hle/service/bsd/bsd.cpp new file mode 100644 index 0000000000..fc6451bdac --- /dev/null +++ b/src/core/hle/service/bsd/bsd.cpp @@ -0,0 +1,16 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/bsd/bsd.h" +#include "core/hle/service/bsd/bsd_u.h" + +namespace Service { +namespace BSD { + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared()->InstallAsService(service_manager); +} + +} // namespace BSD +} // namespace Service diff --git a/src/core/hle/service/bsd/bsd.h b/src/core/hle/service/bsd/bsd.h new file mode 100644 index 0000000000..93adc29347 --- /dev/null +++ b/src/core/hle/service/bsd/bsd.h @@ -0,0 +1,16 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service { +namespace BSD { + +/// Registers all BSD services with the specified service manager. +void InstallInterfaces(SM::ServiceManager& service_manager); + +} // namespace BSD +} // namespace Service diff --git a/src/core/hle/service/bsd/bsd_u.cpp b/src/core/hle/service/bsd/bsd_u.cpp new file mode 100644 index 0000000000..7d106fdfc2 --- /dev/null +++ b/src/core/hle/service/bsd/bsd_u.cpp @@ -0,0 +1,17 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/bsd/bsd_u.h" + +namespace Service { +namespace BSD { + +BSD_U::BSD_U() : ServiceFramework("bsd:u") { + /*static const FunctionInfo functions[] = { + }; + RegisterHandlers(functions);*/ +} + +} // namespace BSD +} // namespace Service \ No newline at end of file diff --git a/src/core/hle/service/bsd/bsd_u.h b/src/core/hle/service/bsd/bsd_u.h new file mode 100644 index 0000000000..c2de370c3e --- /dev/null +++ b/src/core/hle/service/bsd/bsd_u.h @@ -0,0 +1,22 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/kernel/hle_ipc.h" +#include "core/hle/service/service.h" + +namespace Service { +namespace BSD { + +class BSD_U final : public ServiceFramework { +public: + BSD_U(); + ~BSD_U() = default; + +private: +}; + +} // namespace BSD +} // namespace Service diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index fe76b381c4..7219147bec 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -28,6 +28,8 @@ #include "core/hle/service/sm/sm.h" #include "core/hle/service/time/time.h" #include "core/hle/service/vi/vi.h" +#include "core/hle/service/bsd/bsd.h" +#include "core/hle/service/sfdnsres/sfdnsres.h" using Kernel::ClientPort; using Kernel::ServerPort; @@ -176,6 +178,8 @@ void Init() { PCTL::InstallInterfaces(*SM::g_service_manager); Time::InstallInterfaces(*SM::g_service_manager); VI::InstallInterfaces(*SM::g_service_manager); + BSD::InstallInterfaces(*SM::g_service_manager); + Sfdnsres::InstallInterfaces(*SM::g_service_manager); LOG_DEBUG(Service, "initialized OK"); } diff --git a/src/core/hle/service/sfdnsres/sfdnsres.cpp b/src/core/hle/service/sfdnsres/sfdnsres.cpp new file mode 100644 index 0000000000..1ec1bff761 --- /dev/null +++ b/src/core/hle/service/sfdnsres/sfdnsres.cpp @@ -0,0 +1,21 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/sfdnsres/sfdnsres.h" + +namespace Service { +namespace Sfdnsres { + +Sfdnsres::Sfdnsres() : ServiceFramework("sfdnsres") { + /*static const FunctionInfo functions[] = { + }; + RegisterHandlers(functions);*/ +} + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared()->InstallAsService(service_manager); +} + +} // namespace Sfdnsres +} // namespace Service \ No newline at end of file diff --git a/src/core/hle/service/sfdnsres/sfdnsres.h b/src/core/hle/service/sfdnsres/sfdnsres.h new file mode 100644 index 0000000000..1c63a24a6b --- /dev/null +++ b/src/core/hle/service/sfdnsres/sfdnsres.h @@ -0,0 +1,24 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/kernel/hle_ipc.h" +#include "core/hle/service/service.h" + +namespace Service { +namespace Sfdnsres { + +class Sfdnsres final : public ServiceFramework { +public: + Sfdnsres(); + ~Sfdnsres() = default; + +private: +}; + +void InstallInterfaces(SM::ServiceManager& service_manager); + +} // namespace Sfdnsres +} // namespace Service \ No newline at end of file