1
0
Fork 0
forked from suyu/suyu

Merge pull request #178 from archshift/errf

Added stub err:f service.
This commit is contained in:
bunnei 2014-11-01 23:43:52 -04:00
commit 2ca12e7f38
4 changed files with 58 additions and 0 deletions

View file

@ -34,6 +34,7 @@ set(SRCS
hle/service/apt_u.cpp
hle/service/cfg_u.cpp
hle/service/dsp_dsp.cpp
hle/service/err_f.cpp
hle/service/fs_user.cpp
hle/service/gsp_gpu.cpp
hle/service/hid_user.cpp
@ -103,6 +104,7 @@ set(HEADERS
hle/service/apt_u.h
hle/service/cfg_u.h
hle/service/dsp_dsp.h
hle/service/err_f.h
hle/service/fs_user.h
hle/service/gsp_gpu.h
hle/service/hid_user.h

View file

@ -0,0 +1,27 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "common/log.h"
#include "core/hle/hle.h"
#include "core/hle/service/err_f.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace ERR_F
namespace ERR_F {
const Interface::FunctionInfo FunctionTable[] = {
{0x00010800, nullptr, "ThrowFatalError"}
};
////////////////////////////////////////////////////////////////////////////////////////////////////
// Interface class
Interface::Interface() {
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
}
Interface::~Interface() {
}
} // namespace

View file

@ -0,0 +1,27 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace ERR_F
namespace ERR_F {
class Interface : public Service::Interface {
public:
Interface();
~Interface();
/**
* Gets the string port name used by CTROS for the service
* @return Port name of service
*/
std::string GetPortName() const {
return "err:f";
}
};
} // namespace

View file

@ -10,6 +10,7 @@
#include "core/hle/service/apt_u.h"
#include "core/hle/service/cfg_u.h"
#include "core/hle/service/dsp_dsp.h"
#include "core/hle/service/err_f.h"
#include "core/hle/service/fs_user.h"
#include "core/hle/service/gsp_gpu.h"
#include "core/hle/service/hid_user.h"
@ -78,6 +79,7 @@ void Init() {
g_manager->AddService(new APT_U::Interface);
g_manager->AddService(new CFG_U::Interface);
g_manager->AddService(new DSP_DSP::Interface);
g_manager->AddService(new ERR_F::Interface);
g_manager->AddService(new FS_User::Interface);
g_manager->AddService(new GSP_GPU::Interface);
g_manager->AddService(new HID_User::Interface);