mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-04 22:37:53 +00:00
Stubbed ptm:play service
This commit is contained in:
parent
8946df97b5
commit
7516ceaf93
4 changed files with 55 additions and 0 deletions
|
@ -64,6 +64,7 @@ set(SRCS
|
||||||
hle/service/nim_aoc.cpp
|
hle/service/nim_aoc.cpp
|
||||||
hle/service/nwm_uds.cpp
|
hle/service/nwm_uds.cpp
|
||||||
hle/service/pm_app.cpp
|
hle/service/pm_app.cpp
|
||||||
|
hle/service/ptm_play.cpp
|
||||||
hle/service/ptm_u.cpp
|
hle/service/ptm_u.cpp
|
||||||
hle/service/ptm_sysm.cpp
|
hle/service/ptm_sysm.cpp
|
||||||
hle/service/service.cpp
|
hle/service/service.cpp
|
||||||
|
@ -161,6 +162,7 @@ set(HEADERS
|
||||||
hle/service/nim_aoc.h
|
hle/service/nim_aoc.h
|
||||||
hle/service/nwm_uds.h
|
hle/service/nwm_uds.h
|
||||||
hle/service/pm_app.h
|
hle/service/pm_app.h
|
||||||
|
hle/service/ptm_play.h
|
||||||
hle/service/ptm_u.h
|
hle/service/ptm_u.h
|
||||||
hle/service/ptm_sysm.h
|
hle/service/ptm_sysm.h
|
||||||
hle/service/service.h
|
hle/service/service.h
|
||||||
|
|
28
src/core/hle/service/ptm_play.cpp
Normal file
28
src/core/hle/service/ptm_play.cpp
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
// Copyright 2015 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include "common/log.h"
|
||||||
|
#include "core/hle/hle.h"
|
||||||
|
#include "core/hle/service/ptm_play.h"
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Namespace PTM_PLAY
|
||||||
|
|
||||||
|
namespace PTM_PLAY {
|
||||||
|
|
||||||
|
const Interface::FunctionInfo FunctionTable[] = {
|
||||||
|
{ 0x08070082, nullptr, "GetPlayHistory" },
|
||||||
|
{ 0x08080000, nullptr, "GetPlayHistoryStart" },
|
||||||
|
{ 0x08090000, nullptr, "GetPlayHistoryLength" },
|
||||||
|
{ 0x080B0080, nullptr, "CalcPlayHistoryStart" },
|
||||||
|
};
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Interface class
|
||||||
|
|
||||||
|
Interface::Interface() {
|
||||||
|
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
23
src/core/hle/service/ptm_play.h
Normal file
23
src/core/hle/service/ptm_play.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
// Copyright 2015 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Namespace PTM_PLAY
|
||||||
|
|
||||||
|
namespace PTM_PLAY {
|
||||||
|
|
||||||
|
class Interface : public Service::Interface {
|
||||||
|
public:
|
||||||
|
Interface();
|
||||||
|
|
||||||
|
std::string GetPortName() const override {
|
||||||
|
return "ptm:play";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace
|
|
@ -35,6 +35,7 @@
|
||||||
#include "core/hle/service/nim_aoc.h"
|
#include "core/hle/service/nim_aoc.h"
|
||||||
#include "core/hle/service/nwm_uds.h"
|
#include "core/hle/service/nwm_uds.h"
|
||||||
#include "core/hle/service/pm_app.h"
|
#include "core/hle/service/pm_app.h"
|
||||||
|
#include "core/hle/service/ptm_play.h"
|
||||||
#include "core/hle/service/ptm_u.h"
|
#include "core/hle/service/ptm_u.h"
|
||||||
#include "core/hle/service/ptm_sysm.h"
|
#include "core/hle/service/ptm_sysm.h"
|
||||||
#include "core/hle/service/soc_u.h"
|
#include "core/hle/service/soc_u.h"
|
||||||
|
@ -112,6 +113,7 @@ void Init() {
|
||||||
g_manager->AddService(new NIM_AOC::Interface);
|
g_manager->AddService(new NIM_AOC::Interface);
|
||||||
g_manager->AddService(new NWM_UDS::Interface);
|
g_manager->AddService(new NWM_UDS::Interface);
|
||||||
g_manager->AddService(new PM_APP::Interface);
|
g_manager->AddService(new PM_APP::Interface);
|
||||||
|
g_manager->AddService(new PTM_PLAY::Interface);
|
||||||
g_manager->AddService(new PTM_U::Interface);
|
g_manager->AddService(new PTM_U::Interface);
|
||||||
g_manager->AddService(new PTM_SYSM::Interface);
|
g_manager->AddService(new PTM_SYSM::Interface);
|
||||||
g_manager->AddService(new SOC_U::Interface);
|
g_manager->AddService(new SOC_U::Interface);
|
||||||
|
|
Loading…
Reference in a new issue