bsd: start stubbing bsd:u and sfdnsres
This commit is contained in:
@@ -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
|
||||
|
||||
16
src/core/hle/service/bsd/bsd.cpp
Normal file
16
src/core/hle/service/bsd/bsd.cpp
Normal file
@@ -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<BSD_U>()->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
} // namespace BSD
|
||||
} // namespace Service
|
||||
16
src/core/hle/service/bsd/bsd.h
Normal file
16
src/core/hle/service/bsd/bsd.h
Normal file
@@ -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
|
||||
17
src/core/hle/service/bsd/bsd_u.cpp
Normal file
17
src/core/hle/service/bsd/bsd_u.cpp
Normal file
@@ -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
|
||||
22
src/core/hle/service/bsd/bsd_u.h
Normal file
22
src/core/hle/service/bsd/bsd_u.h
Normal file
@@ -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<BSD_U> {
|
||||
public:
|
||||
BSD_U();
|
||||
~BSD_U() = default;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
} // namespace BSD
|
||||
} // namespace Service
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
21
src/core/hle/service/sfdnsres/sfdnsres.cpp
Normal file
21
src/core/hle/service/sfdnsres/sfdnsres.cpp
Normal file
@@ -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<Sfdnsres>()->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
} // namespace Sfdnsres
|
||||
} // namespace Service
|
||||
24
src/core/hle/service/sfdnsres/sfdnsres.h
Normal file
24
src/core/hle/service/sfdnsres/sfdnsres.h
Normal file
@@ -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<Sfdnsres> {
|
||||
public:
|
||||
Sfdnsres();
|
||||
~Sfdnsres() = default;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||
|
||||
} // namespace Sfdnsres
|
||||
} // namespace Service
|
||||
Reference in New Issue
Block a user